Skip to content

Commit dfe75de

Browse files
chore: [CI] Fix snowflake tester workflow (#2600)
Co-authored-by: Kristin Cowalcijk <[email protected]>
1 parent e84725e commit dfe75de

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

snowflake-tester/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>net.snowflake</groupId>
5555
<artifactId>snowflake-jdbc</artifactId>
56-
<version>3.23.1</version>
56+
<version>3.28.0</version>
5757
</dependency>
5858
</dependencies>
5959
</project>

snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/SnowClient.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@ public void uploadFile(String path, String stage) {
8989

9090
public static SnowClient newFromEnv() throws SQLException {
9191
Properties prop = new Properties();
92-
// check auth method
93-
String authMethod = System.getenv("SNOWFLAKE_AUTH_METHOD");
94-
if (authMethod.equals("BASIC")) {
95-
prop.put("user", System.getenv("SNOWFLAKE_USER"));
96-
prop.put("password", System.getenv("SNOWFLAKE_PASSWORD"));
97-
}
92+
// Use PAT (Programmatic Access Token) authentication
93+
prop.put("user", System.getenv("SNOWFLAKE_USER"));
94+
prop.put("authenticator", "programmatic_access_token");
95+
prop.put("token", System.getenv("SNOWFLAKE_PASSWORD"));
9896
prop.put("schema", System.getenv("SNOWFLAKE_SCHEMA"));
9997
prop.put("warehouse", System.getenv("SNOWFLAKE_WAREHOUSE"));
10098
prop.put("role", System.getenv("SNOWFLAKE_ROLE"));

0 commit comments

Comments
 (0)