Skip to content

Commit

Permalink
fix: handle validating table when DropsPartitionFields not present (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiyan authored Sep 15, 2024
1 parent c16f79a commit e23e6ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/core/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ impl Table {
return Err(anyhow!("Only support table version 5 and 6."));
}

let drops_partition_cols = hudi_configs.get(DropsPartitionFields)?.to::<bool>();
let drops_partition_cols = hudi_configs
.get_or_default(DropsPartitionFields)
.to::<bool>();
if drops_partition_cols {
return Err(anyhow!(
"Only support when `{}` is disabled",
Expand Down

0 comments on commit e23e6ed

Please sign in to comment.