简体   繁体   English

未使用 firestore 对大查询表进行分区 将 Collections 导出到 BigQuery 扩展

[英]Big Query Table not being partitioned with firestore Export Collections to BigQuery extension

在此处输入图像描述

I am using Export Collections to BigQuery extension with firestore to export data to the bigquery.I can export data to the big query but the table is not getting partitioned even I have enabled the table partitioned with extension while configuring extension at the creation time.我正在使用Export Collections to BigQuery extension with firestore 将数据导出到 bigquery。我可以将数据导出到大查询,但即使我在创建时配置扩展时启用了扩展分区的表,表也没有分区。

I had the same issue today when exporting data from Firestore to BigQuery and doing a historical load with npx firebaseextensions/fs-bq-import-collection command.我今天在将数据从 Firestore 导出到 BigQuery 并使用npx firebaseextensions/fs-bq-import-collection命令进行历史加载时遇到了同样的问题。

These are my findings.这些是我的发现。 If you configure the extension to have partitioning based on the ingestion time, you have to wait for a first new record that will trigger that streaming extension and create a partitioned table.如果您将扩展配置为根据摄取时间进行分区,则必须等待第一条新记录触发该流式扩展并创建分区表。

If you just create an extension and immediately execute a historical load, the table created won't be partitioned.如果你只是创建一个扩展并立即执行历史加载,则创建的表不会被分区。 I tested this 3 times today.我今天测试了 3 次。

A question for you -- did you execute a historical load or imported only new records?问你一个问题——你是执行历史加载还是只导入新记录?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM