You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GOBBLIN-1726] Avro 1.9 upgrade of Gobblin OSS (apache#3581)
* [Branch avro_1_9] Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs (apache#3349)
* Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs.
* Avro 1.9 upgrade compatible change - Replaced guava library import from avro shaded with direct guava libraries
* Applied Gobblin codestyle formatting.
Co-authored-by: Lei <[email protected]>
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency. (apache#3368)
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency.
* Changes for upgrade Avro 1.9.2 and leverges hive with avro changes from https://linkedin.jfrog.io/artifactory/gobblin-hive (apache#3458)
* Use helper-all v0.2.74 to solve issues around default values. (apache#3469)
The latest version of helper-all fixes the issues seen before w.r.t.
default values, so we can now revert the code and the *.avsc files back
to how they used to be, with two minor exceptions:
1. Check Schema equality using their .toString() representations. Doing
it the old way works for two out of the three instances, but one of
them fails, for reasons I haven't figured out yet.
2. Add a `"default":null` piece to recursive_schema_1_converted.avsc.
This is harmless, and is caused by the fact that the compatibility
helper always adds it if it's a valid default for the schema. See
the comments for FieldBuilder19.setDefault():
https://github.com/linkedin/avro-util/blob/b9e89c55980ea8e5fd3c8d8da362d7195dd2a99c/helper/impls/helper-impl-19/src/main/java/com/linkedin/avroutil1/compatibility/avro19/FieldBuilder19.java#L69
To verify that the files are otherwise the same as before:
```
$ for file in gobblin-core-base/src/test/resources/converter/*.avsc; do
> git show 928e018:$file > /tmp/before
> diff <(jq . </tmp/before) <(jq . <$file)
> done
```
* [Branch avro_1_9] Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs (apache#3349)
* Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs.
* Avro 1.9 upgrade compatible change - Replaced guava library import from avro shaded with direct guava libraries
* Applied Gobblin codestyle formatting.
Co-authored-by: Lei <[email protected]>
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency. (apache#3368)
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency.
* Changes for upgrade Avro 1.9.2 and leverges hive with avro changes from https://linkedin.jfrog.io/artifactory/gobblin-hive (apache#3458)
* Use helper-all v0.2.74 to solve issues around default values. (apache#3469)
The latest version of helper-all fixes the issues seen before w.r.t.
default values, so we can now revert the code and the *.avsc files back
to how they used to be, with two minor exceptions:
1. Check Schema equality using their .toString() representations. Doing
it the old way works for two out of the three instances, but one of
them fails, for reasons I haven't figured out yet.
2. Add a `"default":null` piece to recursive_schema_1_converted.avsc.
This is harmless, and is caused by the fact that the compatibility
helper always adds it if it's a valid default for the schema. See
the comments for FieldBuilder19.setDefault():
https://github.com/linkedin/avro-util/blob/b9e89c55980ea8e5fd3c8d8da362d7195dd2a99c/helper/impls/helper-impl-19/src/main/java/com/linkedin/avroutil1/compatibility/avro19/FieldBuilder19.java#L69
To verify that the files are otherwise the same as before:
```
$ for file in gobblin-core-base/src/test/resources/converter/*.avsc; do
> git show 928e018:$file > /tmp/before
> diff <(jq . </tmp/before) <(jq . <$file)
> done
```
* [Branch avro_1_9] Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs (apache#3349)
* Avro 1.9 upgrade compatible change - replaced deprecated public APIs with the compatible APIs.
* Avro 1.9 upgrade compatible change - Replaced guava library import from avro shaded with direct guava libraries
* Applied Gobblin codestyle formatting.
Co-authored-by: Lei <[email protected]>
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency. (apache#3368)
* Avro 1.9 upgrade compatible change - upgraded jackson mapper to 2.x and kept jackson mapper 1.x for modules with hive, helix library dependency.
* Changes for upgrade Avro 1.9.2 and leverges hive with avro changes from https://linkedin.jfrog.io/artifactory/gobblin-hive (apache#3458)
* Use helper-all v0.2.74 to solve issues around default values. (apache#3469)
The latest version of helper-all fixes the issues seen before w.r.t.
default values, so we can now revert the code and the *.avsc files back
to how they used to be, with two minor exceptions:
1. Check Schema equality using their .toString() representations. Doing
it the old way works for two out of the three instances, but one of
them fails, for reasons I haven't figured out yet.
2. Add a `"default":null` piece to recursive_schema_1_converted.avsc.
This is harmless, and is caused by the fact that the compatibility
helper always adds it if it's a valid default for the schema. See
the comments for FieldBuilder19.setDefault():
https://github.com/linkedin/avro-util/blob/b9e89c55980ea8e5fd3c8d8da362d7195dd2a99c/helper/impls/helper-impl-19/src/main/java/com/linkedin/avroutil1/compatibility/avro19/FieldBuilder19.java#L69
To verify that the files are otherwise the same as before:
```
$ for file in gobblin-core-base/src/test/resources/converter/*.avsc; do
> git show 928e018:$file > /tmp/before
> diff <(jq . </tmp/before) <(jq . <$file)
> done
```
* Merging apache/gobblin master with avro_1_9
* Use helper-all v0.2.74 to solve issues around default values. (apache#3469)
The latest version of helper-all fixes the issues seen before w.r.t.
default values, so we can now revert the code and the *.avsc files back
to how they used to be, with two minor exceptions:
1. Check Schema equality using their .toString() representations. Doing
it the old way works for two out of the three instances, but one of
them fails, for reasons I haven't figured out yet.
2. Add a `"default":null` piece to recursive_schema_1_converted.avsc.
This is harmless, and is caused by the fact that the compatibility
helper always adds it if it's a valid default for the schema. See
the comments for FieldBuilder19.setDefault():
https://github.com/linkedin/avro-util/blob/b9e89c55980ea8e5fd3c8d8da362d7195dd2a99c/helper/impls/helper-impl-19/src/main/java/com/linkedin/avroutil1/compatibility/avro19/FieldBuilder19.java#L69
To verify that the files are otherwise the same as before:
```
$ for file in gobblin-core-base/src/test/resources/converter/*.avsc; do
> git show 928e018:$file > /tmp/before
> diff <(jq . </tmp/before) <(jq . <$file)
> done
```
* Added deprecated json method using AvroCompatibilityHelper
* Removed unused import and replaced Integer.valueOf with Integer.parseInt
* Exclude com.linkedin.hive dependency from gradle build files similar to org.apache.hive
* Repalce direct avro field creation with AvroCompatibilityHelper.createSchemaField
* Removed extra dependency. Addressed review comment - removed jcenter() repository
* Upgrade AvroCompatHelper version
* Removed the code that are actually moved to AvroHiveTypeUtils.java in the master branch
* Addresssed review comments: replaced getObjectProps/getObjectProp with AvroCompatibilityHelper methods
* Fix for test failure
Co-authored-by: Lei <[email protected]>
Co-authored-by: Sreeram Ramachandran <[email protected]>
Copy file name to clipboardexpand all lines: gobblin-compaction/src/main/java/org/apache/gobblin/compaction/mapreduce/avro/FieldAttributeBasedDeltaFieldsProvider.java
Copy file name to clipboardexpand all lines: gobblin-compaction/src/main/java/org/apache/gobblin/compaction/mapreduce/avro/MRCompactorAvroKeyDedupJobRunner.java
Copy file name to clipboardexpand all lines: gobblin-compaction/src/test/java/org/apache/gobblin/compaction/mapreduce/avro/FieldAttributeBasedDeltaFieldsProviderTest.java
Copy file name to clipboardexpand all lines: gobblin-core-base/src/main/java/org/apache/gobblin/converter/filter/GobblinTrackingEventFlattenFilterConverter.java
Copy file name to clipboardexpand all lines: gobblin-core-base/src/test/java/org/apache/gobblin/converter/filter/GobblinTrackingEventFlattenFilterConverterTest.java
+6-4
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,13 @@ public void testSchemaConversion()
0 commit comments