【发布时间】:2018-09-06 01:25:55
【问题描述】:
我一直在尝试使用 python google-cloud 包from google.cloud import bigquery 将数据流式传输到 BigQuery。
我观察到的是它拒绝插入几行这样说
[{u'debugInfo': u'', u'reason': u'invalid', u'message': u'no such field.', u'location': u'user.new_user'}]}]
但是,我可以在架构table.schema 中看到该列
[(u'USER', u'record', u'NULLABLE', None, (SchemaField(u'new_user', u'string', u'NULLABLE', None, ())))]
这是因为我试图以比 BigQuery 文档中提到的更快的速度进行流式传输和更新吗?
我尝试在终端上运行相同的东西,并且没有任何错误。当我尝试以更高的速率进行流式传输时,就会发生这种情况。
目前,我使用 as
self.bigquery_client.create_rows_json(table, batched_event,retry=bigquery.DEFAULT_RETRY.with_deadline(10),skip_invalid_rows=True, ignore_unknown_values=True)
【问题讨论】:
标签: python google-cloud-platform google-bigquery streaming schema