2018-08-29 17:49:43 +00:00
|
|
|
<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
|
2020-06-26 19:11:43 +00:00
|
|
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(x5)
|
2018-09-07 20:17:40 +00:00
|
|
|
SETTINGS
|
|
|
|
compile_expressions = 0
|
2018-08-29 17:49:43 +00:00
|
|
|
</query>
|
2020-01-07 08:48:23 +00:00
|
|
|
|
2018-08-29 17:49:43 +00:00
|
|
|
<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
|
2020-06-26 19:11:43 +00:00
|
|
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(x5)
|
2018-08-29 17:49:43 +00:00
|
|
|
SETTINGS
|
2020-03-12 15:26:57 +00:00
|
|
|
compile_expressions = 1,
|
|
|
|
min_count_to_compile_expression = 1
|
2018-08-29 17:49:43 +00:00
|
|
|
</query>
|
2020-01-07 08:48:23 +00:00
|
|
|
|
|
|
|
<!-- The same expression written as ClickHouse builtin function. -->
|
|
|
|
<query>
|
2020-06-26 19:11:43 +00:00
|
|
|
SELECT count() FROM numbers(100000000) WHERE NOT ignore(intHash64(number))
|
2020-01-07 08:48:23 +00:00
|
|
|
</query>
|
2018-08-29 17:49:43 +00:00
|
|
|
</test>
|