Skip to content

Commit

Permalink
make everything optional
Browse files Browse the repository at this point in the history
  • Loading branch information
zachschuermann committed Nov 5, 2024
1 parent 9d4b599 commit 1b7b193
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 522 deletions.
4 changes: 2 additions & 2 deletions kernel/src/scan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl ScanBuilder {
let (all_fields, read_fields, have_partition_cols) = get_state_info(
logical_schema.as_ref(),
&self.snapshot.metadata().partition_columns,
self.snapshot.table_properties().column_mapping_mode,
self.snapshot.table_properties().get_column_mapping_mode(),
)?;
let physical_schema = Arc::new(StructType::new(read_fields));
Ok(Scan {
Expand Down Expand Up @@ -247,7 +247,7 @@ impl Scan {
partition_columns: self.snapshot.metadata().partition_columns.clone(),
logical_schema: self.logical_schema.clone(),
read_schema: self.physical_schema.clone(),
column_mapping_mode: self.snapshot.table_properties().column_mapping_mode,
column_mapping_mode: self.snapshot.table_properties().get_column_mapping_mode(),
}
}

Expand Down
Loading

0 comments on commit 1b7b193

Please sign in to comment.