Skip to content

Commit

Permalink
collect into a single batches
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordworms committed Feb 14, 2024
1 parent e13670e commit 455a5d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datafusion/core/src/execution/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,8 +947,7 @@ impl SessionContext {
} else {
Arc::new(Schema::empty())
};
let provider =
MemTable::try_new(schema, batches.map(|batch| vec![batch]).collect())?;
let provider = MemTable::try_new(schema, vec![batches.collect()])?;
Ok(DataFrame::new(
self.state(),
LogicalPlanBuilder::scan(
Expand Down

0 comments on commit 455a5d9

Please sign in to comment.