【发布时间】:2015-05-18 11:21:06
【问题描述】:
使用 Google BigQuery 我需要手动创建一个表并加载 json 文件中包含的数据。我正在使用 BigQuery UI,但无法为数据定义架构,下面给出了相同的示例。问题来自下面的 json 数组。
{"Author": "Pranesh Nageshwar", "headline": "Train trashes crashed car", "charactercount": 1027, "dateLive": "2014-01-14", "keywords": ["train crash", "freight train", "online reporting page", "side road", "blue mountains", "new south wales", "australia", "blaxland", "new south wales", "australia", "crime stoppers", "springwood police station", "train tracks"], "id": "1226801299367"}
【问题讨论】:
-
就像 Pentium10 说的......你有什么问题?你尝试了什么?在这一点上,您似乎不知道该怎么做,但还没有尝试过任何事情......
-
因此,对于上面的示例,我尝试提供如下架构,但它不起作用:
-
作者:STRING,标题:STRING,字符数:INTEGER,关键字:RECORD,id:STRING。它给我的错误是身份不明的类型“记录”。
标签: arrays json schema google-bigquery