You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Alireza Samadianzakaria (JIRA)" <ji...@apache.org> on 2019/07/11 23:29:00 UTC

[jira] [Created] (BEAM-7729) Converting Nullable null values in BigQuery

Alireza Samadianzakaria created BEAM-7729:
---------------------------------------------

             Summary: Converting Nullable null values in BigQuery 
                 Key: BEAM-7729
                 URL: https://issues.apache.org/jira/browse/BEAM-7729
             Project: Beam
          Issue Type: Bug
          Components: io-java-gcp
            Reporter: Alireza Samadianzakaria
            Assignee: Alireza Samadianzakaria


In org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils#convertAvroFormat we do not check if the value is null and we pass it to the other methods and if that value is null, we will get a null pointer exception. The fix will be simple, just check if the value is null and if the field is nullable, then return null in that case.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)