-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Iterator for single shard in the tree #14
Conversation
c5333e3
to
00fa47f
Compare
4ff4ddb
to
8150aa7
Compare
} | ||
|
||
/// Converts current [RecordBatch] to [Batch]. | ||
fn convert_current_record_batch( |
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.
This PR provides a DataBatch::as_record_batch
method:
https://github.com/evenyag/greptimedb/pull/15/files#diff-5066fcdd3b887926278b1155cfbf005cbca27e9699e36292abcc55ecf80110e2R61-R63
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.
Slicing the record batch is a bit wasteful as it clones the underlying Vec<ArrayRef>
. The data iter also has this issue as it has to clone the record batch for each pk index.
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This PR implements the iterator ShardIter to scan a single shard in the merge tree.
Checklist
Refer to a related PR or issue link (optional)