Apache Doris 中文技术论坛
Questions Tags Users Badges

VARIANT 无法直接下标取数组吗,data[0] ,取出为null

Asked Oct 23, 2024 Modified Jan 1, 0001
Viewed 23
2.1

如题,VARIANT 无法直接下标取数组吗,data[0] ,取出为null

edited Jan 1, 0001
zlhxxx158
asked Oct 23, 2024
2 Answers

也可以用json函数,json_extract(data,'$.[0]'),get_json_string(data,'$.[0]') 这样取

edited Jan 1, 1970
zlhxxx158
answered Oct 23, 2024

暂时不支持,可以cast成 array来访问

edited Jan 1, 1970
阿渊@SelectDB8580
answered Oct 23, 2024
Related Questions
doris 2.1.8 源码无法下载
Doris 2.1.6 SQL_BLOCK_RULE 命中后错误信息不正确,显示为未知列错误而非规则拦截提示
1 answers
routine_load失败
doris升级问题
1 answers
doris 2.1.8写入速度非常慢,IOutil占满但写入速度很慢,查询速度没有影响。
1 answers
查询Paimon的Catalog经常超时,查询不到数据。
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.