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:42 UTC

(sedona) 01/01: Fix

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 + ";");
         }