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

to_base: Error output mismatch between Velox and Presto #12531

Closed
peterenescu opened this issue Mar 4, 2025 · 2 comments
Closed

to_base: Error output mismatch between Velox and Presto #12531

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

Comments

@peterenescu
Copy link
Contributor

peterenescu commented Mar 4, 2025

Description

to_base produces mismatched error outputs between Presto and Velox queries. Error is minor, just a output difference, but causing fuzzer failures likely to different parsed output.

Reproduction

Velox

presto:di> select to_base(c0, c1) from (values (5456023125742555402, 1389805446764088687)) t(c0, c1);

Query 20250304_222614_00052_rd7dj failed: radix <= kMaxRadix (1389805446764088687 vs. 36) Radix must be between 2 and 36. Top-level Expression: presto.default.to_base(field, field_0)

Presto

presto:tpch> select to_base(c0, c1) as p0, row_number as p1 FROM (t_values);

Query 20250304_222422_07556_hjmrr failed: Radix must be between 2 and 36
@peterenescu peterenescu added bug Something isn't working fuzzer-found labels Mar 4, 2025
@kagamiori
Copy link
Contributor

Hi @peterenescu, it's OK for Presto and Velox to have different error messages, as long as they both throw or both not throw on the same input. We don't require the error messages to be the same.

@peterenescu
Copy link
Contributor Author

(Followed up with Wei above) Fuzzer shouldn't throw for different error outputs, but in the actual runs from where I generated the output for this issue, it looks like Velox doesn't throw because of its default null behavior (but still may and we shouldn't error for it). Created issue for actual issue caused by fuzzer default null handling: #12548

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

2 participants