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

[SPARK-48323][SQL] DB2: Map BooleanType to BOOLEAN instead of CHAR(1) #46637

Closed
wants to merge 3 commits into from

Conversation

yaooqinn
Copy link
Member

What changes were proposed in this pull request?

This PR maps BooleanType to BOOLEAN instead of CHAR(1) when writing DB2 tables, users can restore the old behavior by setting spark.sql.legacy.db2.booleanTypeMapping.enabled to true

Why are the changes needed?

DB2 has supported boolean since v9.7, which is already EOL. It's reasonable to BooleanType to BOOLEAN

Does this PR introduce any user-facing change?

yes, spark.sql.legacy.db2.booleanTypeMapping.enabled is provided to restore

How was this patch tested?

new tests

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the SQL label May 17, 2024
@yaooqinn
Copy link
Member Author

cc @dongjoon-hyun @cloud-fan @LuciferYang thanks

@LuciferYang
Copy link
Contributor

Due to the existence of user-facing change, should it be documented in the migration document?

@github-actions github-actions bot added the DOCS label May 20, 2024
@yaooqinn
Copy link
Member Author

should it be documented in the migration document?

Thank you @LuciferYang for the reminder. I missed that.

@yaooqinn yaooqinn closed this in 3a888f7 May 20, 2024
@yaooqinn
Copy link
Member Author

Merged to master. Thank you @LuciferYang

@cloud-fan
Copy link
Contributor

late LGTM

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