Skip to content

Conversation

@steven-aerts
Copy link
Contributor

With the introduction of the AbstractArray in avro 1.12, it was not possible anymore to compare arrays which contained objects which contained a Map, as the fact that we compared for equality was not propagated anymore.

This commit re-introduces this propagation.

Verifying this change

This change added an unit test

Documentation

  • Does this pull request introduce a new feature? no

With the introduction of the `AbstractArray` in avro 1.12, it was not
possible anymore to compare arrays which contained objects which
contained a Map, as the fact that we compared for equality was not
propagated anymore.

This commit re-introduces this propagation.
@github-actions github-actions bot added the Java Pull Requests for Java binding label May 16, 2025
@steven-aerts steven-aerts changed the title AVRO-4139 [java] equality check for maps in arrays AVRO-4139 [java] fix equality check for maps in arrays May 16, 2025
@opwvhk opwvhk merged commit a651bb2 into apache:main May 29, 2025
8 checks passed
opwvhk pushed a commit that referenced this pull request Jun 13, 2025
With the introduction of the `AbstractArray` in avro 1.12, it was not
possible anymore to compare arrays which contained objects which
contained a Map, as the fact that we compared for equality was not
propagated anymore.

This commit re-introduces this propagation.

(cherry picked from commit a651bb2)
opwvhk pushed a commit to opwvhk/avro that referenced this pull request Sep 5, 2025
With the introduction of the `AbstractArray` in avro 1.12, it was not
possible anymore to compare arrays which contained objects which
contained a Map, as the fact that we compared for equality was not
propagated anymore.

This commit re-introduces this propagation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants