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

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

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

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

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

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

edited Jan 1, 1970
zlhxxx172
answered Oct 23, 2024

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

edited Jan 1, 1970
阿渊@SelectDB (没回帖直接加我主页微信)9520
answered Oct 23, 2024
Related Questions
能使用ROUTINE LOAD将kafka数据批量同步到doris中吗
1 answers
doris 2.1 stream load 使用group commit 有2个报错
1 answers
Doris 某个be节点负载高,导致短暂宕机
1 answers
flink 多job checkpoint超时,doirs abort transation
1 answers
doirs表数据归档到对象存储的问题
2 answers
Doris BE节点启动后60秒自动重启
1 answers

Terms of service Privacy policy

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