-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Array cast failing after version bump #18456
Comments
cc: @dain - this looks like another bug introduced by #18094 which is still present after #18473. ScalarFunctionAdapter.adaptReturn is trying to use |
dain
added a commit
to dain/trino
that referenced
this issue
Jan 20, 2024
When adapting a nullable function to a BLOCK_BUILDER return, a null must be appended when the function return value is null. Fixes trinodb#18456 Co-authored-by: Dain Sundstrom <[email protected]>
dain
added a commit
that referenced
this issue
Jan 20, 2024
When adapting a nullable function to a BLOCK_BUILDER return, a null must be appended when the function return value is null. Fixes #18456 Co-authored-by: Dain Sundstrom <[email protected]>
abusk
pushed a commit
to abusk/trino
that referenced
this issue
Jan 22, 2024
When adapting a nullable function to a BLOCK_BUILDER return, a null must be appended when the function return value is null. Fixes trinodb#18456 Co-authored-by: Dain Sundstrom <[email protected]>
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finding inconsistent behavior between versions when casting between types
Array(JSON)
andArray(DOUBLE)
.Trino 418
Final cast from type
Array(JSON)
toArray(DOUBLE)
succeeds:Returns:
Trino 421
Same query fails with the following error:
Full stack trace posted at the end
Work around in Trino 421
Pushing the cast to double into the
tranform_values
call fixes this:Returns
Stack Trace
The text was updated successfully, but these errors were encountered: