Repository navigation
[refactor][schema] replace linkedin/goavro/v2 with hamba/avro/v2 - #1230
Merged
Merged
Conversation
adrianiacobghiula
force-pushed
the
master
branch
from
June 26, 2024 05:17
8c3e16a to
a65fddd
Compare
Contributor
Author
|
Starting from #1191 |
nodece
reviewed
Jun 26, 2024
RobertIndie
reviewed
Jun 27, 2024
adrianiacobghiula
force-pushed
the
master
branch
from
June 27, 2024 09:50
3818d0d to
e4aecab
Compare
adrianiacobghiula
force-pushed
the
master
branch
from
June 27, 2024 09:54
e4aecab to
840abe2
Compare
Member
|
Rethinking recent changes, due to you changing some method parameters, it appears that there is a breaking change, which resulted in me making an incorrect review. In the old design, the codec was exported in the schema, and which was created by NewSchemaDefinition(should be internal). Usually, the users use the following methods to create the avro schema: NewAvroSchema()
NewAvroSchemaWithValidation()So that we can remove NewSchemaDefinition and AvroCodec. The next version is the minor version, we can make this changes. BTW, newXXSchema method returns an implement, not an interface, we also need to improve that in the future. Is this a fair reason? |
Contributor
Author
|
@nodece fair & done |
nodece
approved these changes
Jun 29, 2024
RobertIndie
reviewed
Jul 2, 2024
RobertIndie
approved these changes
Jul 3, 2024
1 task done
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Allow direct deserialization in go struct, allow generation of go struct using avro schema <- support offered by hamba/avro
Improved support in hamba avro project, while linkedin has limited support since 2022
Modifications
Replaced linkedin/goavro/v2 with hamba/avro/v2
Verifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation