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/05/08 02:02:41 UTC
(sedona) branch SEDONA-555 created (now 49b9653b6)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a change to branch SEDONA-555
in repository https://gitbox.apache.org/repos/asf/sedona.git
at 49b9653b6 Fix
This branch includes the following new commits:
new 49b9653b6 Fix
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
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch SEDONA-555
in repository https://gitbox.apache.org/repos/asf/sedona.git
commit 49b9653b6e76bdcccd1f9240cabec9b29237fbf1
Author: Jia Yu <ji...@apache.org>
AuthorDate: Tue May 7 19:02:29 2024 -0700
Fix
---
.../main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java b/snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java
index ccbd0084c..dc60890c4 100644
--- a/snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java
+++ b/snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/ddl/DDLGenerator.java
@@ -81,7 +81,7 @@ public class DDLGenerator {
}
stageName = "";
System.out.println("-- Generating DDL for Snowflake Native App");
- System.out.println("CREATE APPLICATION ROLE " + appRoleName + ";");
+ System.out.println("CREATE APPLICATION ROLE IF NOT EXISTS " + appRoleName + ";");
System.out.println("CREATE OR ALTER VERSIONED SCHEMA sedona;");
System.out.println("GRANT USAGE ON SCHEMA sedona TO APPLICATION ROLE " + appRoleName + ";");
}