You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2024/04/23 07:10:07 UTC

(sedona) branch concurrent-snowflake-testers created (now 9d7063597)

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

jiayu pushed a change to branch concurrent-snowflake-testers
in repository https://gitbox.apache.org/repos/asf/sedona.git


      at 9d7063597 Fix the silly bug

This branch includes the following new commits:

     new 9d7063597 Fix the silly bug

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(sedona) 01/01: Fix the silly bug

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch concurrent-snowflake-testers
in repository https://gitbox.apache.org/repos/asf/sedona.git

commit 9d7063597c3640597b54a3241ba82bb299a9964b
Author: Jia Yu <ji...@apache.org>
AuthorDate: Tue Apr 23 00:10:02 2024 -0700

    Fix the silly bug
---
 .../src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java | 4 ++--
 .../src/test/java/org/apache/sedona/snowflake/snowsql/TestBase.java   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java b/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java
index e0b792cef..808181e3f 100644
--- a/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java
+++ b/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java
@@ -88,7 +88,7 @@ public class SnowClient {
         }
     }
 
-    public static SnowClient newFromEnv() throws SQLException {
+    public static SnowClient newFromEnv(String snowflake_db_name) throws SQLException {
         Properties prop = new Properties();
         // check auth method
         String authMethod = System.getenv("SNOWFLAKE_AUTH_METHOD");
@@ -96,7 +96,7 @@ public class SnowClient {
             prop.put("user", System.getenv("SNOWFLAKE_USER"));
             prop.put("password", System.getenv("SNOWFLAKE_PASSWORD"));
         }
-        prop.put("db", System.getenv("SNOWFLAKE_DB"));
+        prop.put("db", snowflake_db_name);
         prop.put("schema", System.getenv("SNOWFLAKE_SCHEMA"));
         prop.put("warehouse", System.getenv("SNOWFLAKE_WAREHOUSE"));
         prop.put("role", System.getenv("SNOWFLAKE_ROLE"));
diff --git a/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/TestBase.java b/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/TestBase.java
index 53c87b879..7b2a9f474 100644
--- a/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/TestBase.java
+++ b/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/TestBase.java
@@ -99,7 +99,7 @@ public class TestBase extends TestCase {
     }
 
     public void init() throws SQLException {
-        snowClient = SnowClient.newFromEnv();
+        snowClient = SnowClient.newFromEnv(snowflake_db_name);
         String sedonaVersion = System.getenv("SEDONA_VERSION");
         String geotoolsVersion = System.getenv("SNOWFLAKE_GEOTOOLS_VERSION");
         // init configs