forked from apache/avro
-
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.
AVRO-2771: Refactor custom codable check (apache#1720)
* AVRO-2771: Refactor custom codable check Moved the isError check for the "custom codable" check to fix a backwards compatibility issue between versions 1.8.x & 1.9.x.
- Loading branch information
Showing
4 changed files
with
53 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
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
22 changes: 22 additions & 0 deletions
22
lang/java/compiler/src/test/resources/regression_error_field_in_record.avsc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "RecordWithErrorField", | ||
"doc" : "With custom coders in Avro 1.9, previously successful records with error fields now fail to compile.", | ||
"namespace" : "org.apache.avro.specific.test", | ||
"fields" : [ { | ||
"name" : "s", | ||
"type" : [ "null", "string" ], | ||
"default" : null | ||
}, { | ||
"name": "e", | ||
"type": [ "null", { | ||
"type" : "error", | ||
"name" : "TestError", | ||
"fields" : [ { | ||
"name" : "message", | ||
"type" : "string" | ||
} ] | ||
} ], | ||
"default": null | ||
} ] | ||
} |