2020-08-23 21:13:57 +00:00
|
|
|
<test>
|
2024-02-14 12:48:05 +00:00
|
|
|
<settings>
|
|
|
|
<allow_suspicious_low_cardinality_types>1</allow_suspicious_low_cardinality_types>
|
|
|
|
</settings>
|
|
|
|
|
2020-08-23 21:16:16 +00:00
|
|
|
<create_query>DROP TABLE IF EXISTS perf_lc_num</create_query>
|
2020-08-23 21:13:57 +00:00
|
|
|
<create_query>CREATE TABLE perf_lc_num(
|
|
|
|
num UInt8,
|
|
|
|
arr Array(LowCardinality(Int64)) default [num]
|
2020-12-30 13:53:30 +00:00
|
|
|
) ENGINE = StripeLog
|
2020-08-23 21:13:57 +00:00
|
|
|
</create_query>
|
|
|
|
|
|
|
|
<fill_query>
|
|
|
|
INSERT INTO perf_lc_num (num)
|
2020-08-24 09:02:48 +00:00
|
|
|
SELECT toUInt8(number)
|
2022-04-29 02:29:06 +00:00
|
|
|
FROM numbers(10000000)
|
2020-08-23 21:13:57 +00:00
|
|
|
</fill_query>
|
|
|
|
|
2020-12-30 13:53:30 +00:00
|
|
|
<settings>
|
|
|
|
<max_threads>1</max_threads>
|
|
|
|
</settings>
|
|
|
|
|
2020-08-23 21:13:57 +00:00
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE num = 42</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE arr[1] = 42</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE has(arr, 42)</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE indexOf(arr, 42) > 0</query>
|
|
|
|
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE arr[1] = num</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE has(arr, num)</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE indexOf(arr, num) > 0</query>
|
|
|
|
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE has(arr, num * 10)</query>
|
|
|
|
<query>SELECT count() FROM perf_lc_num WHERE has(arr, (num * 1000 + 20) % 137)</query>
|
|
|
|
|
|
|
|
<drop_query>DROP TABLE IF EXISTS perf_lc_num</drop_query>
|
|
|
|
</test>
|