[英]Got an error while inserting the json string into snowflake table
Trying to insert data to snowflake table试图将数据插入雪花表
insert into realtime_kpi_feature_list_map (kpi_id, feature_list_id, config)
values (1, 10, parse_json('{"b":1,"a":2}'))
but get an error但得到一个错误
SQL compilation error: Invalid expression [PARSE_JSON('{"b":1,"a":2}')] in VALUES clause
SQL 编译错误:VALUES 子句中的表达式无效 [PARSE_JSON('{"b":1,"a":2}')]
I tried with different json string but got the same error.我尝试了不同的 json 字符串,但得到了同样的错误。 What I do wrong?
我做错了什么?
This works in my Snowflake environment...这适用于我的雪花环境......
insert into realtime_kpi_feature_list_map (kpi_id, feature_list_id, config)
select 1, 10, parse_json($${
"b":1,
"a":2
}$$);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.