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

【已解决】数据导入时,可以将空字符串自动转换为空值NULL吗?

Asked Nov 26, 2024 Modified Nov 26, 2024
Viewed 248
2.1 ingestion

使用stream_load导入数据时,Doris2.1现有功能,可以自动将导入数据中的空字符串转换成NULL吗? 如果有的话,是那个功能? 多谢

edited Nov 26, 2024
baijun15
asked Nov 26, 2024
3 Answers

导入的时候可以使用列变换表达式,result_slot=if(str = '', null, str)
https://doris.apache.org/zh-CN/docs/data-operate/import/load-data-convert#列转换

edited Jan 1, 1970
zclllyybb551
answered Nov 26, 2024

可以参考下数据转换这块:数据转换

edited Jan 1, 1970
张彬华7698
answered Nov 26, 2024

感谢答复 已经解决

edited Jan 1, 1970
baijun15
answered Nov 26, 2024
Related Questions
Flink Connector 26.3.0 读取 DATETIME 变成 1970 年,切换 25.0.0 后正常
Apache Doris Dashboard未授权访问漏洞
Apache Doris默认口令登录漏洞
max_by会不会忽略null值
1 answers
Doris2.1.6升级为Doris2.1.11后全部be节点进程频繁停止运行
1 answers
Huawei MRS使用doris,tpc-ds测试运行load data至analyse时报错
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 中文技术论坛.