小编sam*_*sam的帖子

MongoDB到BigQuery

将数据从mlab托管的MongoDB导出到google bigquery的最佳方法是什么?

最初,我试图从MongoDB一次加载到BigQuery,后来我正在考虑使用Pub/Sub将实时数据流转换为bigquery.

从mongodb到bigquery的第一次加载我需要帮助.

mongodb google-bigquery

11
推荐指数
1
解决办法
2936
查看次数

如何在 BigQuery 中取消嵌套多个数组?

我有这个 json 存储在 BigQuery 表中的 3 个字段标记、问题、答案

令牌:STRING,问题:STRING,答案:STRING

问题和答案是STRING因为它们是动态领域。

令牌字段具有单一值。

问题字段有dictionary对象,“字段”是list对象,有 3 个问题。

answers字段是一个list包含 3 个问题的答案的对象,id将用于将问题与答案进行匹配。下面是从 bigquery 下载的 JSON

token          questions                                      answers
18e6d8e445     {"fields": [{"id": "L39FyvUohKDV", "properties": {}, "ref": "d8834652-3acf-4541-8354-1e3dcd716667", "title": "What did you think about the changes?", "type": "short_text"}, {"id": "krs82KgxHwGb", "properties": {}, "ref": "5b6e6796-635b-4595-9404-e81617d4540b", "title": "How useful is this feature turning out to be for you?", "type": "opinion_scale"}, {"id": "lBzHtCuzHFM4", "properties": {}, "ref": "b76be913-19b9-4b8a-b2ac-3fb645a65a5c", "title": …
Run Code Online (Sandbox Code Playgroud)

google-bigquery

4
推荐指数
1
解决办法
6784
查看次数

标签 统计

google-bigquery ×2

mongodb ×1