Skip to content

Commit 2e8de8a

Browse files
committed
backport fix for spilling batches with different nullability
1 parent 3fdd4f5 commit 2e8de8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/physical-plan/src/spill/in_progress_spill_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl InProgressSpillFile {
6262
));
6363
}
6464
if self.writer.is_none() {
65-
let schema = batch.schema();
65+
let schema = Arc::clone(self.spill_writer.schema());
6666
if let Some(ref in_progress_file) = self.in_progress_file {
6767
self.writer = Some(IPCStreamWriter::new(
6868
in_progress_file.path(),

0 commit comments

Comments
 (0)