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: timestamp range filter #2533

Merged
merged 3 commits into from
Oct 8, 2023

Conversation

v0y4g3r
Copy link
Contributor

@v0y4g3r v0y4g3r commented Oct 7, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR fixes the bug in building timestamp range predicates when operators do not conform commutative property.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

Fixes #2508

@v0y4g3r v0y4g3r requested review from evenyag and zhongzc October 7, 2023 07:21
@v0y4g3r v0y4g3r force-pushed the fix/time-range-filter branch from 1c991ca to 79e8359 Compare October 7, 2023 07:28
@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Merging #2533 (b3ec887) into develop (fe783c7) will decrease coverage by 0.30%.
Report is 4 commits behind head on develop.
The diff coverage is 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2533      +/-   ##
===========================================
- Coverage    85.32%   85.02%   -0.30%     
===========================================
  Files          730      731       +1     
  Lines       116311   116886     +575     
===========================================
+ Hits         99240    99384     +144     
- Misses       17071    17502     +431     

@v0y4g3r v0y4g3r requested a review from waynexia October 7, 2023 09:23
src/table/src/predicate.rs Outdated Show resolved Hide resolved
src/table/src/predicate.rs Outdated Show resolved Hide resolved
src/table/src/predicate.rs Show resolved Hide resolved
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

Great test coverage 🔥

@v0y4g3r v0y4g3r requested a review from evenyag October 7, 2023 13:30
@evenyag evenyag added this pull request to the merge queue Oct 8, 2023
Merged via the queue into GreptimeTeam:develop with commit 0292445 Oct 8, 2023
13 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* fix: timestamp range filter

* fix: rebase develop

* fix: some style issues
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.

TimeRangePredicateBuilder may build wrong time range with binary expresions
3 participants