-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
VReplication: Support for BETWEEN
/NOT BETWEEN
filter in VStream
#17721
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Noble Mittal <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17721 +/- ##
==========================================
+ Coverage 67.79% 67.95% +0.16%
==========================================
Files 1587 1586 -1
Lines 255829 255261 -568
==========================================
+ Hits 173427 173463 +36
+ Misses 82402 81798 -604 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Noble Mittal <[email protected]>
Tested this locally using the example local cluster. |
ts.Run() | ||
} | ||
|
||
func TestFilteredNotBetweenOperator(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this test, I cannot find where the correctness of the BETWEEN
values is validated. i.e. I would expect something to validate that the value 1
is not being copied, the values 2 - 4
are, and that the value 5
is not.
continue | ||
} | ||
|
||
// x BETWEEN a AND b => x >= a AND x <= b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify comment:
// x BETWEEN a AND b => x >= a AND x <= b | |
// `x BETWEEN a AND b` means: `x >= a AND x <= b` |
} | ||
|
||
if !expr.IsBetween { | ||
// x NOT BETWEEN a AND b => x < a OR x > b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify comment:
// x NOT BETWEEN a AND b => x < a OR x > b | |
// `x NOT BETWEEN a AND b` means: `x < a OR x > b` |
Description
This PR adds support for
BETWEEN
filter in VStream.Related Issue(s)
Checklist
Deployment Notes