You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quote_identifiers – By default, identifiers, specifically database, schema, table and column names (from DataFrame.columns) will be quoted. If set to False, identifiers are passed on to Snowflake without quoting, i.e. identifiers will be coerced to uppercase by Snowflake.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Align the table_name quotation in save_as_table() and write_pandas()
SNOW-687991: Align the table_name quotation in save_as_table() and write_pandas()
Nov 2, 2022
Thanks @ChuliangXiao pandas columns are case sensitive. For instance, ab and aB are two different column names. If they're not quoted, the would both become AB after writing to a table. So write_pandas quote the column names by default and therefore quote the table name too.
Aside from dealing with pandas DataFrame, we try to follow the Snowflake object identifier requirements.
But this is indeed confusing to users. We'll think of a way to improve it.
What is the current behavior?
snowpark_df.write.save_as_table('abc')
creates a tableABC
in snowflakesession.write_pandas(pandas_df, 'abc')
creates a tableabc
in snowflakesession.write_pandas(pandas_df, 'abc', quote_identifiers=False)
creates a tableABC
in snowflakeWhat is the desired behavior?
session.write_pandas(pandas_df, 'abc')
creates a tableABC
in snowflakesession.write_pandas(pandas_df, 'abc', quote_identifiers=True)
creates a tableabc
in snowflakeHow would this improve
snowflake-snowpark-python
?Make writing Snowflake Table consistent
References, Other Background
As explained in
write_pandas
docsThe text was updated successfully, but these errors were encountered: