[英]Json not enabled for current project
I have an issue with the PARSE_JSON function in google big query when trying to convert a string formatted json into a json format.尝试将格式为 json 的字符串转换为 json 格式时,我在 google 大查询中遇到 PARSE_JSON function 问题。
SELECT PARSE_JSON(data) FROM table SELECT PARSE_JSON(数据)来自表
Error received: "Json not enabled for current project"收到错误:“当前项目未启用 Json”
Parsing JSON is already possible, if a single value is extraced from a JSON:如果从 JSON 中提取单个值,则解析 JSON 已经成为可能:
Select JSON_VALUE(PARSE_JSON(data).A) FROM
(
Select '{"A":5,"B":12}' as data
)
For using PARSE_JSON
and store the result in table field, you need to enroll in the preview (March 2022), apply here: https://cloud.google.com/bigquery/docs/reference/standard-sql/json-data使用
PARSE_JSON
并将结果存储在表字段中,您需要注册预览(2022 年 3 月),在此处申请: https://cloud.google.com/bigquery/docs/reference/standard-sql/json-data
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.