You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/12/31 12:17:00 UTC

[jira] [Commented] (AIRFLOW-3514) Documentation for run_query slightly off for bigquery_hook

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

jack commented on AIRFLOW-3514:
-------------------------------

It is a dict.

You use it like this:
{code:java}
query_params={'param': Parameter}{code}

> Documentation for run_query slightly off for bigquery_hook
> ----------------------------------------------------------
>
>                 Key: AIRFLOW-3514
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3514
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: 1.10.0
>            Reporter: joyce chan
>            Priority: Trivial
>
> The python docs for the run_query method of BigQueryHook says
>  
> {code:java}
> :param query_params a dictionary containing query parameter types and values, passed to BigQuery   
> :type query_params: dict{code}
>  
> but it should be an array of dictionary, according to the documentation
> https://cloud.google.com/bigquery/docs/parameterized-queries#bigquery-query-params-arrays-api



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)