mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
24 lines
1003 B
Plaintext
24 lines
1003 B
Plaintext
SELECT i AS i
|
|
FROM index_append_test_test
|
|
PREWHERE a = 0
|
|
WHERE (a = 0) AND indexHint((i + 40) > 0)
|
|
SETTINGS convert_query_to_cnf = 1, optimize_using_constraints = 1, optimize_move_to_prewhere = 1, optimize_substitute_columns = 1, optimize_append_index = 1
|
|
1
|
|
SELECT i AS i
|
|
FROM index_append_test_test
|
|
PREWHERE a < 0
|
|
SETTINGS convert_query_to_cnf = 1, optimize_using_constraints = 1, optimize_move_to_prewhere = 1, optimize_substitute_columns = 1, optimize_append_index = 1
|
|
0
|
|
SELECT i AS i
|
|
FROM index_append_test_test
|
|
PREWHERE a >= 0
|
|
WHERE (a >= 0) AND indexHint((i + 40) > 0)
|
|
SETTINGS convert_query_to_cnf = 1, optimize_using_constraints = 1, optimize_move_to_prewhere = 1, optimize_substitute_columns = 1, optimize_append_index = 1
|
|
1
|
|
SELECT i AS i
|
|
FROM index_append_test_test
|
|
PREWHERE (2 * b) < 100
|
|
WHERE ((2 * b) < 100) AND indexHint(i < 100)
|
|
SETTINGS convert_query_to_cnf = 1, optimize_using_constraints = 1, optimize_move_to_prewhere = 1, optimize_substitute_columns = 1, optimize_append_index = 1
|
|
1
|