apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.77k stars 3.29k forks source link

[Bug] The result of the nested query with "NOT IN" is not correct #44340

Open Jianing-Xu opened 1 day ago

Jianing-Xu commented 1 day ago

Search before asking

Version

doris-2.0.5-rc02

What's Wrong?

When the subquery returns a large amount of data (approximately 350,000), a nested query with "NOT IN" can lead to errors, while the statement with "IN" works correctly.

What You Expected?

The query statement using not in returns the correct result

How to Reproduce?

select count(*) from t1 where id not in (select t1id from t2);

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct