-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add tinyint/smallint/integer/bigint to double coercion for hive tables #19520
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
Add tinyint/smallint/integer/bigint to double coercion for hive tables #19520
Conversation
|
Does the schema evolution match the behavior of Hive? |
|
To answer my own question, I think this is the method that Hive uses to determine if a type schema type is allowed. The last lines of that code aren't really clear, but I believe it is says that anything on this list is coercible to anything higher on the list:
|
|
Unrelated CI failures
|
|
Is there an umbrella issue to track the missing coersions? |
1390e39 to
8c0ed85
Compare
Created #19643 for providing of the past & ongoing schema evolution efforts in Hive. |
2c3014f to
01dc0a4
Compare
plugin/trino-hive/src/main/java/io/trino/plugin/hive/coercions/CoercionUtils.java
Outdated
Show resolved
Hide resolved
01dc0a4 to
936ddbe
Compare
Description
Add
tinyint/smallint/integer/biginttodoublecoercion for hive tables.Enable the Hive users to retrieve the information from their tables after performing queries which change numeric integer columns to
double.Hive sample DDL query:
Additional context and related issues
This is a mere adaptation of #16869 to match
timestamptodatecoercionRelease notes
( ) This is not user-visible or is docs only, and no release notes are required.
() Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: