You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 12:53:49 UTC

[GitHub] [beam] damccorm opened a new issue, #19716: Missing field support in JsonToRow

damccorm opened a new issue, #19716:
URL: https://github.com/apache/beam/issues/19716

   [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.
   
   Imported from Jira [BEAM-7624](https://issues.apache.org/jira/browse/BEAM-7624). Original Jira may contain additional context.
   Reported by: kedin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org