SNOW-1856596: df.write.save_as_table
fails when column_order="name"
and a column has a SQL name clash
#2763
Labels
df.write.save_as_table
fails when column_order="name"
and a column has a SQL name clash
#2763
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
What operating system and processor architecture are you using?
Windows-10-10.0.22631-SP0
What are the component versions in the environment (
pip freeze
)?pandas==2.2.2
snowflake-snowpark-python==1.26.0
What did you do?
I created a dataframe with a column named
ROW
and tried to save it as a table usingcolumn_order="name"
.What did you expect to see?
No error, but got
I inspected the query created by snowpark which failed, which was
INSERT INTO DATABASE.SCHEMA.TESTTABLE1(A, ROW) SELECT * FROM "DATABASE"."SCHEMA"."SNOWPARK_TEMP_TABLE_8A1BTHDOUP"
as you can see, the column names in (A, ROW) are not enclosed in double quotes, therefore the query is invalid since it thinks
ROW
is a sql command.The text was updated successfully, but these errors were encountered: