Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google bigquery Google BigQuery-插入带有表后缀的全部失败_Google Bigquery_Google Cloud Platform - Fatal编程技术网

Google bigquery Google BigQuery-插入带有表后缀的全部失败

Google bigquery Google BigQuery-插入带有表后缀的全部失败,google-bigquery,google-cloud-platform,Google Bigquery,Google Cloud Platform,我有一个项目,我以前是在Insert上创建表的。我尝试使用templateSuffix执行插入调用。新桌子似乎很好用,但我有一个奇怪的例子 以下URL()提供了一个插入示例。我有一些来自源、所需表(table_schema.txt)和模板模式(table_template_schema.txt)的数据。这两种模式之间的唯一区别是最后两列的顺序: |- cache_file: string |- deduped: integer 我得到的错误是 HttpError: https://www.go

我有一个项目,我以前是在Insert上创建表的。我尝试使用templateSuffix执行插入调用。新桌子似乎很好用,但我有一个奇怪的例子

以下URL()提供了一个插入示例。我有一些来自源、所需表(table_schema.txt)和模板模式(table_template_schema.txt)的数据。这两种模式之间的唯一区别是最后两列的顺序:

|- cache_file: string
|- deduped: integer
我得到的错误是 HttpError:

https://www.googleapis.com/bigquery/v2/projects/flash-student-96619/datasets/log_data_v7/tables/day/insertAll?alt=json 返回“提供的架构与表不匹配” flash-student-96619:日志数据版本7.day20160423.模板和生成 表架构不兼容“

insertAll真的那么挑剔吗?除非对同一个表执行查询和替换,否则无法对列重新排序。这似乎令人难以置信的痛苦


有人给了我线索吗?

我最后做了一个没有tableSuffix的标准插入,如果失败(try/catch),我就用tableSuffix进行插入。这绕过了完美秩序的疯狂要求,一切都适合我


但愿我不必回避这个问题。

我最终在没有tableSuffix的情况下执行了一个标准插入,如果失败(try/catch),我就使用tableSuffix执行了一个插入。这绕过了完美秩序的疯狂要求,一切都适合我

真希望我不必绕着这一圈