Skip to content

AVRO-1692: Allow multiple logical types for a Java class.#39

Closed
rdblue wants to merge 2 commits into
apache:trunkfrom
rdblue:AVRO-1692-logical-type-fix
Closed

AVRO-1692: Allow multiple logical types for a Java class.#39
rdblue wants to merge 2 commits into
apache:trunkfrom
rdblue:AVRO-1692-logical-type-fix

Conversation

@rdblue
Copy link
Copy Markdown
Contributor

@rdblue rdblue commented Jul 6, 2015

This changes the class to conversion lookup to store multiple
conversions and choose based on the logical type name. This still
assumes that only one conversion is registered for each logical type.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aren't these two changes breaking backwards compatibility? Or is this only 1.8?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This hasn't been included in a release yet, so it isn't breaking compatibility. I think it was originally an oversight on my part to make them public.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wfm. sorry for not checking for an actual release.

@rdblue rdblue force-pushed the AVRO-1692-logical-type-fix branch from a0ed592 to cbb833b Compare July 11, 2015 22:47
rdblue added 2 commits July 11, 2015 15:48
This changes the class to conversion lookup to store multiple
conversions and choose based on the logical type name. This still
assumes that only one conversion is registered for each logical type.
This adds TestCircularReferences, which demonstrates how to use logical
types to implement circular references and tests using multiple logical
types with the same class.
@rdblue rdblue force-pushed the AVRO-1692-logical-type-fix branch from cbb833b to 70b437e Compare July 11, 2015 22:49
@rdblue
Copy link
Copy Markdown
Contributor Author

rdblue commented Jul 11, 2015

@busbey, I've fixed the things you noted and responded to you question about thread safety. I also added a test that requires this change and demonstrates how to use logical types for circular references (AVRO-695). Please have another look when you get a chance. Thanks!

@rdblue
Copy link
Copy Markdown
Contributor Author

rdblue commented Jul 14, 2015

Merged by Tom.

@rdblue rdblue closed this Jul 14, 2015
SingingBush pushed a commit to SingingBush/avro that referenced this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants