beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Halperin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1714) Null Pointer Exception when outputting a TableRow with a Null value for a key
Date Fri, 07 Apr 2017 15:31:41 GMT

    [ https://issues.apache.org/jira/browse/BEAM-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960968#comment-15960968
] 

Daniel Halperin commented on BEAM-1714:
---------------------------------------

[~james-woods] Can you describe a little more concretely how you're doing this now?

Is it {{TextIO.Read}} into {{PCollection<String>}} containing serialized JSON into {{ParDo(DoFn)}}
that invokes JSON parser manually to produce {{TableRow}}? Or something else?

> Null Pointer Exception when outputting a TableRow with a Null value for a key
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-1714
>                 URL: https://issues.apache.org/jira/browse/BEAM-1714
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-gcp
>    Affects Versions: 0.5.0
>            Reporter: Tobias Feldhaus
>            Assignee: Mark Shalda
>              Labels: newbie, starter
>             Fix For: Not applicable
>
>
> When outputting a TableRow that has a Null value for a key, a Null Pointer Exception
is thrown. In the Dataflow SDK (1.9) this case is handled by outputting NULL for that field.
> I would expect the same behavior from the Beam SDK - since otherwise there is always
a lot of Null checking necessary in the user code. (Especially when there are nested fields.)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message