mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
38 lines
1.1 KiB
XML
38 lines
1.1 KiB
XML
<test>
|
|
|
|
|
|
|
|
|
|
<query>
|
|
WITH
|
|
bitXor(number, 0x4CF2D2BAAE6DA887) AS x0,
|
|
bitXor(x0, bitShiftRight(x0, 33)) AS x1,
|
|
x1 * 0xff51afd7ed558ccd AS x2,
|
|
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
|
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
|
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
|
SELECT count() FROM numbers(10000000) WHERE NOT ignore(x5)
|
|
SETTINGS
|
|
compile_expressions = 0
|
|
</query>
|
|
|
|
<query>
|
|
WITH
|
|
bitXor(number, 0x4CF2D2BAAE6DA887) AS x0,
|
|
bitXor(x0, bitShiftRight(x0, 33)) AS x1,
|
|
x1 * 0xff51afd7ed558ccd AS x2,
|
|
bitXor(x2, bitShiftRight(x2, 33)) AS x3,
|
|
x3 * 0xc4ceb9fe1a85ec53 AS x4,
|
|
bitXor(x4, bitShiftRight(x4, 33)) AS x5
|
|
SELECT count() FROM numbers(10000000) WHERE NOT ignore(x5)
|
|
SETTINGS
|
|
compile_expressions = 1,
|
|
min_count_to_compile_expression = 1
|
|
</query>
|
|
|
|
<!-- The same expression written as ClickHouse builtin function. -->
|
|
<query>
|
|
SELECT count() FROM numbers(10000000) WHERE NOT ignore(intHash64(number))
|
|
</query>
|
|
</test>
|