Skip to content

Issue 8882: GenericJsonReader converts the null value to string "null" - #8883

Merged
sijie merged 1 commit into
apache:masterfrom
eolivelli:fix/json-null-values
Dec 10, 2020
Merged

sijie merged 1 commit into
apache:masterfrom
eolivelli:fix/json-null-values

Conversation

@eolivelli

@eolivelli eolivelli commented Dec 9, 2020 •

Copy link
Copy Markdown
Contributor

Describe the bug
It looks like GenericJsonReader is not handling correctly null values

Expected behavior
The null value is not converted to a string, but it is still a null value

Changes

  • Handle correctly null values
  • add test case

Additional context
The problem affects Pulsar Functions/Pulsar IO

Fixes #8882

@eolivelli

Copy link
Copy Markdown
Contributor Author

This is a small fix, but I think it is well suited for cherrypick to 2.6.3 and 2.7.1
@codelipenghui

@eolivelli
eolivelli force-pushed the fix/json-null-values branch from 3f686aa to fb3933a Compare December 9, 2020 16:55
@eolivelli

Copy link
Copy Markdown
Contributor Author

@wolfstudy can you please evaluate to add this to 2.6.3 release ?

@sijie sijie added this to the 2.8.0 milestone Dec 9, 2020
@sijie sijie added release/2.6.3 release/2.7.1 type/bug The PR fixed a bug or issue reported a bug labels Dec 9, 2020
@sijie
sijie merged commit d9f3710 into apache:master Dec 10, 2020
codelipenghui pushed a commit that referenced this pull request Dec 21, 2020
#8883)

Describe the bug
It looks like GenericJsonReader is not handling correctly null values

Expected behavior
The null value is not converted to a string, but it is still a null value

Changes
- Handle correctly null values
- add test case

Additional context
The problem affects Pulsar Functions/Pulsar IO

Fixes #8882 

(cherry picked from commit d9f3710)
codelipenghui pushed a commit that referenced this pull request Dec 21, 2020
#8883)

Describe the bug
It looks like GenericJsonReader is not handling correctly null values

Expected behavior
The null value is not converted to a string, but it is still a null value

Changes
- Handle correctly null values
- add test case

Additional context
The problem affects Pulsar Functions/Pulsar IO

Fixes #8882 

(cherry picked from commit d9f3710)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.6.3 release/2.7.1 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GenericJsonReader converts the null value to string "null"

4 participants