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

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

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

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

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

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

edited Jan 1, 1970
zlhxxx140
answered Oct 23, 2024

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

edited Jan 1, 1970
阿渊@SelectDB7260
answered Oct 23, 2024
Related Questions
unique key hash分桶数据倾斜
1 answers
Broker Load 导入数据一个节点异常导致所有任务失败
1 answers
doris 2.1.6 一个fe follower突然崩了启动不了,日志如图
1 answers
自增列无法自动填充实体
2.1.7 版本doris集群中的一个be节点,凌晨3点7分突然离线重启
1 answers
doris 2.1.10 版本是否支持APPROX_TOP_K 函数?
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 中文技术论坛.