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

Doris 2.1.9 count(DISTINCT IF(sum(ActualPrice)>0,PatientId,null)) 无法执行

Asked Apr 24, 2025 Modified Jan 1, 0001
Viewed 61
2.1 demand

edited Jan 1, 0001
Zack1
asked Apr 24, 2025
1 Answers

一般情况下,不能直接把聚合函数嵌套在条件函数里当作条件判断使用,因为聚合函数要在分组操作之后才能计算出结果,而条件判断是在分组操作之前进行的。

edited Jan 1, 1970
徐振超@SelectDB(可以直接加微信Faith_xzc)8286
answered Apr 25, 2025
Related Questions
doris-manager25.3.3升级doris版本
doris版本升级注意事项
1 answers
想请教一下 Doris CCR 目前的维护状态,以及 3.x、4.x 跨集群实时同步的官方推荐方案。
doris2.1.11脚本执行报failed to send brpc when exchange
1 answers
doris2.1.11读取spark报错
1 answers
SelectDB Doris 2.1.8-3:CCR 下游集群 20 台 BE 缩容 1 台时 lag 持续增大,取消缩容后恢复
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 中文技术论坛.