HIVE-24436: Fix Avro NULL_DEFAULT_VALUE compatibility issue#1715
Closed
wangyum wants to merge 2 commits intoapache:branch-2.3from
Closed
HIVE-24436: Fix Avro NULL_DEFAULT_VALUE compatibility issue#1715wangyum wants to merge 2 commits intoapache:branch-2.3from
wangyum wants to merge 2 commits intoapache:branch-2.3from
Conversation
wangyum
commented
Nov 27, 2020
| } else { | ||
| fields.add(new Schema.Field(schemaField.name(), schemaField.schema(), schemaField.doc(), | ||
| nullDefault)); | ||
| nullDefault)); |
Member
Author
There was a problem hiding this comment.
Member
Author
sunchao
approved these changes
Nov 28, 2020
viirya
approved these changes
Nov 28, 2020
Comment on lines
+77
to
78
| return new Schema.Field(name, createAvroSchema(typeInfo), comment, JsonProperties.NULL_VALUE); | ||
| } |
Member
There was a problem hiding this comment.
dongjoon-hyun
approved these changes
Nov 28, 2020
Member
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for the fix, @wangyum and all. The patch looks reasonable and safe to me too.
BTW, all of 25 failures are irrelevant?
Existing failures - 25
Member
|
Yes @dongjoon-hyun , these test failures have been there since 2.3.7 release. I do plan to take a look at them later. @wangyum I believe the issue exists in the master branch as well? if so, can we make this PR against the master and backport to branch-2.3/branch-3.1 later once that is merged? |
Member
Author
|
This is for master branch: #1722 |
Member
|
Closing this one since #1722 is merged and backported to branch-2.3 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This pr replace
nullwithJsonProperties.NULL_VALUEto fix compatibility issue:Why are the changes needed?
For compatibility with Avro 1.9.x and Avro 1.10.0.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Build and run Spark test: