Skip to content

Commit

Permalink
Update datafusion/physical-plan/src/memory.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Zhan <[email protected]>
  • Loading branch information
jonathanc-n and jayzhan211 authored Jan 8, 2025
1 parent 388bc5d commit dc1952a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/physical-plan/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ impl MemoryExec {
let n_row = data.len();
let n_col = schema.fields().len();

// We have this single row batch as a placeholder to satisfy evaluation argument
// and generate a single output row
let placeholder_schema = Arc::new(Schema::empty());
let placeholder_batch = RecordBatch::try_new_with_options(
Arc::clone(&placeholder_schema),
Expand Down

0 comments on commit dc1952a

Please sign in to comment.