Skip to content

Conversation

@opwvhk
Copy link
Contributor

@opwvhk opwvhk commented Jun 27, 2025

What is the purpose of the change

Support for the duration logical type was missing the final bit: recognising the logical type name in the switch statement in LogicalTypes (documented as bug AVRO-4159). This fixes that.

Verifying this change

This change updated a test: org.apache.avro.TestLogicalType#durationExtendsFixed12

Documentation

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

@github-actions github-actions bot added the Java Pull Requests for Java binding label Jun 27, 2025
@GFriedrich
Copy link

Awesome - thanks for fixing this @opwvhk.
Would be great if this could make it to the release for 1.12.1, because I saw that @jbonofre is planning for a release soonish.

@opwvhk opwvhk merged commit 0f9d0c5 into apache:main Jun 27, 2025
9 checks passed
@opwvhk opwvhk deleted the AVRO-4159-complete-support-for-duration branch June 27, 2025 21:35
opwvhk added a commit that referenced this pull request Jun 27, 2025
* AVRO-4159: Add duration logical type to switch statement

* AVRO-4159: Improve TimePeriod javadoc

* AVRO-4159: Also test for support by type name

(cherry picked from commit 0f9d0c5)
@opwvhk
Copy link
Contributor Author

opwvhk commented Jun 27, 2025

Cherry-picked to 1.12.1

opwvhk added a commit to opwvhk/avro that referenced this pull request Sep 5, 2025
* AVRO-4159: Add duration logical type to switch statement

* AVRO-4159: Improve TimePeriod javadoc

* AVRO-4159: Also test for support by type name
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