File tree Expand file tree Collapse file tree
native/core/src/execution/shuffle Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818use crate :: errors:: { CometError , CometResult } ;
1919use arrow:: array:: { make_array, Array , ArrayRef , RecordBatch } ;
20- use arrow:: record_batch:: RecordBatchOptions ;
2120use arrow:: buffer:: Buffer ;
2221use arrow:: compute:: cast;
2322use arrow:: datatypes:: DataType ;
2423use arrow:: datatypes:: Schema ;
24+ use arrow:: record_batch:: RecordBatchOptions ;
2525use bytes:: Buf ;
2626use crc32fast:: Hasher ;
2727use datafusion:: common:: DataFusionError ;
@@ -318,10 +318,8 @@ fn read_raw_batch(bytes: &[u8], schema: &Schema) -> Result<RecordBatch> {
318318 columns. push ( make_array ( array_data) ) ;
319319 }
320320
321- let options =
322- RecordBatchOptions :: new ( ) . with_row_count ( Some ( num_rows) ) ;
323- let batch =
324- RecordBatch :: try_new_with_options ( Arc :: new ( schema. clone ( ) ) , columns, & options) ?;
321+ let options = RecordBatchOptions :: new ( ) . with_row_count ( Some ( num_rows) ) ;
322+ let batch = RecordBatch :: try_new_with_options ( Arc :: new ( schema. clone ( ) ) , columns, & options) ?;
325323 Ok ( batch)
326324}
327325
You can’t perform that action at this time.
0 commit comments