Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Ho authored and Colin Ho committed Sep 27, 2024
1 parent c889112 commit 945cfc7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/daft-local-execution/src/sources/scan_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,17 @@ async fn stream_scan_task(
.into_series();
table = table.union(&Table::from_nonempty_columns(vec![file_paths_column])?)?;
}
let casted_table = table.cast_to_schema_with_fill(
scan_task.materialized_schema().as_ref(),
scan_task
.partition_spec()
.as_ref()
.map(|pspec| pspec.to_fill_map())
.as_ref(),
)?;
let mp = Arc::new(MicroPartition::new_loaded(
scan_task.materialized_schema().clone(),
Arc::new(vec![table]),
Arc::new(vec![casted_table]),
scan_task.statistics.clone(),
));
Ok(mp)
Expand Down

0 comments on commit 945cfc7

Please sign in to comment.