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

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

                Author: ASF GitHub Bot
            Created on: 10/Mar/20 11:29
            Start Date: 10/Mar/20 11:29
    Worklog Time Spent: 10m 
      Work Description: kamilwu commented on pull request #11040: [BEAM-9305] 
Allow value provider query strings in _CustomBigQuerySource
URL: https://github.com/apache/beam/pull/11040#discussion_r390250330
 
 

 ##########
 File path: sdks/python/apache_beam/io/gcp/bigquery_read_it_test.py
 ##########
 @@ -156,12 +157,19 @@ def test_native_source(self):
 
   @attr('IT')
   def test_iobase_source(self):
+    query = StaticValueProvider(str, self.query)
     with beam.Pipeline(argv=self.args) as p:
       result = (
           p | 'read' >> beam.io._ReadFromBigQuery(
               query=self.query, use_standard_sql=True, project=self.project))
       assert_that(result, equal_to(self.TABLE_DATA))
 
+    with beam.Pipeline(argv=self.args) as p:
 
 Review comment:
   @EDjur Thanks for explanation. That's right, if we want to check that query 
is successfully evaluated to a string, we have to execute the pipeline.
   @pabloem I think this is good idea. Let's do it this way.
   
 
----------------------------------------------------------------
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: 400682)
    Time Spent: 2h 10m  (was: 2h)

> 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
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to