You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/02 19:10:48 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3002: Parquet Writer: Make column descriptor public on the writer

tustvold commented on code in PR #3002:
URL: https://github.com/apache/arrow-rs/pull/3002#discussion_r1012195743


##########
parquet/src/file/writer.rs:
##########
@@ -488,6 +499,11 @@ impl<'a> SerializedColumnWriter<'a> {
         get_typed_column_writer_mut(&mut self.inner)
     }
 
+    /// Returns a clone to a [`ColumnDescPtr`]
+    pub fn descriptor(&self) -> ColumnDescPtr {

Review Comment:
   Returning &ColumnDescPtr would be more idiomatic so the caller can clone only if they need to



##########
parquet/src/file/writer.rs:
##########
@@ -473,9 +479,14 @@ impl<'a> SerializedColumnWriter<'a> {
     /// optional callback to be invoked on [`Self::close`]
     pub fn new(
         inner: ColumnWriter<'a>,
+        descriptor: ColumnDescPtr,

Review Comment:
   This is a breaking change



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org