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

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

                Author: ASF GitHub Bot
            Created on: 14/Dec/20 23:30
            Start Date: 14/Dec/20 23:30
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on pull request #13544:
URL: https://github.com/apache/beam/pull/13544#issuecomment-744801324


   LGTM
   Feel free to merge if you get a green run and you're sure the failure is 
unrelated
   


----------------------------------------------------------------
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: 524177)
    Time Spent: 1h  (was: 50m)

> ReadFromBigQuery fails when the table has repeated records
> ----------------------------------------------------------
>
>                 Key: BEAM-11230
>                 URL: https://issues.apache.org/jira/browse/BEAM-11230
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>    Affects Versions: 2.25.0
>            Reporter: Alvaro
>            Assignee: Kamil Wasilewski
>            Priority: P2
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> This is pretty much similar to the issue mentioned here: 
> https://issues.apache.org/jira/browse/BEAM-10524
> I've upgraded the python sdk version from 2.24 to 2.25 and the 
> ReadFromBigQuery start failing with this stacktrace:
>  
> {code:java}
> ....
> "/usr/local/lib/python3.7/site-packages/dataflow_worker/batchworker.py", line 
> 649, in do_work
>     work_executor.execute()
>   File "/usr/local/lib/python3.7/site-packages/dataflow_worker/executor.py", 
> line 179, in execute
>     op.start()
>   File "dataflow_worker/native_operations.py", line 38, in 
> dataflow_worker.native_operations.NativeReadOperation.start
>   File "dataflow_worker/native_operations.py", line 39, in 
> dataflow_worker.native_operations.NativeReadOperation.start
>   File "dataflow_worker/native_operations.py", line 44, in 
> dataflow_worker.native_operations.NativeReadOperation.start
>   File "dataflow_worker/native_operations.py", line 48, in 
> dataflow_worker.native_operations.NativeReadOperation.start
>   File 
> "/usr/local/lib/python3.7/site-packages/apache_beam/io/concat_source.py", 
> line 89, in read
>     range_tracker.sub_range_tracker(source_ix)):
>   File "/usr/local/lib/python3.7/site-packages/apache_beam/io/textio.py", 
> line 210, in read_records
>     yield self._coder.decode(record)
>   File 
> "/usr/local/lib/python3.7/site-packages/apache_beam/io/gcp/bigquery.py", line 
> 633, in decode
>     return self._decode_with_schema(value, self.fields)
>   File 
> "/usr/local/lib/python3.7/site-packages/apache_beam/io/gcp/bigquery.py", line 
> 656, in _decode_with_schema
>     value[field.name] = converter(value[field.name])
> TypeError: int() argument must be a string, a bytes-like object or a number, 
> not 'list'{code}
> According to the aforementioned issue, this should be fixed on the 2.25 but 
> it is actually the opposite in my case. 
> Code: 
> https://github.com/apache/beam/blob/release-2.25.0/sdks/python/apache_beam/io/gcp/bigquery.py#L656
>  



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

Reply via email to