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

doris2.0.4版本,使用case...when语句时,语句中的column=''语法报错执行sql异常errCode = 2, detailMessage = Unexpected exception: null

Asked Oct 28, 2024 Modified Oct 28, 2024
Viewed 108
query 2.0

sql语句:select sum(case when (ID is null or ID = '') then 1 else 0 end) as num from (select * from TABLE_AAA) tt

报错:sql异常errCode = 2, detailMessage = Unexpected exception: null

使用explain也报错!
企业微信截图_17301057369310.png

edited Oct 28, 2024
lite1113
asked Oct 28, 2024
2 Answers

show variables like "%ner%"; 看下:
experimental_enable_nereids_planner是true还是false。

打开关闭分别测试下的

edited Jan 1, 1970
阿渊@SelectDB7900
answered Oct 29, 2024

2.0的哪个版本呢,走的什么优化器,explain $SQL 看下的

edited Jan 1, 1970
阿渊@SelectDB7900
answered Oct 28, 2024
Related Questions
请教各位大佬,如何使用doris 统计k线数据
doris的group commit使用问题
2 answers
Doris SQL解析慢
1 answers
桶数设置为6,12后,性能还比不上桶为10
1 answers
不考虑数据同步,doris直接跨集群实例查询有哪些方法?
1 answers
异步物化视图刷新失败,提示“errCode = 2, detailMessage = (10.56.88.77)[CANCELLED]failed to open DeltaWriter 90250840: not enough streams 1/2”
2 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Apache Doris 中文技术论坛.