-
Notifications
You must be signed in to change notification settings - Fork 824
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
Remove 'make_row', expose a 'Row::new' method instead. #6763
Conversation
Signed-off-by: Jonas Dedden <[email protected]> Use `Row::new` also in internal tests. Signed-off-by: Jonas Dedden <[email protected]> cargo fmt
69e0a9d
to
fd1b6ae
Compare
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.
@@ -283,12 +288,6 @@ impl RowAccessor for Row { | |||
row_complex_accessor!(get_map, MapInternal, Map); | |||
} | |||
|
|||
/// Constructs a `Row` from the list of `fields` and returns it. | |||
#[inline] | |||
pub fn make_row(fields: Vec<(String, Field)>) -> Row { |
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.
I double checked and indeed this method is not public
BTW using the |
Yes, I implemented the data manipulation functionality that I need also already for whole RecordBatches & Arrays, but for a specific use case I also want to modify single rows. I'm aware that this is very much less efficient than it could be. Thank you for your quick replies and collaboration! |
That this CI action fails is not my fault, right? |
Looks unrelated to me |
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.
I like this version much better! Thanks!
Since you did a release only a few days ago, one can't expect a new release for another month, right? |
That is correct. The next scheduled release is |
Which issue does this PR close?
Closes #6761
Closes #6762
Rationale for this change
parquet::record::make_row
was the only method to createRow
instances and was private. With a class method::new
, there is a new way of creatingRow
instances that is publicly exposed.What changes are included in this PR?
parquet::record::make_row
parquet::record::Row::new
method.