This is an automated email from the ASF dual-hosted git repository.
xushiyan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hudi-rs.git
The following commit(s) were added to refs/heads/main by this push:
new e23e6ed fix: handle validating table when `DropsPartitionFields` not
present (#142)
e23e6ed is described below
commit e23e6ed3190e412a9d196fd3959b54c27ca75e2b
Author: Shiyan Xu <[email protected]>
AuthorDate: Sun Sep 15 14:14:11 2024 -0500
fix: handle validating table when `DropsPartitionFields` not present (#142)
---
crates/core/src/table/mod.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/crates/core/src/table/mod.rs b/crates/core/src/table/mod.rs
index b20f4ca..57f0222 100644
--- a/crates/core/src/table/mod.rs
+++ b/crates/core/src/table/mod.rs
@@ -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",