You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kamil Bregula (JIRA)" <ji...@apache.org> on 2019/08/12 14:46:00 UTC

[jira] [Updated] (AIRFLOW-4230) bigquery schema update options should be a list

     [ https://issues.apache.org/jira/browse/AIRFLOW-4230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kamil Bregula updated AIRFLOW-4230:
-----------------------------------
    Affects Version/s: 1.10.4
        Fix Version/s: 1.10.5

> bigquery schema update options should be a list
> -----------------------------------------------
>
>                 Key: AIRFLOW-4230
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4230
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: contrib, gcp, hooks, operators
>    Affects Versions: 1.10.4
>            Reporter: Ben Marengo
>            Assignee: Tomasz Urbaszek
>            Priority: Minor
>             Fix For: 1.10.5
>
>
> in AIRFLOW-1829 schema update options were implemented as a tuple, which doesn't make any sense
> - this is inconsistent with the [bq api|https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs], which expects a list
> - and doesnt allow the user of operators to deserialise config json (which doesnt support tuples) to a dict and use them as the args for the bq operator
> eg. i would like to be able to do the following without having to cast schema_update_options as a tuple:
> {code}
> config_dict = json.loads(some_config)
> BigQueryOperator(**config_dict)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)