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

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

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

 ##########
 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:
   To actually evaluate the value providers, the pipeline needs to be executed 
right? Cause these are realistically only 'known' at runtime. The tests in 
`TestReadFromBigQuery` just validate the input data to the initialisation.
   
   We can of course just validate that query is of type `ValueProvider` after 
initialising a pipeline, but I figured we want to check that the value provider 
query is actually evaluated to a string type on pipeline execution.
   
   Am I perhaps missing something?
 
----------------------------------------------------------------
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: 400021)
    Time Spent: 1h 50m  (was: 1h 40m)

> 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: 1h 50m
>  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