This commit is contained in:
vdimir 2023-01-16 12:33:45 +00:00
parent 40bf9939b7
commit 1e9ccfb4b9
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
3 changed files with 5 additions and 4 deletions

View File

@ -198,7 +198,7 @@ public:
: size_limits(limits)
, default_max_bytes(0)
, join_use_nulls(use_nulls)
, join_algorithm(JoinAlgorithm::HASH)
, join_algorithm(JoinAlgorithm::DEFAULT)
{
clauses.emplace_back().key_names_right = key_names_right;
table_join.kind = kind;

View File

@ -1,4 +1,4 @@
{% for join_algorithm in ['hash', 'parallel_hash', 'full_sorting_merge'] -%}
{% for join_algorithm in ['hash', 'parallel_hash', 'full_sorting_merge', 'grace_hash'] -%}
--- {{ join_algorithm }} ---
2014-03-17 1406958 265108
2014-03-19 1405797 261624

View File

@ -1,6 +1,7 @@
{% for join_algorithm in ['hash', 'parallel_hash', 'full_sorting_merge'] -%}
{% for join_algorithm in ['hash', 'parallel_hash', 'full_sorting_merge', 'grace_hash'] -%}
SET max_bytes_in_join = '{% if join_algorithm == 'grace_hash' %}20K{% else %}0{% endif %}';
SET max_rows_in_join = '{% if join_algorithm == 'grace_hash' %}10K{% else %}0{% endif %}';
SET grace_hash_join_initial_buckets = 4;
SELECT '--- {{ join_algorithm }} ---';