diff --git a/crates/deltalake-core/src/delta_datafusion/mod.rs b/crates/deltalake-core/src/delta_datafusion/mod.rs index ce2485c845..07e307a94c 100644 --- a/crates/deltalake-core/src/delta_datafusion/mod.rs +++ b/crates/deltalake-core/src/delta_datafusion/mod.rs @@ -1049,7 +1049,7 @@ impl DeltaDataChecker { .and_then(|meta| meta.schema.get_invariants().ok()) .unwrap_or_default(); let constraints = metadata - .and_then(|meta| Some(meta.get_constraints())) + .map(|meta| meta.get_constraints()) .unwrap_or_default(); Self { invariants,