Skip to content

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

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

RustedBones
Copy link
Contributor

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
@ismailbay
Copy link

ismailbay commented May 22, 2025

Hi, any updates on this PR @cutting ?

@opwvhk
Copy link
Contributor

opwvhk commented May 29, 2025

It took me a while to really understand this PR, and why it changes the parsing behaviour (most notably the order or parse results).

I'm also renaming it to match the other reported issue for this.

@opwvhk opwvhk changed the title AVRO-3940: [java] Allow schema redefinition when equal AVRO-4071: [java] Allow schema redefinition when equal May 29, 2025
@opwvhk opwvhk merged commit cea41a4 into apache:main May 29, 2025
8 checks passed
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.

3 participants