Skip to content

Conversation

@steven-aerts
Copy link
Contributor

With the introduction of the new SchemaParser in 1.12 the variety of errors which can be thrown when an unresolved type is found increased significantly.
In the past unresolved type errors were tracked with a brittle regexp. In the newly proposed logic we propose to retry failed parse steps on any AvroRuntimeException. So this works for all past and future avro library versions.

@frevib this is a small proposal for an update on #3305 so the gradle plugin support 1.12 and others.
Let me know what you think, and if I can help you improving it somehow.

Verifying this change

This change is already covered by existing tests, such as (please describe tests).

(or)

This change can be verified as follows:

  • run SchemaResolverSpec.groovy
  • And manually verified on internal corpus.

Documentation

  • Does this pull request introduce a new feature? (no)

@github-actions github-actions bot added the Java Pull Requests for Java binding label May 20, 2025
With the introduction of the new SchemaParser in 1.12 the variety of
errors which can be thrown when an unresolved type is found increased
significantly.
In the past unresolved type errors were tracked with a brittle regexp.
In the newly proposed logic we propose to retry failed parse steps on
any AvroRuntimeException.  So this works for all past and future avro
library versions.
@steven-aerts steven-aerts force-pushed the avro-3731-gradle-avro-plugin branch from 7fd07dd to 0e2f6a8 Compare May 21, 2025 04:43
@RyanSkraba RyanSkraba self-requested a review June 4, 2025 16:54
@frevib
Copy link

frevib commented Jun 26, 2025

Thanks, I will get this reviewed asap.

@frevib
Copy link

frevib commented Jun 29, 2025

Can this be approved @RyanSkraba ?

If it takes too long, I will just copy past this file in #3305

@steven-aerts
Copy link
Contributor Author

For me perfectly fine to take in my changes in #3305 whatever you like @frevib

@martin-g martin-g merged commit 851e341 into apache:avro-3731-gradle-avro-plugin Jun 29, 2025
1 check passed
@martin-g
Copy link
Member

Since this is in the Gradle plugin area I see no reason to wait for more reviews.

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