officialasishkumar opened a new pull request, #22491:
URL: https://github.com/apache/datafusion/pull/22491

   ## Which issue does this PR close?
   
   - Closes #22488.
   
   ## Rationale for this change
   
   `intersect_metadata_for_union` compares values retained by `HashMap::retain` 
with values from another metadata map. The retained value is passed as `&mut 
String`, which can make `Option` equality ambiguous for downstream crates when 
additional blanket `PartialEq` implementations are in scope.
   
   Reborrowing the retained value as `&String` keeps the comparison type 
explicit without changing behavior.
   
   ## What changes are included in this PR?
   
   The metadata retain predicate now compares `metadata.get(k)` with 
`Some(&*v)` instead of `Some(v)`.
   
   ## Are these changes tested?
   
   Yes.
   
   - `cargo test -p datafusion-expr intersect_metadata_tests`
   - `cargo fmt --all -- --check`
   - `git diff --check`
   
   ## Are there any user-facing changes?
   
   No runtime behavior change. This avoids a downstream compilation failure in 
the reported dependency configuration.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to