thswlsqls opened a new pull request, #8536:
URL: https://github.com/apache/paimon/pull/8536

   ### Purpose
   
   - Fix `InternalRowUtils.equals` for `MAP<BINARY, ...>` keys by comparing map 
keys through typed equality instead of Java `Map.containsKey`.
   - Keep typed map hashing order-independent so equal binary-key maps produce 
equal hashes.
   - fix #8535
   
   ### Tests
   
   - `mvn -pl paimon-common -DwildcardSuites=none -DfailIfNoTests=false 
-Dtest=InternalRowUtilsTest#testEqualsMapWithBinaryKeys test`
   - `mvn -pl paimon-common -DwildcardSuites=none -DfailIfNoTests=false 
-Dtest=InternalRowUtilsTest test`
   - `mvn spotless:apply -pl paimon-common`
   - `mvn -pl paimon-common -DfailIfNoTests=false clean install`
   - Manual jshell check against installed jar: opposite-order binary-key maps 
returned `same_entries=true` and `hashes_equal=true`; duplicate logical-key 
adversarial maps returned `false` in both directions.
   


-- 
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]

Reply via email to