Skip to content

Commit 5101a66

Browse files
committed
fix: don't allow storage integration w/ stage
1 parent ebe3faa commit 5101a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snowflake_utils/models/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def copy_into(
210210
copy_query = f"""
211211
COPY INTO {self.fqn} {col_str}
212212
FROM {path}
213-
{f"STORAGE_INTEGRATION = {storage_integration}" if storage_integration else ""}
213+
{f"STORAGE_INTEGRATION = {storage_integration}" if storage_integration and not stage else ""}
214214
FILE_FORMAT = ( FORMAT_NAME ='{{file_format}}')
215215
MATCH_BY_COLUMN_NAME={match_by_column_name.value}
216216
{files_clause}

0 commit comments

Comments
 (0)