Apache DataFusion SQL Query Engine
fix: reborrow metadata values when intersecting union metadata (#22491)
Asish Kumar3e006c99c293
diff --git a/datafusion/expr/src/expr.rs b/datafusion/expr/src/expr.rsindex 3f6ec9fe62..98d355fad8 100644--- a/datafusion/expr/src/expr.rs+++ b/datafusion/expr/src/expr.rs@@ -662,7 +662,7 @@ pub fn intersect_metadata_for_union<'a>(}Some(current) => {// Only keep keys that exist in both with the same value- current.retain(|k, v| metadata.get(k) == Some(v));+ current.retain(|k, v| metadata.get(k) == Some(&*v));}}}