Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKeDer committed Oct 5, 2024
1 parent 8f4232f commit 58240a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/operations/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ impl std::future::IntoFuture for WriteBuilder {
actions.push(protocol.into())
}

if schema != table_schema {
if try_cast_batch(schema.fields(), table_schema.fields()).is_err() {
let mut metadata = snapshot.metadata().clone();
let delta_schema: StructType = schema.as_ref().try_into()?;
metadata.schema_string = serde_json::to_string(&delta_schema)?;
Expand Down

0 comments on commit 58240a9

Please sign in to comment.