emilk commented on code in PR #7664:
URL: https://github.com/apache/arrow-rs/pull/7664#discussion_r2152510864
##########
arrow-array/src/record_batch.rs:
##########
@@ -402,6 +404,14 @@ impl RecordBatch {
&self.schema
}
+ /// Mutable access to the metadata of the schema.
+ ///
+ /// This allows you to modify [`Schema::metadata`] of [`Self::schema`] in
a convenient and fast way.
+ pub fn schema_metadata_mut(&mut self) -> &mut
std::collections::HashMap<String, String> {
+ let schema = Arc::make_mut(&mut self.schema);
+ &mut schema.metadata
Review Comment:
I see no reason for that - all the fields of `struct Schema` are already
`pub`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]