Files
datastore/tests/performance/rewrite_aggregate_if.xml
2025-04-02 12:11:05 +08:00

8 lines
620 B
XML

<test>
<query>select count(if(rand() % 2 = 0, 1, null)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
<query>select count(if(rand() % 2 = 0, null, 1)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
<query>select count(if(rand() % 2 = 0, toNullable(1), null)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
<query>select count(if(rand() % 2 = 0, null, toNullable(1))) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
</test>