[
https://issues.apache.org/jira/browse/BEAM-7624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133485#comment-17133485
]
Beam JIRA Bot commented on BEAM-7624:
-------------------------------------
This issue is assigned but has not received an update in 30 days so it has been
labeled "stale-assigned". If you are still working on the issue, please give an
update and remove the label. If you are no longer working on the issue, please
unassign so someone else may work on it. In 7 days the issue will be
automatically unassigned.
> Missing field support in JsonToRow
> ----------------------------------
>
> Key: BEAM-7624
> URL: https://issues.apache.org/jira/browse/BEAM-7624
> Project: Beam
> Issue Type: Improvement
> Components: extensions-java-json
> Reporter: Anton Kedin
> Assignee: Reuben van Ammers
> Priority: P3
> Labels: stale-assigned
>
> [JsonToRow|https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/JsonToRow.java]
> supports only strict schema matching, so it expects all the fields that are
> declared by the schema to be present in the input JSON data. If the field is
> missing, [it
> crashes|https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/util/RowJsonDeserializer.java#L114-L117].
> In practice it is useful to default to null is such cases. We should make it
> configurable in Beam Java SDK at least, and probably in Beam SQL (in Pubsub
> Json TableProvider) as well.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)