[
https://issues.apache.org/jira/browse/AIRFLOW-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16618028#comment-16618028
]
Kaxil Naik commented on AIRFLOW-3075:
-------------------------------------
The documentation you are looking at is for Airflow 1.10. This deprecation was
done in 1.10.
Check documentation of 1.9 ->
https://airflow.readthedocs.io/en/1.9.0/integration.html?highlight=bigquery#bigquerytobigqueryoperator
> bql deprecated field isn't deprecated - BigQueryOperator
> --------------------------------------------------------
>
> Key: AIRFLOW-3075
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3075
> Project: Apache Airflow
> Issue Type: Bug
> Reporter: jack
> Assignee: Kaxil Naik
> Priority: Critical
>
> docs says:
> [http://airflow.incubator.apache.org/integration.html?highlight=bigquery#bigquerytobigqueryoperator]
> * *bql* (_Can receive a str representing a sql statement__,_ _a list of str_
> _(__sql statements__)__, or__reference to a template file. Template reference
> are recognized by str ending in '.sql'._) – (Deprecated. Use ??sql??
> parameter instead) the sql code to be executed (templated)
> * *sql* (_Can receive a str representing a sql statement__,_ _a list of str_
> _(__sql statements__)__, or__reference to a template file. Template reference
> are recognized by str ending in '.sql'._) – the sql code to be executed
> (templated)
>
> When created a operator with *sql* and adding the new DAG the UI shows:
> Broken DAG: [/home/ubuntu/airflow/dags/my_dag.py] Argument ['bql'] is required
>
> The DAG can not run.
> only when changing the sql to bql the error is gone and the DAG can run.
> I'm using 1.9.0
>
> This is weird because I must use the deprecated bql and not the new sql
> argument.
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)