diff --git a/examples/connectors-native-sdk-example-java-github-connector/app/setup.sql b/examples/connectors-native-sdk-example-java-github-connector/app/setup.sql index 7cb7ef6..ee23a71 100644 --- a/examples/connectors-native-sdk-example-java-github-connector/app/setup.sql +++ b/examples/connectors-native-sdk-example-java-github-connector/app/setup.sql @@ -14,7 +14,7 @@ CREATE OR REPLACE STREAMLIT STREAMLIT.EXAMPLE_JAVA_GITHUB_CONNECTOR_ST GRANT USAGE ON STREAMLIT STREAMLIT.EXAMPLE_JAVA_GITHUB_CONNECTOR_ST TO APPLICATION ROLE ADMIN; -- SNOWFLAKE REFERENCE MECHANISM -CREATE PROCEDURE PUBLIC.REGISTER_REFERENCE(ref_name STRING, operation STRING, ref_or_alias STRING) +CREATE OR REPLACE PROCEDURE PUBLIC.REGISTER_REFERENCE(ref_name STRING, operation STRING, ref_or_alias STRING) RETURNS STRING LANGUAGE SQL AS @@ -105,7 +105,7 @@ CALL TASK_REACTOR.CREATE_INSTANCE_OBJECTS( NULL ); -CREATE VIEW EXAMPLE_CONNECTOR_TASK_REACTOR.WORK_SELECTOR_VIEW AS SELECT * FROM EXAMPLE_CONNECTOR_TASK_REACTOR.QUEUE ORDER BY RESOURCE_ID; +CREATE OR REPLACE VIEW EXAMPLE_CONNECTOR_TASK_REACTOR.WORK_SELECTOR_VIEW AS SELECT * FROM EXAMPLE_CONNECTOR_TASK_REACTOR.QUEUE ORDER BY RESOURCE_ID; CREATE OR REPLACE PROCEDURE PUBLIC.RUN_SCHEDULER_ITERATION() RETURNS VARIANT diff --git a/templates/connectors-native-sdk-template/app/setup.sql b/templates/connectors-native-sdk-template/app/setup.sql index cd33f8c..dfbf33a 100644 --- a/templates/connectors-native-sdk-template/app/setup.sql +++ b/templates/connectors-native-sdk-template/app/setup.sql @@ -14,7 +14,7 @@ CREATE OR REPLACE STREAMLIT STREAMLIT.NATIVE_SDK_TEMPLATE_ST GRANT USAGE ON STREAMLIT STREAMLIT.NATIVE_SDK_TEMPLATE_ST TO APPLICATION ROLE ADMIN; -- SNOWFLAKE REFERENCE MECHANISM -CREATE PROCEDURE PUBLIC.REGISTER_REFERENCE(ref_name STRING, operation STRING, ref_or_alias STRING) +CREATE OR REPLACE PROCEDURE PUBLIC.REGISTER_REFERENCE(ref_name STRING, operation STRING, ref_or_alias STRING) RETURNS STRING LANGUAGE SQL AS @@ -100,7 +100,7 @@ CALL TASK_REACTOR.CREATE_INSTANCE_OBJECTS( NULL ); -CREATE VIEW EXAMPLE_CONNECTOR_TASK_REACTOR.WORK_SELECTOR_VIEW AS SELECT * FROM EXAMPLE_CONNECTOR_TASK_REACTOR.QUEUE ORDER BY RESOURCE_ID; +CREATE OR REPLACE VIEW EXAMPLE_CONNECTOR_TASK_REACTOR.WORK_SELECTOR_VIEW AS SELECT * FROM EXAMPLE_CONNECTOR_TASK_REACTOR.QUEUE ORDER BY RESOURCE_ID; CREATE OR REPLACE PROCEDURE PUBLIC.RUN_SCHEDULER_ITERATION() RETURNS VARIANT