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

chi_squared_cdf: Velox doesn't accept infinity as input #12327

Open
peterenescu opened this issue Feb 13, 2025 · 0 comments
Open

chi_squared_cdf: Velox doesn't accept infinity as input #12327

peterenescu opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working fuzzer-found triage Newly created issue that needs attention.

Comments

@peterenescu
Copy link
Contributor

peterenescu commented Feb 13, 2025

Bug description

Velox errors out with infinity as input for function chi_squared_cdf.

Reproduction

(Presto followed by Velox execution)

presto:di> SELECT chi_squared_cdf(ln(ceil(infinity())), 1);
 _col0                
-------
   NaN 
(1 row)
presto:di> SELECT chi_squared_cdf(ln(ceil(infinity())), c0) from (values (1) ) t(c0);
Query 20250213_230918_10525_zq2gf failed:  Error in function boost::math::chi_squared_distribution<double>::chi_squared_distribution: Degrees of freedom argument is inf, but must be > 0 ! Top-level Expression: presto.default.chi_squared_cdf(Infinity:DOUBLE, cast((field) as DOUBLE))
@peterenescu peterenescu added bug Something isn't working triage Newly created issue that needs attention. labels Feb 13, 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 triage Newly created issue that needs attention.
Projects
None yet
Development

No branches or pull requests

2 participants