modify test

This commit is contained in:
kevinyhzou 2024-09-06 10:15:43 +08:00
parent f8b6025e07
commit 02e129f0d1
2 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ TableJoin::TableJoin(const Settings & settings, VolumePtr tmp_volume_, Temporary
, output_by_rowlist_perkey_rows_threshold(settings.join_output_by_rowlist_perkey_rows_threshold)
, sort_right_perkey_rows_threshold(settings.join_to_sort_perkey_rows_threshold)
, sort_right_table_rows_threshold(settings.join_to_sort_table_rows_threshold)
, allow_join_sorting(settings.allow_experimental_inner_join_right_table_sorting)
, allow_join_sorting(settings.allow_experimental_join_right_table_sorting)
, max_memory_usage(settings.max_memory_usage)
, tmp_volume(tmp_volume_)
, tmp_data(tmp_data_)

View File

@ -7,8 +7,8 @@ CREATE TABLE test_right (a Int64, b String, c LowCardinality(String)) ENGINE = M
INSERT INTO test_left SELECT number % 10000, number % 10000, number % 10000 FROM numbers(100000);
INSERT INTO test_right SELECT number % 10 , number % 10, number % 10 FROM numbers(10000);
SELECT MAX(test_right.a) FROM test_left INNER JOIN test_right on test_left.b = test_right.b SETTINGS allow_experimental_inner_join_right_table_sorting=true;
SELECT MAX(test_right.a) FROM test_left LEFT JOIN test_right on test_left.b = test_right.b SETTINGS allow_experimental_inner_join_right_table_sorting=true;
SELECT MAX(test_right.a) FROM test_left INNER JOIN test_right on test_left.b = test_right.b SETTINGS allow_experimental_join_right_table_sorting=true;
SELECT MAX(test_right.a) FROM test_left LEFT JOIN test_right on test_left.b = test_right.b SETTINGS allow_experimental_join_right_table_sorting=true;
drop table test_left;
drop table test_right;