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

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

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

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

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

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

edited Jan 1, 1970
zlhxxx176
answered Oct 23, 2024

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

edited Jan 1, 1970
阿渊@SelectDB (没回帖直接加我主页微信)10175
answered Oct 23, 2024
Related Questions
集群规划问题
1 answers
2.1.11版本,新优化器,执行计划隐式类型转换丢失精度,导致数据不一致
1 answers
多台BE节点异常宕机
1 answers
doris2.0.7集群迁移到新搭建的doris2.1.11集群
1 answers
workload groups 设置是否合理
1 answers
doris 2.x 同步到哪个版本的doris 最稳定
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 中文技术论坛.