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

from_utf8: Velox throws while Presto outputs for negative unicode #12554

Open
peterenescu opened this issue Mar 5, 2025 · 0 comments
Open

from_utf8: Velox throws while Presto outputs for negative unicode #12554

peterenescu opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working fuzzer-found

Comments

@peterenescu
Copy link
Contributor

peterenescu commented Mar 5, 2025

Description

Error handling mismatch between Velox and Presto for function from_utf8. Velox doesn't accept negative unicode values as input for said function.

Error Reproduction

Velox:

presto:di> select from_utf8(c0, c1) from (values (varbinary 'Y%ZM~(d%I=s7+#l"T.8''Qf,w0{2-_P;zLmf', -6)) t(c0, c1);
Query 20250305_215555_43636_nqej6 failed: validCodePoint Not a valid Unicode code point: -6 Top-level Expression: presto.default.from_utf8(field, cast((field_0) as BIGINT))

Presto:

presto> select from_utf8(c0, c1) from (values (varbinary 'Y%ZM~(d%I=s7+#l"T.8''Qf,w0{2-_P;zLmf', -6)) t(c0, c1);
                _col0                
-------------------------------------
 Y%ZM~(d%I=s7+#l"T.8'Qf,w0{2-_P;zLmf 
(1 row)
@peterenescu peterenescu added bug Something isn't working fuzzer Issues related the to Velox fuzzer test components. fuzzer-found and removed fuzzer Issues related the to Velox fuzzer test components. labels Mar 5, 2025
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