-
Notifications
You must be signed in to change notification settings - Fork 358
chore: Expose puffin blob constructor #1320
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
chore: Expose puffin blob constructor #1320
Conversation
crates/iceberg/src/puffin/blob.rs
Outdated
| self | ||
| } | ||
|
|
||
| pub fn build(self) -> Blob { |
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 is incorrect. For fields that are required, we should need to check if they are set. You can use TypedBuilder to help to ensure safety.
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.
got it, thanks for the lesson!
liurenjie1024
left a comment
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 @dentiny for this pr, LGTM!
Thank you for the great help! |
Which issue does this PR close?
This PR expose public construction function for puffin blob, as discussed in the linked issue.
The main motivation is: puffin blob is supposed to hold any type, so should be public-ly accessible by developers.
blobstruct public #1311Are these changes tested?
This PR is a no-op change, I verified compilation passes through on my end.