forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-12501] Use SpecificRecord.getSchema in AvroFactory
Before, we were using SpecificData.getSchema(type) which was not working for types that were generated using Avrohugger (for Scala) because the SCHEMA was generated in the companion object. Now we use a method that must be available on all SpecificRecord(s). We still use the old method as a fallback if we cannot instantiate or call getSchema() on the instance.
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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