Some extra perf tests around sumCount

This commit is contained in:
Raúl Marín 2021-11-23 18:38:35 +01:00
parent dde264cd53
commit 8e19fd0345

View File

@ -30,4 +30,10 @@
<query>SELECT sum(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 SETTINGS optimize_syntax_fuse_functions = 0 FORMAT Null</query> <query>SELECT sum(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 SETTINGS optimize_syntax_fuse_functions = 0 FORMAT Null</query>
<query>SELECT sum(number), avg(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 FORMAT Null</query> <query>SELECT sum(number), avg(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 FORMAT Null</query>
<query>SELECT sum(number), avg(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 SETTINGS optimize_syntax_fuse_functions = 0 FORMAT Null</query> <query>SELECT sum(number), avg(number), count(number) FROM numbers(100000000) GROUP BY intHash32(number) % 1000 SETTINGS optimize_syntax_fuse_functions = 0 FORMAT Null</query>
<query>SELECT sum(key) / count(key) FROM ( SELECT materialize(toNullable(number)) AS key FROM numbers(100000000) ) FORMAT Null</query>
<query>SELECT sum(key) / count(key) FROM ( SELECT materialize(toNullable(number)) AS key FROM numbers(100000000) ) SETTINGS optimize_syntax_fuse_functions = 0 FORMAT Null</query>
<query>SELECT sumCountIf(key, key != -1) FROM ( SELECT materialize(number) AS key FROM numbers(100000000) ) FORMAT Null</query>
<query>SELECT sumCountIf(key, key != -1) FROM ( SELECT materialize(toNullable(number)) AS key FROM numbers(100000000) ) FORMAT Null</query>
</test> </test>