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.
Overview of the past releases is available at
https://github.com/linkedin/coral/releases
Relevant releases:
[Coral-Trino] Avoid accidental translation of Trino from_unixtime SQL call - SqlFunction implementation [Coral-Trino] Avoid accidental translation of Trino
from_unixtime
SQL call - SqlFunction implementation linkedin/coral#467[Coral-Trino] [Backward Incompatible] Refactor RelToTrinoConverter API [Coral-Trino] [Backward Incompatible] Refactor RelToTrinoConverter API linkedin/coral#420
[Coral-Trino] Cast char fields, if necessary, to varchar type in the set operation - SqlCallTransformer [Coral-Trino] Cast char fields, if necessary, to varchar type in the set operation -
SqlCallTransformer
linkedin/coral#442Due to wrong coercion between varchar and char in Trino, as described in Change character literal treatment and char/varchar coercion trino#9031
, a work-around needs to be applied in case of translating Hive views which contain a UNION dealing with char and varchar types. The work-around consists in the explicit cast of the field having char type towards varchar type corresponding of the set operation output type.
How was the PR tested
Ran successfully locally on
trinodb/trino
the tests from the PR trinodb/trino#19275