@@ -597,20 +597,20 @@ def test_distributed_s3_table_engine(started_cluster):
597597 node = started_cluster .instances ["s0_0_0" ]
598598
599599 resp_def = node .query (
600- """
600+ f """
601601 SELECT * from s3Cluster(
602602 'cluster_simple',
603- 'http://minio1:9001/root/data/{clickhouse,database}/*', 'minio', 'minio123 ', 'CSV',
603+ 'http://minio1:9001/root/data/{{ clickhouse,database}} /*', 'minio', '{ minio_secret_key } ', 'CSV',
604604 'name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64)))') ORDER BY (name, value, polygon)
605605 """
606606 )
607607
608608 node .query ("DROP TABLE IF EXISTS single_node" );
609609 node .query (
610- """
610+ f """
611611 CREATE TABLE single_node
612612 (name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64))))
613- ENGINE=S3('http://minio1:9001/root/data/{clickhouse,database}/*', 'minio', 'minio123 ', 'CSV')
613+ ENGINE=S3('http://minio1:9001/root/data/{{ clickhouse,database}} /*', 'minio', '{ minio_secret_key } ', 'CSV')
614614 """
615615 )
616616 query_id_engine_single_node = str (uuid .uuid4 ())
@@ -622,23 +622,23 @@ def test_distributed_s3_table_engine(started_cluster):
622622 )
623623 assert resp_def == resp_engine_single_node
624624
625- node .query ("DROP TABLE IF EXISTS distributed" );
626- node .query (
627- """
628- CREATE TABLE distributed
629- (name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64))))
630- ENGINE=S3('http://minio1:9001/root/data/{clickhouse,database}/*', 'minio', 'minio123 ', 'CSV')
631- SETTINGS object_storage_cluster='cluster_simple'
632- """
633- )
634- query_id_engine_distributed = str (uuid .uuid4 ())
635- resp_engine_distributed = node .query (
636- """
637- SELECT * FROM distributed ORDER BY (name, value, polygon)
638- """ ,
639- query_id = query_id_engine_distributed
640- )
641- assert resp_def == resp_engine_distributed
625+ # node.query("DROP TABLE IF EXISTS distributed");
626+ # node.query(
627+ # f """
628+ # CREATE TABLE distributed
629+ # (name String, value UInt32, polygon Array(Array(Tuple(Float64, Float64))))
630+ # ENGINE=S3('http://minio1:9001/root/data/{{ clickhouse,database}} /*', 'minio', '{minio_secret_key} ', 'CSV')
631+ # SETTINGS object_storage_cluster='cluster_simple'
632+ # """
633+ # )
634+ # query_id_engine_distributed = str(uuid.uuid4())
635+ # resp_engine_distributed = node.query(
636+ # """
637+ # SELECT * FROM distributed ORDER BY (name, value, polygon)
638+ # """,
639+ # query_id = query_id_engine_distributed
640+ # )
641+ # assert resp_def == resp_engine_distributed#
642642
643643 node .query ("SYSTEM FLUSH LOGS ON CLUSTER 'cluster_simple'" )
644644
@@ -650,14 +650,14 @@ def test_distributed_s3_table_engine(started_cluster):
650650 """
651651 )
652652 assert int (hosts_engine_single_node ) == 1
653- hosts_engine_distributed = node .query (
654- f"""
655- SELECT uniq(hostname)
656- FROM clusterAllReplicas('cluster_simple', system.query_log)
657- WHERE type='QueryFinish' AND initial_query_id='{ query_id_engine_distributed } '
658- """
659- )
660- assert int (hosts_engine_distributed ) == 3
653+ # hosts_engine_distributed = node.query(
654+ # f"""
655+ # SELECT uniq(hostname)
656+ # FROM clusterAllReplicas('cluster_simple', system.query_log)
657+ # WHERE type='QueryFinish' AND initial_query_id='{query_id_engine_distributed}'
658+ # """
659+ # )
660+ # assert int(hosts_engine_distributed) == 3
661661
662662
663663@pytest .mark .parametrize ("allow_experimental_analyzer" , [0 , 1 ])
@@ -671,7 +671,7 @@ def test_hive_partitioning(started_cluster, allow_experimental_analyzer):
671671 f"""
672672 SELECT
673673 count()
674- FROM s3('http://minio1:9001/root/data/hive/key={ i } /*', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
674+ FROM s3('http://minio1:9001/root/data/hive/key={ i } /*', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
675675 GROUP BY ALL
676676 FORMAT TSV
677677 """
@@ -680,17 +680,17 @@ def test_hive_partitioning(started_cluster, allow_experimental_analyzer):
680680 node .query (
681681 f"""
682682 INSERT
683- INTO FUNCTION s3('http://minio1:9001/root/data/hive/key={ i } /data.parquet', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
683+ INTO FUNCTION s3('http://minio1:9001/root/data/hive/key={ i } /data.parquet', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
684684 SELECT { i } , { i }
685685 SETTINGS use_hive_partitioning = 0
686686 """
687687 )
688688
689689 query_id_full = str (uuid .uuid4 ())
690690 result = node .query (
691- """
691+ f """
692692 SELECT count()
693- FROM s3('http://minio1:9001/root/data/hive/key=**.parquet', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
693+ FROM s3('http://minio1:9001/root/data/hive/key=**.parquet', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
694694 WHERE key <= 2
695695 FORMAT TSV
696696 SETTINGS enable_filesystem_cache = 0, use_query_cache = 0, use_cache_for_count_from_files = 0, use_hive_partitioning = 0
@@ -702,9 +702,9 @@ def test_hive_partitioning(started_cluster, allow_experimental_analyzer):
702702
703703 query_id_optimized = str (uuid .uuid4 ())
704704 result = node .query (
705- """
705+ f """
706706 SELECT count()
707- FROM s3('http://minio1:9001/root/data/hive/key=**.parquet', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
707+ FROM s3('http://minio1:9001/root/data/hive/key=**.parquet', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
708708 WHERE key <= 2
709709 FORMAT TSV
710710 SETTINGS enable_filesystem_cache = 0, use_query_cache = 0, use_cache_for_count_from_files = 0, use_hive_partitioning = 1
@@ -716,9 +716,9 @@ def test_hive_partitioning(started_cluster, allow_experimental_analyzer):
716716
717717 query_id_cluster_full = str (uuid .uuid4 ())
718718 result = node .query (
719- """
719+ f """
720720 SELECT count()
721- FROM s3Cluster(cluster_simple, 'http://minio1:9001/root/data/hive/key=**.parquet', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
721+ FROM s3Cluster(cluster_simple, 'http://minio1:9001/root/data/hive/key=**.parquet', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
722722 WHERE key <= 2
723723 FORMAT TSV
724724 SETTINGS enable_filesystem_cache = 0, use_query_cache = 0, use_cache_for_count_from_files = 0, use_hive_partitioning = 0
@@ -730,9 +730,9 @@ def test_hive_partitioning(started_cluster, allow_experimental_analyzer):
730730
731731 query_id_cluster_optimized = str (uuid .uuid4 ())
732732 result = node .query (
733- """
733+ f """
734734 SELECT count()
735- FROM s3Cluster(cluster_simple, 'http://minio1:9001/root/data/hive/key=**.parquet', 'minio', 'minio123 ', 'Parquet', 'key Int32, value Int32')
735+ FROM s3Cluster(cluster_simple, 'http://minio1:9001/root/data/hive/key=**.parquet', 'minio', '{ minio_secret_key } ', 'Parquet', 'key Int32, value Int32')
736736 WHERE key <= 2
737737 FORMAT TSV
738738 SETTINGS enable_filesystem_cache = 0, use_query_cache = 0, use_cache_for_count_from_files = 0, use_hive_partitioning = 1
0 commit comments