forked from airbytehq/airbyte
-
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.
Refactor and clean up json avro schema converter (airbytehq#9363)
* Default isRootNode to true and rename parameters * Default appendAirbyteFields to true * Rename methods and add javadoc * Simplify namespace generation and delete obtainPaths method * Simplify test case * Add namespace for objects in array * Merge object definitions in type union (need improvement) * Fix merging of record fields * Switch test case to minimize changes * Mark assembler and builder as final variables * Adjust test case * Remove unused code * Keep field doc * Update comment * Merge record schemas recursively * Add nested test case * Add docuementation * Add test case for issue airbytehq#5564 * Format code
- Loading branch information
Showing
7 changed files
with
719 additions
and
173 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
270 changes: 205 additions & 65 deletions
270
.../src/main/java/io/airbyte/integrations/destination/s3/avro/JsonToAvroSchemaConverter.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.