ClickHouse/tests/queries/1_stateful/00097_constexpr_in_index.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
284 B
MySQL
Raw Normal View History

2023-02-27 06:10:02 +00:00
-- Even in presence of OR, we evaluate the "0 IN (1, 2, 3)" as a constant expression therefore it does not prevent the index analysis.
2022-10-09 02:46:32 +00:00
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;