turbaszek opened a new issue #9326:
URL: https://github.com/apache/airflow/issues/9326


   **Apache Airflow version**:
   2.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   N/A
   
   **Environment**:
   local + breeze
   
   **What happened**:
   
   ```
   op = BigQueryExecuteQueryOperator(sql="SELECT * FROM table", task_id="test2")
   
   airflow/airflow/models/baseoperator.py:75: DeprecationWarning: This operator 
is deprecated. Please use `BigQueryInsertJobOperator`.
     obj: BaseOperator = type.__call__(cls, *args, **kwargs)
   ```
   
   **What you expected to happen**:
   
   I expect the warning to point to place where the operator was instantiated 
not to the `__call__` method of `BaseOperatorMeta`. 
   
   **How to reproduce it**:
   
   Instatntate 
`airflow.provders.google.cloud.operator.bigquery.BigQueryExecuteQueryOperator` 
or any other operator with depreciation warning in constructor
   
   **Anything else we need to know**:
   N/A


----------------------------------------------------------------
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]


Reply via email to