From 0b6f8106823a7c376609dbe41006ca5b0673b7b4 Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Sun, 24 May 2026 14:31:08 +0530 Subject: [PATCH] Fix metadata retain comparison reborrow --- datafusion/expr/src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/expr/src/expr.rs b/datafusion/expr/src/expr.rs index 71d3057575759..47c2ce4ee0795 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)); } } }