You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/02 06:29:20 UTC
[jira] [Commented] (BEAM-502) Properly handle None/null in json
conversions
[ https://issues.apache.org/jira/browse/BEAM-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403457#comment-15403457 ]
ASF GitHub Bot commented on BEAM-502:
-------------------------------------
GitHub user chamikaramj opened a pull request:
https://github.com/apache/incubator-beam/pull/765
[BEAM-502] Updates JSON to/from Python object conversion to handle null/None values.
Updates Python object to JSON conversion to handle 'None' values.
Updates JSON to Python object conversion to return 'None' for JSON null objects instead of '[]'.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chamikaramj/incubator-beam json_handle_null
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-beam/pull/765.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #765
----
commit 3a4f2234e36791fd64125d67dbedaebbc2a981b1
Author: Chamikara Jayalath <ch...@google.com>
Date: 2016-08-02T06:12:10Z
Updates json to/from Python object conversion to properly handle None values.
----
> Properly handle None/null in json conversions
> ---------------------------------------------
>
> Key: BEAM-502
> URL: https://issues.apache.org/jira/browse/BEAM-502
> Project: Beam
> Issue Type: Bug
> Components: sdk-py
> Reporter: Chamikara Jayalath
> Assignee: Chamikara Jayalath
>
> json_value.py has to be updated to properly handle JSON to/from Python 'None' conversions.
> For example, currently writing a dictionary of the form {'aa': 'value', 'bb':None} using BigQuery sink fails when using DirectPipelineRunner since we do not properly handle 'None' values.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)