We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3425871 commit c8cb101Copy full SHA for c8cb101
tests/performance/rewrite_aggregate_if.xml
@@ -1,4 +1,7 @@
1
<test>
2
<query>select count(if(rand() % 2 = 0, 1, null)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
3
<query>select count(if(rand() % 2 = 0, null, 1)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
4
+
5
+ <query>select count(if(rand() % 2 = 0, toNullable(1), null)) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
6
+ <query>select count(if(rand() % 2 = 0, null, toNullable(1))) from numbers(100000000) settings optimize_rewrite_aggregate_function_with_if = true</query>
7
</test>
0 commit comments