Ryan Berti created BEAM-9052:
--------------------------------

             Summary: BigQueryUtils toBeamRow to support the bytes type
                 Key: BEAM-9052
                 URL: https://issues.apache.org/jira/browse/BEAM-9052
             Project: Beam
          Issue Type: Improvement
          Components: io-java-gcp
    Affects Versions: 2.16.0
            Reporter: Ryan Berti
            Assignee: Ryan Berti


The BigQueryUtils toBeamRow implementation doesn't currently support the 
Avro/Beam bytes type via the convertAvroFormat method: 
[https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java#L558].
 A simple implementation which casts the Avro value to a ByteBuffer instance 
and returns the underlying byte array should suffice.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to