-
Notifications
You must be signed in to change notification settings - Fork 196
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: allow nullable field of equality delete writer #834
base: main
Are you sure you want to change the base?
Conversation
cc @liurenjie1024 @Fokko @Xuanwo @sdd I think this PR is ready to go |
7b18773
to
80db872
Compare
@@ -148,8 +150,11 @@ impl RecordBatchProjector { | |||
))? | |||
.column(*idx) | |||
.clone(); | |||
null_buffer = NullBuffer::union(null_buffer.as_ref(), array.logical_nulls().as_ref()); |
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 actually need to do this? I assume if parent struct element is null, its child is also null?
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.
Yes. E.g. in
vec![Arc::new(Int32Array::from(vec![Some(1), Some(2), None]))], |
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.
Could you add some test for more deeply nested struct type? For example struct(struct(int))?
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.
Sure, I have add it.
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.
Thanks @ZENOTME for fixing this, generally LGTM, just left a small question.
According to the doc fixed in apache/iceberg#8981, the equality delete writer can have an optional field id. This PR fixes this.