python-3.x - 为什么执行成功的bigquery插入后它会存储在临时表中?

标签 python-3.x google-bigquery

你好,我将一些行推送到 bigquery 表中,如下所示:

errors = client.insert_rows("course-big-query-python.api_data_set_course_33.my_table_aut33",[string_tuple], selected_fields = schema2)
assert errors == []

但是,当我在可视化界面验证结果时,我看到实际的表大小为 0,

enter image description here

我验证流缓冲区统计信息是否已成功插入表:

enter image description here

我还对该表执行了查询,结果显示存储在临时表中,如下所示:

enter image description here

所以我希望感谢支持将表插入到相应的位置而不是临时表

最佳答案

要在 BigQuery 中加载数据,您可以流式传输或批处理。

如果您选择流式传输,数据将直接进入时间空间,直到合并到表中。

您可以在此处找到有关流式插入如何工作的详细说明:

enter image description here

如果您想批处理而不是流式处理,请使用 jobs.load而不是 insert_row

关于python-3.x - 为什么执行成功的bigquery插入后它会存储在临时表中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55092901/

相关文章:

python - 纺车功能并不总是退出

google-bigquery - Google Dataflow - 由 GoogleSheets 支持的 BigQuery 作业

sql - 按日期分区一段时间 SQL BigQuery

python - 我如何着手解析具有模式的大型 JSON 文件的内容,而不是必须手动访问每个条目?

python - "Protocols cannot be used with isinstance()"- 为什么不呢?

python-3.x - ModuleNotFoundError : No module named 'wheel' during pythonnet installation on Python3. 8

google-bigquery - Bigquery 中的两位数 ISO 周格式 (ww)

sql - 在 BigQuery 中取消嵌套结构

google-bigquery - "You have no more apps available to accept this invitation."接受邀请时

regex - Python v3 不一致的正则表达式匹配返回