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

fix: floatEquals and floatBetween with null values #402

Merged
merged 1 commit into from
May 1, 2024

Conversation

JonasKellerer
Copy link
Contributor

Summary

In GenSpectrum/LAPIS#760 it was found that filtering for null values does not work correctly. This PR targets this issue. The problem was that null is represented as nan in the code. However, equals comparisons with nan always return false.

PR Checklist

- [ ] All necessary documentation has been adapted or there is an issue to do so.

  • The implemented feature is covered by an appropriate test.

@JonasKellerer JonasKellerer force-pushed the investigateNullFloatFilterValue branch 2 times, most recently from 63526a2 to 4b33330 Compare April 30, 2024 11:05
Copy link
Contributor

@fengelniederhammer fengelniederhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/silo/test/int_equals.test.cpp Outdated Show resolved Hide resolved
src/silo/query_engine/operators/selection.cpp Show resolved Hide resolved
@JonasKellerer JonasKellerer force-pushed the investigateNullFloatFilterValue branch from dbe8107 to 4342175 Compare May 1, 2024 11:25
- comparison with Nan was not implemented correctly
@JonasKellerer JonasKellerer force-pushed the investigateNullFloatFilterValue branch from 4342175 to a1ac821 Compare May 1, 2024 11:27
@JonasKellerer JonasKellerer merged commit 47b436e into main May 1, 2024
8 checks passed
@JonasKellerer JonasKellerer deleted the investigateNullFloatFilterValue branch May 1, 2024 12:01
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

Successfully merging this pull request may close these issues.

2 participants