-
Notifications
You must be signed in to change notification settings - Fork 418
feat: memtable seq range read #6950
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: discord9 <[email protected]>
f5b2269
to
315d738
Compare
Signed-off-by: discord9 <[email protected]>
Signed-off-by: discord9 <[email protected]>
From { | ||
/// Exclusive lower bound | ||
min: SequenceNumber, | ||
}, | ||
To { | ||
/// Inclusive upper bound | ||
max: SequenceNumber, | ||
}, | ||
Range { | ||
/// Exclusive lower bound | ||
min: SequenceNumber, | ||
/// Inclusive upper bound | ||
max: SequenceNumber, | ||
}, |
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.
non-blocking: Maybe we can use Gt/LtEq? WDYT
From { | |
/// Exclusive lower bound | |
min: SequenceNumber, | |
}, | |
To { | |
/// Inclusive upper bound | |
max: SequenceNumber, | |
}, | |
Range { | |
/// Exclusive lower bound | |
min: SequenceNumber, | |
/// Inclusive upper bound | |
max: SequenceNumber, | |
}, | |
Gt { | |
/// Exclusive lower bound | |
min: SequenceNumber, | |
}, | |
LtEq { | |
/// Inclusive upper bound | |
max: SequenceNumber, | |
}, | |
GtLtEq { | |
/// Exclusive lower bound | |
min: SequenceNumber, | |
/// Inclusive upper bound | |
max: SequenceNumber, | |
}, |
/// If set, only the memtables that contain sequences greater than this value will be scanned | ||
pub memtable_min_sequence: Option<SequenceNumber>, |
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.
Is it exclusive?
/// Optional constraint on the sequence number of the rows to read. | ||
/// If set, only rows with a sequence number lesser or equal to this value | ||
/// will be returned. | ||
pub sequence: Option<SequenceNumber>, |
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.
Do we need to rename this to max_sequence?
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.
Do we need to rename this to max_sequence?
still useful for refilling which might still need to limit the sequence range and such
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.
Will renaming this field break this?
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
add a sequence range to scan request for scanning memtable within given sequence range, useful for seq read for append only table's partial update query
PR Checklist
Please convert it to a draft if some of the following conditions are not met.