[
https://issues.apache.org/jira/browse/BEAM-7542?focusedWorklogId=260317&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-260317
]
ASF GitHub Bot logged work on BEAM-7542:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Jun/19 11:27
Start Date: 14/Jun/19 11:27
Worklog Time Spent: 10m
Work Description: vglocus commented on issue #8858: [BEAM-7542] Fix
faulty cast in BigQueryUtils
URL: https://github.com/apache/beam/pull/8858#issuecomment-502072907
R: @kanterov
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 260317)
Time Spent: 0.5h (was: 20m)
Remaining Estimate: 23.5h (was: 23h 40m)
> java.lang.ClassCastException when writing BYTES to BigQuery
> -----------------------------------------------------------
>
> Key: BEAM-7542
> URL: https://issues.apache.org/jira/browse/BEAM-7542
> Project: Beam
> Issue Type: Bug
> Components: io-java-gcp
> Affects Versions: 2.13.0
> Environment: Running on OS X 10.14.5 (18F132), JRE 1.8.0_152, also in
> GCP DataFlow
> Reporter: Viktor Gerdin
> Assignee: Viktor Gerdin
> Priority: Major
> Fix For: 2.14.0
>
> Original Estimate: 24h
> Time Spent: 0.5h
> Remaining Estimate: 23.5h
>
> When trying to use BigQueryIO.write() with BigQueryUtils.toTableRow() with a
> BYTES field it breaks with
> {noformat}
> java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer at
> org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils.fromBeamField(BigQueryUtils.java:280){noformat}
> BigQueryUtils.fromBeamField() attempts to cast fieldValue to
> java.nio.ByteBuffer but it is a byte[].
> Unit tests are not covering BYTES field type.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)