Change perf set_index test to check build index

This commit is contained in:
Raúl Marín 2021-12-23 13:53:36 +01:00
parent 9bb88c26d8
commit d9bcb633de

View File

@ -3,14 +3,14 @@
<fill_query>INSERT INTO test_in SELECT number FROM numbers(500000000)</fill_query>
<!-- IN is used at index analysis -->
<query short="1">SELECT count() FROM test_in WHERE a IN (SELECT rand(1) FROM numbers(200000)) SETTINGS max_rows_to_read = 1, read_overflow_mode = 'break'</query>
<query short="1">SELECT count() FROM test_in WHERE a IN (SELECT rand(1) FROM numbers(200000)) SETTINGS max_rows_to_read = 200001, read_overflow_mode = 'break'</query>
<query short="1">SELECT count() FROM test_in WHERE toInt64(a) IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=1, read_overflow_mode='break'</query>
<query short="1">SELECT count() FROM test_in WHERE toInt64(a) IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=200001, read_overflow_mode='break'</query>
<!-- Analyze only one range. The query is short because nothing is selected. -->
<query short="1">SELECT count() FROM test_in WHERE -toInt64(a) IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=1, read_overflow_mode='break'</query>
<query short="1">SELECT count() FROM test_in WHERE -toInt64(a) IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=200001, read_overflow_mode='break'</query>
<!-- Analyze all ranges. The query is short because nothing is selected. -->
<query short="1">SELECT count() FROM test_in WHERE -toInt64(a) NOT IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=1, read_overflow_mode='break'</query>
<query short="1">SELECT count() FROM test_in WHERE -toInt64(a) NOT IN (SELECT toInt64(rand(1)) FROM numbers(200000)) settings max_rows_to_read=200001, read_overflow_mode='break'</query>
<!--
Test with explicitly defined large set (10000 elements).