alamb commented on code in PR #11971:
URL: https://github.com/apache/arrow-rs/pull/11971#discussion_r4416143312


##########
parquet/src/arrow/arrow_writer/mod.rs:
##########
@@ -1404,11 +1471,12 @@ impl ArrowRowGroupWriterFactory {
         file_writer: &SerializedFileWriter<W>,
         arrow_schema: SchemaRef,
     ) -> Self {
-        let schema = Arc::clone(file_writer.schema_descr_ptr());
+        let schema_plan =
+            
ArrowWriteSchemaPlan::try_new(file_writer.schema_descr_ptr().as_ref(), 
&arrow_schema)
+                .map(Arc::new);

Review Comment:
   > @alamb, I know you generally prefer avoiding breaking changes. Do you have 
a preference here? It feels like (2) mostly delays the inevitable, so I’m 
inclined to bite the bullet now.
   
   We can make the breaking change, but then we would need to wait for the next 
major release
   - #11886 



-- 
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]

Reply via email to