[
https://issues.apache.org/jira/browse/AIRFLOW-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018707#comment-17018707
]
ASF GitHub Bot commented on AIRFLOW-6583:
-----------------------------------------
potiuk commented on pull request #7198: [AIRFLOW-6583] (BigQuery) Add
query_params to templated_fields
URL: https://github.com/apache/airflow/pull/7198
----------------------------------------------------------------
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]
> (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)