This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f628f9f6cf [fix](test) Fix two regression test (#54433)
4f628f9f6cf is described below

commit 4f628f9f6cf52233b06e700265559f24fef734d0
Author: Lei Zhang <[email protected]>
AuthorDate: Fri Aug 8 09:54:35 2025 +0800

    [fix](test) Fix two regression test (#54433)
    
    * fix `test_nestedtypes_json_insert_into_with_s3` failed in azure by
    setting s3.endpoint
    
    * fix `test_sql_mode_node_mgr default` by setting host style default,
    because we use public OSS default
---
 docker/runtime/doris-compose/database.py                       |  3 ++-
 .../query/test_nestedtypes_json_insert_into_with_s3.groovy     | 10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/docker/runtime/doris-compose/database.py 
b/docker/runtime/doris-compose/database.py
index b05f1cb118a..53bd9c92785 100644
--- a/docker/runtime/doris-compose/database.py
+++ b/docker/runtime/doris-compose/database.py
@@ -183,7 +183,8 @@ class DBManager(object):
                 "s3.bucket" = "{cloud_store_config['DORIS_CLOUD_BUCKET']}",
                 "s3.region" = "{cloud_store_config['DORIS_CLOUD_REGION']}",
                 "s3.root.path" = "{str(uuid.uuid4())}",
-                "provider" = "{cloud_store_config['DORIS_CLOUD_PROVIDER']}"
+                "provider" = "{cloud_store_config['DORIS_CLOUD_PROVIDER']}",
+                "use_path_style" = "false"
             );
             """
             # create hk storage vault from beijing cost 14s
diff --git 
a/regression-test/suites/datatype_p0/nested_types/query/test_nestedtypes_json_insert_into_with_s3.groovy
 
b/regression-test/suites/datatype_p0/nested_types/query/test_nestedtypes_json_insert_into_with_s3.groovy
index 2d4aa6e2639..e3bedf65a2c 100644
--- 
a/regression-test/suites/datatype_p0/nested_types/query/test_nestedtypes_json_insert_into_with_s3.groovy
+++ 
b/regression-test/suites/datatype_p0/nested_types/query/test_nestedtypes_json_insert_into_with_s3.groovy
@@ -30,8 +30,10 @@ suite("test_nestedtypes_json_insert_into_with_s3", "p0") {
     String s3_endpoint = getS3Endpoint()
     String bucket = context.config.otherConfigs.get("s3BucketName");
 
-
-    def dataFilePath = 
"https://"+"${bucket}"+"."+"${s3_endpoint}"+"/regression/datalake";
+    def dataFilePath = "s3://${bucket}/regression/datalake"
+    if (!s3_endpoint.startsWith("https://";) && 
!s3_endpoint.startsWith("http://";)) {
+        s3_endpoint = "https://${s3_endpoint}";
+    }
 
     ArrayList<String> json_files = ["${dataFilePath}/as.json", 
"${dataFilePath}/aa.json",
                                            
"${dataFilePath}/ms.json","${dataFilePath}/am.json",
@@ -202,6 +204,7 @@ suite("test_nestedtypes_json_insert_into_with_s3", "p0") {
     for (int i = 0; i < 3; ++i) {
         qt_sql_arr_json_without_quote_s3 """
         select * from s3("uri" = "${json_files[i]}",
+                "s3.endpoint" = "${s3_endpoint}",
                 "s3.access_key"= "${ak}",
                 "s3.secret_key" = "${sk}",
                 "format" = "json",
@@ -211,6 +214,7 @@ suite("test_nestedtypes_json_insert_into_with_s3", "p0") {
 
         sql """
         insert into ${table_names[i]} select * from s3("uri" = 
"${json_files[i]}",
+                "s3.endpoint" = "${s3_endpoint}",
                 "s3.access_key"= "${ak}",
                 "s3.secret_key" = "${sk}",
                 "format" = "json",
@@ -228,6 +232,7 @@ suite("test_nestedtypes_json_insert_into_with_s3", "p0") {
         qt_sql_arr_json_without_quote_s3 """
         select * from s3(
                 "uri" = "${json_files[i]}",
+                "s3.endpoint" = "${s3_endpoint}",
                 "s3.access_key"= "${ak}",
                 "s3.secret_key" = "${sk}",
                 "format" = "json",
@@ -238,6 +243,7 @@ suite("test_nestedtypes_json_insert_into_with_s3", "p0") {
         sql """
         insert into ${table_names[i]} select * from s3 (
                "uri" = "${json_files[i]}",
+                "s3.endpoint" = "${s3_endpoint}",
                 "s3.access_key"= "${ak}",
                 "s3.secret_key" = "${sk}",
                 "format" = "json",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to