Skip to content

Conversation

@opwvhk
Copy link
Contributor

@opwvhk opwvhk commented Apr 18, 2025

What is the purpose of the change

Fix AVRO-4123: after parsing, ParseResult#parsedNamedSchemas() is always empty.

Verifying this change

This change altered the test case TestSchemaParser#testParseByCustomParser to add the omitted check. This is a reasonable place to add this, as other parsers than the core JSON parser are the most likely candidate to use this functionality.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

opwvhk added 5 commits April 15, 2025 12:06
Recent JDKs alter the requirements for using a security manager. This
affects Hadoop code. Also, misplaced javadoc affects tests.

When AVRO-4126 is merged, the change to TestSpecificCompiler.java can be
reverted.
@github-actions github-actions bot added Java Pull Requests for Java binding build labels Apr 18, 2025
@opwvhk
Copy link
Contributor Author

opwvhk commented Apr 18, 2025

The changes to TestSpecificCompiler and the 3 poms are to make the tests work on recent JVMs. The other 3 changes are the actual change:

  • ParseContext
  • TestSchemaParser
  • IdlReader

Copy link
Contributor

@RyanSkraba RyanSkraba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@RyanSkraba RyanSkraba changed the title Avro 4123 parsed named schemas always empty AVRO-4123: Parsed named schemas always empty Apr 18, 2025
@RyanSkraba RyanSkraba merged commit 7ac4800 into apache:main Apr 18, 2025
8 checks passed
RyanSkraba pushed a commit that referenced this pull request Apr 18, 2025
* AVRO-4123: fix missing parsed schemas

* AVRO-4123: Remove unnecessary private method

* AVRO-4123: Do not use List.getFirst() yet

* AVRO-4123: Fix tests for recent JDKs

Recent JDKs alter the requirements for using a security manager. This
affects Hadoop code. Also, misplaced javadoc affects tests.

When AVRO-4126 is merged, the change to TestSpecificCompiler.java can be
reverted.
@RyanSkraba
Copy link
Contributor

RyanSkraba commented Apr 18, 2025

Cherry-picked to branch-1.12.

@opwvhk opwvhk deleted the AVRO-4123-parsedNamedSchemas-always-empty branch April 29, 2025 13:58
opwvhk added a commit to opwvhk/avro that referenced this pull request Sep 5, 2025
* AVRO-4123: fix missing parsed schemas

* AVRO-4123: Remove unnecessary private method

* AVRO-4123: Do not use List.getFirst() yet

* AVRO-4123: Fix tests for recent JDKs

Recent JDKs alter the requirements for using a security manager. This
affects Hadoop code. Also, misplaced javadoc affects tests.

When AVRO-4126 is merged, the change to TestSpecificCompiler.java can be
reverted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants