Charith Ellawala created BEAM-7506:
--------------------------------------

             Summary: Fake BigQuery JobService does not correctly handle nested 
fields
                 Key: BEAM-7506
                 URL: https://issues.apache.org/jira/browse/BEAM-7506
             Project: Beam
          Issue Type: Bug
          Components: io-java-gcp
            Reporter: Charith Ellawala


{{writeRowsHelper}} method in the BigQuery {{FakeJobService}} class should take 
the data type of the field into consideration. For example, if a {{TableRow}} 
contains a {{RECORD}} field, it should be converted to an Avro 
{{GenericRecord}} first. Failing to do this results in a misleading null 
pointer exception thrown from the {{org.apache.beam.sdk.io.FileSystems.delete}} 
method even though the actual root cause for the failure is an Avro exception 
caused by the field type mismatch.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to