alamb commented on code in PR #3483:
URL: https://github.com/apache/arrow-datafusion/pull/3483#discussion_r973298621


##########
datafusion/core/src/physical_plan/file_format/mod.rs:
##########
@@ -286,8 +286,7 @@ impl SchemaAdapter {
         let projected_schema = 
Arc::new(self.table_schema.clone().project(projections)?);
 
         // Necessary to handle empty batches
-        let mut options = RecordBatchOptions::default();
-        options.row_count = Some(batch.num_rows());
+        let options = 
RecordBatchOptions::new().with_row_count(Some(batch.num_rows()));

Review Comment:
   Update to use the nice API @askoa  added in 
https://github.com/apache/arrow-rs/pull/2729



-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to