Skip to content

Commit

Permalink
use input schema to get correct schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco authored and rtyler committed Aug 2, 2024
1 parent 28a4526 commit ea8f068
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/src/operations/load_cdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ impl CdfLoadBuilder {
);

let partition_values = self.snapshot.metadata().partition_columns.clone();
let schema = self.snapshot.arrow_schema()?;
let schema = self.snapshot.input_schema()?;
let schema_fields: Vec<Field> = self
.snapshot
.arrow_schema()?
.all_fields()
.input_schema()?
.flattened_fields()
.into_iter()
.filter(|f| !partition_values.contains(f.name()))
.cloned()
Expand Down

0 comments on commit ea8f068

Please sign in to comment.