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

Improve support for floating point types in Domain translator #2582

Merged
merged 4 commits into from
Jan 22, 2020

Conversation

kasiafi
Copy link
Member

@kasiafi kasiafi commented Jan 22, 2020

No description provided.

Before this change, a query like
`SELECT col_double FROM t WHERE col_double > 2.0 OR col_double < 5.0`
would return NaN values in the result, which is incorrect.

That was caused by OR-predicate incorrectly translated to Domain.
The union of domains: (col_double > 2.0) and (col_double < 5.0),
neither accepting NaN, resulted in domain "not null", accepting NaN.
The remaining expression was simplified to TRUE.

The issue was fixed by returning the original predicate
as the remaining expression.
@cla-bot cla-bot bot added the cla-signed label Jan 22, 2020
@martint martint merged commit 87557e2 into trinodb:master Jan 22, 2020
@martint martint added this to the 329 milestone Jan 22, 2020
@martint martint mentioned this pull request Jan 22, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants