-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incorrect result returned by UNION ALL
(SQLancer-TLP)
#11742
Labels
bug
Something isn't working
Comments
Update: checked Note to myself Maybe duplicate:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Here is Q1
select nvl(v1, 0.5) from tt;
then let
Q1
union a empty set, two queries should have the same result, but it's returning a different result.Looks like it's an incorrect casting (cast double to int), since double has higher precision, it should cast in the opposite direction
Reproducer in datafusion-cli
To Reproduce
No response
Expected behavior
No response
Additional context
Found by SQLancer #11030
The text was updated successfully, but these errors were encountered: