Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
2.13.0
-
None
-
Running on OS X 10.14.5 (18F132), JRE 1.8.0_152, also in GCP DataFlow
Description
When trying to use BigQueryIO.write() with BigQueryUtils.toTableRow() with a BYTES field it breaks with
java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer at org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils.fromBeamField(BigQueryUtils.java:280)
BigQueryUtils.fromBeamField() attempts to cast fieldValue to java.nio.ByteBuffer but it is a byte[].
Unit tests are not covering BYTES field type.
Attachments
Issue Links
- links to