我有一個項目,我以前在插入創建表。我試圖用templateSuffix來執行insertAll。它似乎與新表很好,但我有這種奇怪的情況。谷歌BigQuery - 插入所有表後綴失敗
以下URL(https://gist.github.com/dovy/b5b5b25e660ac037aaa130294ab42e3a)提供了插入示例。我有一些來自源的數據,所需的表(table_schema.txt)和模板模式(table_template_schema.txt)。這兩個模式之間的唯一區別是最後2列的順序:
|- 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 returned "Provided Schema does not match Table flash-student-96619:log_data_v7.day20160423. Template and generated table schemas are incompatible"
是insertAll真的那麼挑剔?除非我在同一張表上進行查詢和替換,否則無法重新排列列。這似乎非常痛苦。
任何人的任何線索?