File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
src/test/java/org/apache/sedona/snowflake/snowsql Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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" ));
You can’t perform that action at this time.
0 commit comments