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 如何安装在申威的sw64架构上?
Doirs 2.1.10 报错请求的转换无效
有偿解决问题!doris查询性能提升
1 answers
doris版本为2.1.10查询报错,更新前2.1.7版本的查询没有问题,请问该怎么解决
Doris2.1.10使用catalog连接paimon,新增数据看不到,必须手动refresh CATALOG才能看得到
Doris 2.1.6 SQL_BLOCK_RULE 命中后错误信息不正确,显示为未知列错误而非规则拦截提示
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 中文技术论坛.