Add join_algorithm='full_sorting_merge' to stress tests

This commit is contained in:
vdimir 2022-05-25 16:14:18 +00:00
parent a4b93c7454
commit b0c0ec370d
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -28,18 +28,20 @@ def get_options(i, backward_compatibility_check):
if i % 2 == 1: if i % 2 == 1:
options.append(" --database=test_{}".format(i)) options.append(" --database=test_{}".format(i))
if i % 5 == 1: if i % 3 == 1:
client_options.append("join_use_nulls=1") client_options.append("join_use_nulls=1")
if i % 15 == 1: if i % 2 == 1:
client_options.append("join_algorithm='parallel_hash'") join_alg_num = i // 2
if join_alg_num % 4 == 0:
if i % 15 == 6: client_options.append("join_algorithm='parallel_hash'")
client_options.append("join_algorithm='partial_merge'") if join_alg_num % 4 == 1:
client_options.append("join_algorithm='partial_merge'")
if i % 15 == 11: if join_alg_num % 4 == 2:
client_options.append("join_algorithm='auto'") client_options.append("join_algorithm='full_sorting_merge'")
client_options.append("max_rows_in_join=1000") if join_alg_num % 4 == 3:
client_options.append("join_algorithm='auto'")
client_options.append('max_rows_in_join=1000')
if i == 13: if i == 13:
client_options.append("memory_tracker_fault_probability=0.001") client_options.append("memory_tracker_fault_probability=0.001")