Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions native/shuffle/src/shuffle_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ mod test {
#[test]
#[cfg_attr(miri, ignore)]
fn test_batch_coalescing_reduces_size() {
use crate::writers::BufBatchWriter;
use crate::writers::{BufBatchWriter, ShuffleScratch};
use arrow::array::Int32Array;

// Create a wide schema to amplify per-block schema overhead
Expand Down Expand Up @@ -1238,7 +1238,7 @@ mod test {
1024 * 1024,
8192,
);
let mut scratch = Vec::new();
let mut scratch = ShuffleScratch::default();
for batch in &small_batches {
buf_writer
.write(batch, &mut scratch, &encode_time, &write_time)
Expand All @@ -1259,7 +1259,7 @@ mod test {
1024 * 1024,
1,
);
let mut scratch = Vec::new();
let mut scratch = ShuffleScratch::default();
for batch in &small_batches {
buf_writer
.write(batch, &mut scratch, &encode_time, &write_time)
Expand Down Expand Up @@ -1326,7 +1326,7 @@ mod test {
#[test]
#[cfg_attr(miri, ignore)]
fn test_full_batches_bypass_coalescer() {
use crate::writers::BufBatchWriter;
use crate::writers::{BufBatchWriter, ShuffleScratch};
use arrow::array::Int32Array;

let schema = Arc::new(Schema::new(vec![Field::new("v", DataType::Int32, false)]));
Expand Down Expand Up @@ -1368,7 +1368,7 @@ mod test {
1024 * 1024,
batch_size as usize,
);
let mut scratch = Vec::new();
let mut scratch = ShuffleScratch::default();
for batch in &inputs {
buf_writer
.write(batch, &mut scratch, &encode_time, &write_time)
Expand Down
Loading
Loading