Skip to content

Commit

Permalink
Validate partition by value with empty string as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lcalderonachio committed Nov 20, 2024
1 parent 5fc7bce commit b4898ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowflake/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def visit_copy_into(self, copy_into, **kw):

partition_by = (
f"PARTITION BY {partition_by_value}"
if partition_by_value is not None
if partition_by_value is not None and partition_by_value != ""
else ""
)

Expand Down

0 comments on commit b4898ec

Please sign in to comment.