[
https://issues.apache.org/jira/browse/BEAM-9305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17046818#comment-17046818
]
Pablo Estrada commented on BEAM-9305:
-------------------------------------
Hi [~eliasdjur] - the existing `BigQuerySource` cannot support value providers,
but we have a new experimental source (`_ReadFromBigQuery` is the PTransform,
and `_CustomBigQuerySource` is the source implementation).
You should be able to add value provider support there by wrapping all the
inputs to `_ReadFromBigQuery` with value providers, and handling them in
`_CustomBigQuerySource`. How does that sound?
See:
Inputs to CustomBQSource:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/bigquery.py#L600-L636
Handling and execution of the query:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/bigquery.py#L658-L664
Inputs to ReadFromBigQuery:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/bigquery.py#L1553-L1615
cc: [~kamilwu]
> Support ValueProvider for BigQuerySource query string
> -----------------------------------------------------
>
> Key: BEAM-9305
> URL: https://issues.apache.org/jira/browse/BEAM-9305
> Project: Beam
> Issue Type: New Feature
> Components: io-py-gcp
> Reporter: Elias Djurfeldt
> Assignee: Elias Djurfeldt
> Priority: Minor
>
> Users should be able to use ValueProviders for the query string in
> BigQuerySource.
> Ref:
> [https://stackoverflow.com/questions/60146887/expected-eta-to-avail-pipeline-i-o-and-runtime-parameters-in-apache-beam-gcp-dat/60170614?noredirect=1#comment106464448_60170614]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)