You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2020/01/03 22:53:00 UTC
[jira] [Updated] (BEAM-9052) BigQueryUtils toBeamRow to support the
bytes type
[ https://issues.apache.org/jira/browse/BEAM-9052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rui Wang updated BEAM-9052:
---------------------------
Status: Open (was: Triage Needed)
> 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
> Priority: Minor
>
> 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)