Skip to content

Commit

Permalink
Add extra case for empty string partition by
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lcalderonachio committed Nov 20, 2024
1 parent b4898ec commit 5179d3e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ def test_copy_into_location(engine_testaccount, sql_compiler):
== "COPY INTO @stage_name FROM python_tests_foods PARTITION BY concat('YEAR=', name) "
)

copy_stmt_10 = CopyIntoStorage(
from_=food_items,
into=ExternalStage(name="stage_name"),
partition_by="",
)
assert (
sql_compiler(copy_stmt_10) == "COPY INTO @stage_name FROM python_tests_foods "
)

# NOTE Other than expect known compiled text, submit it to RegressionTests environment and expect them to fail, but
# because of the right reasons
acceptable_exc_reasons = {
Expand Down

0 comments on commit 5179d3e

Please sign in to comment.