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

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

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

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

edited Nov 26, 2024
baijun11
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
张彬华7678
answered Nov 26, 2024

感谢答复 已经解决

edited Jan 1, 1970
baijun11
answered Nov 26, 2024
Related Questions
怎么访问/metrics监控接口
spark-doris-connector 写入异常,sql却提示成功
1 answers
2.1.10版本使用"__DORIS_DELETE_SIGN__":1 批量删除对于routine load的一流多表测试不起作用?
BE无法写入日志
BE内存异常上涨
1 answers
Doris容忍度过滤掉的数据可以查询到吗?
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 中文技术论坛.