Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3940: [java] Allow schema redefinition when equal #3304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RustedBones
Copy link

What is the purpose of the change

ParseContext.put accept known schemas when strictly identical. Call to this method was made before schema was fully parsed avoiding exact schema redefinition in files.

Call ParseContext.put when schema is fully parsed.

This has an inpact on the schemas ordering returned by the parser.

Verifying this change

Tests were adapted by adding a redefinition of the MyResponse schema in the ApplicationEvent record

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not documented

ParseContext.put accept known schemas when strictly identical.
Call to this method was made before schema was fully parsed avoiding
exact schema redefinition in files.

Call ParseContext.put when schema is fully parsed.

This has an inpact on the schemas ordering returned by the parser.
@github-actions github-actions bot added the Java Pull Requests for Java binding label Jan 28, 2025
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.

1 participant