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

map_zip_with: Presto has default-null behavior while Velox doesn't #10964

Open
kagamiori opened this issue Sep 11, 2024 · 0 comments
Open

map_zip_with: Presto has default-null behavior while Velox doesn't #10964

kagamiori opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working fuzzer-found

Comments

@kagamiori
Copy link
Contributor

Description

Query:

select map_zip_with(c1, map(c0, array[1, 2]), (k, v1, v2) -> (k, v1)) 
from (values (array[1, null], cast(null as map(integer, integer)))) t(c0, c1);

Presto-0.289: Returns NULL
Velox: Throws an exception "!keysElements->isNullAt(offset + i) map key cannot be null".

Error Reproduction

No response

Relevant logs

No response

@kagamiori kagamiori added bug Something isn't working fuzzer-found labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fuzzer-found
Projects
None yet
Development

No branches or pull requests

1 participant