From 5179d3efbd951839e02d1b1f8961c8847bc663a6 Mon Sep 17 00:00:00 2001 From: Luis Calderon Achio Date: Wed, 20 Nov 2024 14:51:24 -0600 Subject: [PATCH] Add extra case for empty string partition by --- tests/test_copy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_copy.py b/tests/test_copy.py index a79969e1..8dfcf286 100644 --- a/tests/test_copy.py +++ b/tests/test_copy.py @@ -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 = {