-
Notifications
You must be signed in to change notification settings - Fork 239
Partition Writer Support Part 1: add partition splitter #1040
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
This PR may conflict with #1014. But I'm not sure whether #1014 can be reviewed and merge recently. I'm ok to merge any one first and I will fix the conflict later. cc @liurenjie1024 @jonathanc-n @Fokko @Xuanwo @sdd |
4ac8823
to
7bc64bb
Compare
@ZENOTME I should be able to take a look at this tomorrow |
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.
small nits, I don't know if worth to even change if this is just temporary code.
// # TODO | ||
// Remove this after partition writer supported. | ||
#[allow(dead_code)] | ||
pub struct RecordBatchPartitionsplitter { |
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.
pub struct RecordBatchPartitionsplitter { | |
pub struct RecordBatchPartitionSplitter { |
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.
and rest of code
partition_batches.push(( | ||
row, | ||
filter_record_batch(batch, &filter_array) | ||
.expect("We should guarantee the filter array is valid"), |
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.
prefer to propogate error instead of expect
Which issue does this PR close?
This PR is part 1 to close #342.
What changes are included in this PR?
The partition writer support will be separate into three PR:
This PR is the first part.
Are these changes tested?