Support coercing char types of different lengths in hive#16402
Merged
Praveen2112 merged 2 commits intotrinodb:masterfrom Mar 21, 2023
Merged
Support coercing char types of different lengths in hive#16402Praveen2112 merged 2 commits intotrinodb:masterfrom
Praveen2112 merged 2 commits intotrinodb:masterfrom
Conversation
620f356 to
5c8eb0b
Compare
ebyhr
approved these changes
Mar 14, 2023
Member
There was a problem hiding this comment.
nit: We use "short" at least in io.trino.spi.type.Chars class. No requested change as there's the existing narrowerThan method.
Suggested change
| public static boolean narrowerThan(CharType first, CharType second) | |
| public static boolean shorterThan(CharType first, CharType second) |
Member
There was a problem hiding this comment.
nit: Move to before if (toType instanceof VarcharType) {.
5c8eb0b to
a04a5c9
Compare
Member
Author
|
@ebyhr AC |
skrzypo987
approved these changes
Mar 16, 2023
Member
There was a problem hiding this comment.
nit: if ImmutableList is not available then use List.of(). Arrays.asList is not cool anymore
testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/BaseTestHiveCoercion.java
Outdated
Show resolved
Hide resolved
kokosing
approved these changes
Mar 16, 2023
a04a5c9 to
47fbca7
Compare
Member
Author
|
@skrzypo987 AC |
db48677 to
ecc9895
Compare
For list with null values we still use Arrays#asList
ecc9895 to
8542ea2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for coercing from
Additional context and related issues
Similar to #5530
Release notes
(x) Release notes are required, with the following suggested text: