Add a test for #658

This commit is contained in:
Alexey Milovidov 2022-10-09 04:46:32 +02:00
parent 023f11fb86
commit 1cb91e72fb
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
1803

View File

@ -0,0 +1,3 @@
-- Even in presense of OR, we evaluate the "0 IN (1, 2, 3)" as a constant expression therefore it does not prevent the index analysis.
SELECT count() FROM test.hits WHERE CounterID IN (14917930, 33034174) OR 0 IN (1, 2, 3) SETTINGS max_rows_to_read = 1000000, force_primary_key = 1;