简体   繁体   English

Json 未为当前项目启用

[英]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.

相关问题 GCP API 网关返回 403 表示托管服务“未为项目启用” - GCP API gateway returning 403 saying managed service "is not enabled for the project" 如何在 nodejs 脚本中获取当前项目? - How to get current project in nodejs script? 如何解决“您的项目没有云服务机器人帐户。请确保为您的项目启用了 Dataflow API。” - How to fix "There is no cloudservices robot account for your project. Please ensure that the Dataflow API is enabled for your project." 无法访问 Kibana URL:此 Kibana 安装启用了严格的安全要求,您当前的浏览器不满足 - Cant Access Kibana URL: This Kibana installation has strict security requirements enabled that your current browser does not meet Eventarc 审计日志 Scope 仅限于当前项目 - Eventarc Audit Log Scope Limited to Current Project FlutterAppRequiredException:当前目录似乎不是 Flutter 应用程序项目 - FlutterAppRequiredException: The current directory does not appear to be a Flutter application project GCP API Gateway with an API Key 失败并显示 403 error stating....cloud.goog is not enabled for the project - GCP API Gateway with an API Key fails with 403 error stating ... .cloud.goog is not enabled for the project 由于项目限制,Google 无法启用结算功能,但没有任何项目启用了结算功能 - Google unable to enable billing due to project limit however there are not any projects with billing enabled 在 firestore 数据库中导出整个项目的 json 文档 - Exporting the json document for the whole project in firestore database 从 firebase 项目中的 API/网站返回 JSON - Returning JSON from an API/website in a firebase project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM