【发布时间】:2018-04-03 19:57:04
【问题描述】:
我在 bigquery 中有一个名为 test 的表。它有一列称为attributes。
该值采用 JSON 格式,以“# of items”为键,例如:{“# of items”:“100”}
当我执行下面的查询时
SELECT JSON_EXTRACT(attributes, "$['# of items']") AS num_items
FROM test
我遇到了以下错误:
Error: JSONPath parse error at: ['# of items']
获取其价值的最简单方法是什么?
【问题讨论】:
标签: json google-bigquery