Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value for option keep_column_case is "on" #570

Open
flo-osimard opened this issue Jul 23, 2024 · 1 comment
Open

default value for option keep_column_case is "on" #570

flo-osimard opened this issue Jul 23, 2024 · 1 comment

Comments

@flo-osimard
Copy link

Using Databricks Runtime "15.3 ML (includes Apache Spark 3.5.0, Scala 2.12)" which packages

/databricks/jars/----ws_3_5--third_party--snowflake-jdbc--net.snowflake__snowflake-jdbc__shaded---414110472--net.snowflake__snowflake-jdbc__3.16.1.jar

we read tables from format("delta") and write the tables using the snowflake connector in format("snowflake"). The default behavior with previous versions of the connector (before RT 15.3ML) was identifiers named in capital letters in snowflake, same as would setting the option:

keep_column_case is = "off"

With 15.3 ML the tables saved in snowflake have lower cases and are double-quoted, as if the default behavior was

keep_column_case is = "on"
ex: "AccountId" VARCHAR(16777216),

by changing our options and setting the option explicitly : keep_column_case is = "off"
we recover the default behavior.
ex: ACCOUNTID VARCHAR(16777216),

From our point of view the default option value is not the one claimed in the documentation: it is not "off", but "on". So either there is a bug or the documentation needs to be updated.

Thanks for investigating,

@jwilkinson-bread
Copy link

We are also seeing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants