Skip to content

Commit cd78b7f

Browse files
committed
fix: stage
1 parent dc6c558 commit cd78b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snowflake_utils/models/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ def copy_into(
200200
stage: str | None = None,
201201
files: list[str] | None = None,
202202
) -> None:
203-
if stage:
204-
path = f"@{stage}/{path}"
205203
col_str = f"({', '.join(target_columns)})" if target_columns else ""
206204
files_clause = ""
207205
if files:
@@ -226,6 +224,7 @@ def copy_into(
226224
storage_integration,
227225
full_refresh,
228226
sync_tags,
227+
stage,
229228
)
230229
with connect() as connection:
231230
cursor = connection.cursor()
@@ -244,6 +243,7 @@ def copy_into(
244243
storage_integration,
245244
full_refresh,
246245
sync_tags,
246+
stage,
247247
)
248248

249249
def create_table(self, full_refresh: bool, execute_statement: callable) -> None:

0 commit comments

Comments
 (0)