SQL语句查出有数据,但是包一层使用count(*),结果为0

Viewed 188

image.png
image.png
doris版本为2.0.9
执行计划
image.png
show variables like "%ner%";
image.png

3 Answers

可以升级到 2.0.12 及以上的 2.0 版本,或者 set enable_count_on_index_pushdown = false 急救下

explain $sql 看下执行计划中的第一行是走的什么优化器。

同时麻烦取一下这个截图:show variables like "%ner%";

资料已补充了,麻烦帮忙看着,这种数据不正确的问题,实在影响太大!