[ 
https://issues.apache.org/jira/browse/BEAM-11047?focusedWorklogId=498597&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-498597
 ]

ASF GitHub Bot logged work on BEAM-11047:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Oct/20 14:53
            Start Date: 09/Oct/20 14:53
    Worklog Time Spent: 10m 
      Work Description: jobegrabber commented on pull request #13058:
URL: https://github.com/apache/beam/pull/13058#issuecomment-706227984


   R: @kmjung 


----------------------------------------------------------------
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: 498597)
    Time Spent: 20m  (was: 10m)

> BigQuery IO: Avro INTEGER values get converted to String objects
> ----------------------------------------------------------------
>
>                 Key: BEAM-11047
>                 URL: https://issues.apache.org/jira/browse/BEAM-11047
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>    Affects Versions: 2.22.0, 2.23.0, 2.24.0
>            Reporter: Jonas Grabber
>            Priority: P2
>              Labels: bigquery, java
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> For some reason, `convertRequiredField` used in 
> `BigQueryAvroUtils.convertGenericRecordToTableRow` casts values with the Avro 
> `INTEGER` type to `Long`, but then converts them to `String` objects via 
> `toString`.
> I'm quite unsure where `convertGenericRecordToTableRow` is used elsewhere, 
> but we use it to utilize BigQuery's Storage API reads.
> I'm fairly certain this is not expected behaviour because other types are 
> converted properly and due to the cast to `Long` it's ensured that any values 
> will fit into `Long` objects anyways.



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

Reply via email to