![](/img/trans.png)
[英]Big Query Table not being partitioned with firestore Export Collections to BigQuery extension
[英]Export Collections to BigQuery
我尝试使用Export Collections to BigQuery BigQuery
将集合导出到 BigQuery。
但我无法导出所有 collections。
我需要使用Export Collections to BigQuery extensions 将所有集合和子集合导出到 BiqQuery
我只能导出一个集合,但不能全部导出。
谁能帮我导出所有 collections 和子集合?
您可以安装第二个扩展“将集合流式传输到 biquery”以将第二个集合导出到 BQ。 只需转到菜单扩展程序,您就第一次这样做了
One thing that was helpful for me was to go to the Cloud Functions section for my Firebase project, hop over to the GCP console side of things, and download a zip of the source code deployed for my ext-firestore-bigquery-export-fsexportbigquery
function。
在那里,我注意到process.env.COLLECTION_PATH
的值最终会传递给functions.firestore.document()
,它只是构建一个命名空间的集合路径,通配符可以在路径中的任何级别使用......并且这就是魔法。
如果您将收集路径设置为简单的通配符变量,例如“{AnyCollection}”,那么 function 将捕获 Firestore DB 中所有 collections 的事件。 只需要一个扩展实例。
整体解决方案:
document_name
列中查询集合的名称,其中包括诸如“projects/my-firebase-project/databases/(default)/documents/my-firestore-collection/U5OeEv7jZCY8ja0g2gLr”之类的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.