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

doris 4.x版本,请问 variant的子列单独设置的时候只支持text类型吗?

Asked Feb 3 Modified Jan 1, 0001
Viewed 22
query

建表时候指定 varchar类型,但是存进去show create table 是text类型。

edited Jan 1, 0001
aqa_sm3
asked Feb 3
1 Answers

ARIANT 写入 JSON 后,Doris 会根据实际数据做类型推断并把高频路径物化成子列;这些子列的类型是系统推断出来的,而不是你在建表时直接声明的普通列类型。
你可以通过VARIANT_TYPE 函数用于返回 VARIANT 类型值的实际类型。

edited Jan 1, 1970
徐振超@SelectDB(可以直接加微信Faith_xzc)8226
answered Feb 7
Related Questions
get_json_string/json_extract 在不同的Doris版本中结果不一致
1 answers
Doris4.0.2版本,集群部署模式3台主机,不稳定,经常报错。insert报failed to write enough replicas 0/1 for tablet,select查询也报错
1 answers
倒排索引match返回结果不正确
1 answers
[Bug] Arrow Flight SQL 在大数据量下出现 StringArray 偏移量损坏与内存越界
Doris无法查询information_schema.tables表信息
1 answers
flink-doris-connector-1.20.24.0.0 2pc ,checkpoint处恢复数据重复
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 中文技术论坛.