jack created AIRFLOW-3075:
-----------------------------

             Summary: 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


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)

Reply via email to