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-48399][SQL] Teradata: ByteType should map to BYTEINT instead of BYTE(binary) #46715

Closed
wants to merge 1 commit into from

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented May 23, 2024

What changes were proposed in this pull request?

According to the doc of Teradata and Teradata jdbc, BYTE represents binary type in Teradata, while BYTEINT is used for tinyint.

Why are the changes needed?

Bugfix

Does this PR introduce any user-facing change?

Yes, ByteType used to be stored as binary type in Teradata, now it has become BYTEINT.
(The use-case seems rare, the migration guide or legacy config are pending reviewer's comments)

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 23, 2024
@yaooqinn
Copy link
Member Author

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM because this is a bug fix based on the documentation.

For the legacy conf, I'm fine with both (with/without).

@yaooqinn yaooqinn closed this in 6afa6cc May 24, 2024
@yaooqinn yaooqinn deleted the SPARK-48399 branch May 24, 2024 02:14
@yaooqinn
Copy link
Member Author

Thank you @dongjoon-hyun, We can add a follow-up on the legacy configuration if someone considers it necessary.

Merged to master

@LuciferYang
Copy link
Contributor

late LGTM

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

Successfully merging this pull request may close these issues.

3 participants