You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a schema already exists, we should not attempt to create it. This is particularly important for users who may not have permission to create schemas.
To Reproduce
When running queries against the snowflake_conn_4 connection, everything logs the error:
(snowflake.connector.errors.ProgrammingError) 003001 (42501): 01a3ebcc-0404-8f39-0000-68210845688e: SQL access control error:
Insufficient privileges to operate on database 'SANDBOX'
[SQL: CREATE SCHEMA IF NOT EXISTS tmp_astro]
(Background on this error at: http://sqlalche.me/e/13/f405)
Expected behavior
If a schema already exists, Astro should not attempt to create it.
Additional context
The SQLDecorator (in theory) should not need permission to create schemas. It originally did, and this commit fixed the issue. However, it was reverted in this commit 1 month ago. The specific line causing the issue is here.
Acceptance criteria
The SQLDecorator does not attempt to create schema when it does not exist
There is a test covering this use-case
The text was updated successfully, but these errors were encountered:
Describe the bug
When a schema already exists, we should not attempt to create it. This is particularly important for users who may not have permission to create schemas.
Reported by: @jlaneve
Version
To Reproduce
When running queries against the snowflake_conn_4 connection, everything logs the error:
Expected behavior
If a schema already exists, Astro should not attempt to create it.
Additional context
The SQLDecorator (in theory) should not need permission to create schemas. It originally did, and this commit fixed the issue. However, it was reverted in this commit 1 month ago. The specific line causing the issue is here.
Acceptance criteria
The text was updated successfully, but these errors were encountered: