Skip to content

Commit ebd3c61

Browse files
committed
format
1 parent a802209 commit ebd3c61

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • native/core/src/execution/shuffle

native/core/src/execution/shuffle/codec.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
use crate::errors::{CometError, CometResult};
1919
use arrow::array::{make_array, Array, ArrayRef, RecordBatch};
20-
use arrow::record_batch::RecordBatchOptions;
2120
use arrow::buffer::Buffer;
2221
use arrow::compute::cast;
2322
use arrow::datatypes::DataType;
2423
use arrow::datatypes::Schema;
24+
use arrow::record_batch::RecordBatchOptions;
2525
use bytes::Buf;
2626
use crc32fast::Hasher;
2727
use 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

0 commit comments

Comments
 (0)