Skip to content

Commit 39119ef

Browse files
committed
[SEDONA-555] Snowflake Native App should not always create a new role (#1401)
1 parent d6b3b6a commit 39119ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static void main(String[] args) {
8181
}
8282
stageName = "";
8383
System.out.println("-- Generating DDL for Snowflake Native App");
84-
System.out.println("CREATE APPLICATION ROLE " + appRoleName + ";");
84+
System.out.println("CREATE APPLICATION ROLE IF NOT EXISTS " + appRoleName + ";");
8585
System.out.println("CREATE OR ALTER VERSIONED SCHEMA sedona;");
8686
System.out.println("GRANT USAGE ON SCHEMA sedona TO APPLICATION ROLE " + appRoleName + ";");
8787
}

0 commit comments

Comments
 (0)