【发布时间】:2015-10-06 06:59:50
【问题描述】:
我使用 App Enginge 数据存储区备份文件并创建一个 BigQuery 表。我面临的问题是默认情况下所有 JSON 值都被视为“扁平化字符串”。
例如,我无法访问重复的字符串值,如下所示。值为列:qoption
[{
"optionId": 0,
"optionTitle": "All inclusive",
"optionImageUrl": "http://sampleurl",
"masterCatInfo": 95680,
"brInfo": 56502428160,
"category": "",
"tags": ["Holiday"]
}, {
"optionId": 1,
"optionTitle": "Self catered",
"optionImageUrl": "http://sampleurl1",
"masterCatInfo": 520280,
"brId": 56598160,
"category": "",
"tags": ["Holiday"]
}]
是否可以再次以 JSON 格式重新创建现有表,最好是通过 BQ CLI,以便我可以访问表 qoption.optionId、qoption.optionTitle 等
【问题讨论】:
标签: json google-app-engine google-cloud-datastore database-backups