ClickHouse/tests/performance/grace_hash_join.xml
2022-06-23 08:44:26 +03:00

22 lines
1.0 KiB
XML

<test>
<settings>
<max_threads>16</max_threads>
<max_memory_usage>10G</max_memory_usage>
</settings>
<substitutions>
<substitution>
<name>settings</name>
<values>
<value>join_algorithm='hash'</value>
<value>join_algorithm='parallel_hash'</value>
<value>join_algorithm='partial_merge', max_bytes_in_join='1G'</value>
<value>join_algorithm='grace_hash', max_bytes_in_join='100M'</value>
</values>
</substitution>
</substitutions>
<query short='numbers'>SELECT sum(n) FROM (SELECT number * 2 AS n FROM numbers_mt(10000000)) AS lhs JOIN (SELECT number * 3 AS n FROM numbers_mt(10000000)) AS rhs USING (n) SETTINGS {settings}</query>
<query short='numbers_hashed'>SELECT sum(n) FROM (SELECT intHash64(number * 2) AS n FROM numbers_mt(10000000)) AS lhs JOIN (SELECT intHash64(number * 3) AS n FROM numbers_mt(10000000)) AS rhs USING (n) SETTINGS {settings}</query>
</test>