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

Trino's is_nan() is traslated wrong to SparkSQL #1964

Closed
dmelchor-stripe opened this issue Jul 27, 2023 · 1 comment
Closed

Trino's is_nan() is traslated wrong to SparkSQL #1964

dmelchor-stripe opened this issue Jul 27, 2023 · 1 comment

Comments

@dmelchor-stripe
Copy link

Fully reproducible code snippet

transpile("SELECT is_nan(DOUBLE 'NaN')", read="trino", write="spark")[0]

Results in

SELECT IS_NAN(CAST('NaN' AS DOUBLE))

But should result in:

SELECT ISNAN(CAST('NaN' AS DOUBLE))

Official Documentation
Please include links to official SQL documentation related to your issue.
https://spark.apache.org/docs/latest/api/sql/index.html#isnan

@tobymao
Copy link
Owner

tobymao commented Jul 27, 2023

@dmelchor-stripe thanks for these issues, they are relatively simple, feel free to make prs in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants