[ 
https://issues.apache.org/jira/browse/AIRFLOW-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018708#comment-17018708
 ] 

ASF subversion and git services commented on AIRFLOW-6583:
----------------------------------------------------------

Commit 78870c70c8325ee9ad14f39bbb7db644ad3945bd in airflow's branch 
refs/heads/master from Jithin Sukumar
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=78870c7 ]

[AIRFLOW-6583] (BigQuery) Add query_params to templated_fields (#7198)



> (BigQuery) Add query_params to templated_fields
> -----------------------------------------------
>
>                 Key: AIRFLOW-6583
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6583
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: gcp
>    Affects Versions: 1.10.7
>            Reporter: Jithin Sukumar
>            Assignee: Jithin Sukumar
>            Priority: Minor
>
> To query time-partitioned tables, I am passing \{{query_params}} like this
> yesterday = Variable.get('yesterday', '\{{yesterday_ds}}')
> today = Variable.get('today', '\{{ds}}')
> ...
> query_params=[\{'name': 'yesterday', 'parameterType': {'type': 'STRING'},
>                        'parameterValue': \{'value': yesterday}},
>                       \{'name': 'today', 'parameterType': {'type': 'STRING'},
>                        'parameterValue': \{'value': today}}]
> query_params needs to be a template_field



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

Reply via email to