Skip to content

[common] Fix map equality for binary keys#8536

Open
thswlsqls wants to merge 1 commit into
apache:masterfrom
thswlsqls:fix/common-map-binary-key-equality
Open

[common] Fix map equality for binary keys#8536
thswlsqls wants to merge 1 commit into
apache:masterfrom
thswlsqls:fix/common-map-binary-key-equality

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Purpose

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.

Compare internal map keys through the typed equality path before comparing values. This avoids Java array reference equality for binary keys.

Generated-by: Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Internal map equality uses Java key lookup for binary keys

1 participant