@@ -129,7 +129,7 @@ def test_select_all(started_cluster):
129129 SELECT * from s3(
130130 'http://minio1:9001/root/data/{clickhouse,database}/*', 'minio', 'minio123', 'CSV',
131131 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))') ORDER BY (name, value, polygon)
132- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
132+ SETTINGS object_storage_cluster = 'cluster_simple'"""
133133 )
134134
135135 assert TSV (pure_s3 ) == TSV (s3_distributed )
@@ -160,7 +160,7 @@ def test_count(started_cluster):
160160 'http://minio1:9001/root/data/{clickhouse,database}/*',
161161 'minio', 'minio123', 'CSV',
162162 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
163- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
163+ SETTINGS object_storage_cluster = 'cluster_simple'"""
164164 )
165165
166166 assert TSV (pure_s3 ) == TSV (s3_distributed )
@@ -192,7 +192,7 @@ def test_count_macro(started_cluster):
192192 'http://minio1:9001/root/data/{clickhouse,database}/*',
193193 'minio', 'minio123', 'CSV',
194194 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
195- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
195+ SETTINGS object_storage_cluster = 'cluster_simple'"""
196196 )
197197
198198 assert TSV (s3_macro ) == TSV (s3_distributed )
@@ -250,7 +250,7 @@ def test_union_all(started_cluster):
250250 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
251251 )
252252 ORDER BY (name, value, polygon)
253- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'
253+ SETTINGS object_storage_cluster = 'cluster_simple'
254254 """
255255 )
256256
@@ -285,7 +285,7 @@ def test_wrong_cluster(started_cluster):
285285 SELECT count(*) from s3(
286286 'http://minio1:9001/root/data/{clickhouse,database}/*',
287287 'minio', 'minio123', 'CSV', 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
288- SETTINGS object_storage_cluster_function_cluster = 'non_existing_cluster'
288+ SETTINGS object_storage_cluster = 'non_existing_cluster'
289289 """
290290 )
291291
@@ -329,7 +329,7 @@ def test_skip_unavailable_shards(started_cluster):
329329 SELECT count(*) from s3(
330330 'http://minio1:9001/root/data/clickhouse/part1.csv',
331331 'minio', 'minio123', 'CSV', 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
332- SETTINGS skip_unavailable_shards = 1, object_storage_cluster_function_cluster = 'cluster_non_existent_port'
332+ SETTINGS skip_unavailable_shards = 1, object_storage_cluster = 'cluster_non_existent_port'
333333 """
334334 )
335335
@@ -355,7 +355,7 @@ def test_unset_skip_unavailable_shards(started_cluster):
355355 SELECT count(*) from s3(
356356 'http://minio1:9001/root/data/clickhouse/part1.csv',
357357 'minio', 'minio123', 'CSV', 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))')
358- SETTINGS object_storage_cluster_function_cluster = 'cluster_non_existent_port'
358+ SETTINGS object_storage_cluster = 'cluster_non_existent_port'
359359 """
360360 )
361361
@@ -495,14 +495,14 @@ def test_cluster_with_header(started_cluster):
495495 assert (
496496 node .query (
497497 """SELECT * from s3('http://resolver:8080/bucket/key.csv', headers(MyCustomHeader = 'SomeValue'))
498- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
498+ SETTINGS object_storage_cluster = 'cluster_simple'"""
499499 )
500500 == "SomeValue\n "
501501 )
502502 assert (
503503 node .query (
504504 """SELECT * from s3('http://resolver:8080/bucket/key.csv', headers(MyCustomHeader = 'SomeValue'), 'CSV')
505- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
505+ SETTINGS object_storage_cluster = 'cluster_simple'"""
506506 )
507507 == "SomeValue\n "
508508 )
@@ -527,14 +527,14 @@ def test_cluster_with_named_collection(started_cluster):
527527
528528 s3_cluster = node .query (
529529 """SELECT * from s3(test_s3) ORDER BY (c1, c2, c3)
530- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
530+ SETTINGS object_storage_cluster = 'cluster_simple'"""
531531 )
532532
533533 assert TSV (pure_s3 ) == TSV (s3_cluster )
534534
535535 s3_cluster = node .query (
536536 """SELECT * from s3(test_s3, structure='auto') ORDER BY (c1, c2, c3)
537- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
537+ SETTINGS object_storage_cluster = 'cluster_simple'"""
538538 )
539539
540540 assert TSV (pure_s3 ) == TSV (s3_cluster )
@@ -571,14 +571,14 @@ def test_cluster_format_detection(started_cluster):
571571
572572 result = node .query (
573573 """SELECT * FROM s3('http://minio1:9001/root/data/generated/*', 'minio', 'minio123') order by c1, c2
574- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
574+ SETTINGS object_storage_cluster = 'cluster_simple'"""
575575 )
576576
577577 assert result == expected_result
578578
579579 result = node .query (
580580 """SELECT * FROM s3('http://minio1:9001/root/data/generated/*', 'minio', 'minio123', auto, 'a String, b UInt64') order by a, b
581- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
581+ SETTINGS object_storage_cluster = 'cluster_simple'"""
582582 )
583583
584584 assert result == expected_result
@@ -633,35 +633,35 @@ def test_cluster_default_expression(started_cluster):
633633
634634 result = node .query (
635635 """SELECT * FROM s3('http://minio1:9001/root/data/data{1,2,3}', 'minio', 'minio123', 'JSONEachRow', 'id UInt32, date Date DEFAULT 18262') order by id
636- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
636+ SETTINGS object_storage_cluster = 'cluster_simple'"""
637637 )
638638
639639 assert result == expected_result
640640
641641 result = node .query (
642642 """SELECT * FROM s3('http://minio1:9001/root/data/data{1,2,3}', 'minio', 'minio123', 'auto', 'id UInt32, date Date DEFAULT 18262') order by id
643- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
643+ SETTINGS object_storage_cluster = 'cluster_simple'"""
644644 )
645645
646646 assert result == expected_result
647647
648648 result = node .query (
649649 """SELECT * FROM s3('http://minio1:9001/root/data/data{1,2,3}', 'minio', 'minio123', 'JSONEachRow', 'id UInt32, date Date DEFAULT 18262', 'auto') order by id
650- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
650+ SETTINGS object_storage_cluster = 'cluster_simple'"""
651651 )
652652
653653 assert result == expected_result
654654
655655 result = node .query (
656656 """SELECT * FROM s3('http://minio1:9001/root/data/data{1,2,3}', 'minio', 'minio123', 'auto', 'id UInt32, date Date DEFAULT 18262', 'auto') order by id
657- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
657+ SETTINGS object_storage_cluster = 'cluster_simple'"""
658658 )
659659
660660 assert result == expected_result
661661
662662 result = node .query (
663663 """SELECT * FROM s3(test_s3_with_default) order by id
664- SETTINGS object_storage_cluster_function_cluster = 'cluster_simple'"""
664+ SETTINGS object_storage_cluster = 'cluster_simple'"""
665665 )
666666
667667 assert result == expected_result
0 commit comments