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

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

                Author: ASF GitHub Bot
            Created on: 10/Apr/20 22:32
            Start Date: 10/Apr/20 22:32
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on pull request #11086: [BEAM-8910] 
Make custom BQ source read from Avro
URL: https://github.com/apache/beam/pull/11086#discussion_r406969613
 
 

 ##########
 File path: sdks/python/apache_beam/io/gcp/bigquery.py
 ##########
 @@ -1570,6 +1584,10 @@ class _ReadFromBigQuery(PTransform):
       bucket where the extracted table should be written as a string or
       a :class:`~apache_beam.options.value_provider.ValueProvider`. If
       :data:`None`, then the temp_location parameter is used.
+    backwards_compatible_data_format (bool): By default, this transform reads
+      data in native Python types that come from Avro-exports of BigQuery. By
+      setting this flag to True, the transform will return JSON-types, like
+      the older BigQuerySource.
 
 Review comment:
   1. Do all BQ types have a native python type?
   2. What are JSON-types? 
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 420574)
    Time Spent: 6.5h  (was: 6h 20m)

> Use AVRO instead of JSON in BigQuery bounded source.
> ----------------------------------------------------
>
>                 Key: BEAM-8910
>                 URL: https://issues.apache.org/jira/browse/BEAM-8910
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Kamil Wasilewski
>            Assignee: Pablo Estrada
>            Priority: Minor
>          Time Spent: 6.5h
>  Remaining Estimate: 0h
>
> The proposed BigQuery bounded source in Python SDK (see PR: 
> [https://github.com/apache/beam/pull/9772)] uses a BigQuery export job to 
> take a snapshot of the table and read from each produced JSON file. A 
> performance improvement can be gain by switching to AVRO instead.



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

Reply via email to