Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abris #240 use spark avro encoder writer #241

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

cerveada
Copy link
Collaborator

@cerveada cerveada commented Nov 3, 2021

  • use spark avro writer and encoder
  • remove custom encoder and writer and other unused code

fixes #240

@cerveada
Copy link
Collaborator Author

cerveada commented Nov 3, 2021

@kevinwallimann Binary Compatibility is failing as expected, since we are preparing new major version I disabled it for now.

}

private def wrapSchemaIfNeeded(schema: Schema) = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this not needed anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure what was causing the need for it in the first place. May suspicion is that the old code was sometime generating a bare schema.

Bare schema is just a name of the type without any record. Such a schema is not possible to register in the schema registry. I think the new schema generation code should never return it, and the only place when it could occur is when someone provides it directly. To keep Abris consistent with spark avro I choose to remove this.

- use spark avro writer and encoder
- remove custom encoder and writer and other unused code
@cerveada cerveada force-pushed the feature/abris-240-switch-to-spark-avro-encoder branch from d846d0f to d176ed4 Compare November 15, 2021 09:35
@cerveada cerveada merged commit 5e20555 into master Nov 16, 2021
@cerveada cerveada deleted the feature/abris-240-switch-to-spark-avro-encoder branch November 16, 2021 09:39
gintautassulskus-elsevier pushed a commit to gintautassulskus-elsevier/ABRiS that referenced this pull request Feb 4, 2022
- use spark avro writer and encoder
- remove custom encoder and writer and other unused code
ScaddingJ pushed a commit to ScaddingJ/ABRiS that referenced this pull request Mar 8, 2022
- use spark avro writer and encoder
- remove custom encoder and writer and other unused code
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.

Use the same converters as spark avro does and remove old unused ones
2 participants