Skip to content

Commit

Permalink
actually assign the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Jan 23, 2025
1 parent aae525d commit 0e6f163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/polars-mem-engine/src/executors/multi_file_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ impl MultiScanExec {

let mut final_per_source_schema = Cow::Borrowed(self.file_info.schema.as_ref());
if let Some(with_columns) = file_with_columns.as_ref() {
final_per_source_schema
.to_mut()
final_per_source_schema = Cow::Owned(final_per_source_schema
.as_ref()
.try_project(with_columns.as_ref())
.unwrap();
.unwrap());
}

// Remove the hive columns for each file load.
Expand Down

0 comments on commit 0e6f163

Please sign in to comment.