yoavfeld opened a new issue, #28159:
URL: https://github.com/apache/airflow/issues/28159

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   airflow version: 2.3
   python version 3.7.13
   
   problem: error occured when inheriting from QuboleOperator 
(airflow/providers/qubole/operators/qubole.py)
   
   callstack:
   
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/qubole/operators/qubole.py",
 line 304, in __setattr__
       if name in _get_template_fields(self):
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/providers/qubole/operators/qubole.py",
 line 312, in _get_template_fields
       template_fields = object.__getattribute__(class_, 'template_fields')
   AttributeError: 'BaseOperatorMeta' object has no attribute 'template_fields'
   
   
   ### What you think should happen instead
   
   These changes in qubole.py file should be reverted:
   
   
https://github.com/apache/airflow/commit/33214d9326bb0bb52f06e230895f4f68fc952664#diff-63a6626367fb879a888263f6063e8aebb42d5a34e3a0f798fbb727b0a640aa56L270
   
   
https://github.com/apache/airflow/commit/33214d9326bb0bb52f06e230895f4f68fc952664#diff-63a6626367fb879a888263f6063e8aebb42d5a34e3a0f798fbb727b0a640aa56L279
   
   
   
   ### How to reproduce
   
   Creating a class that inherit from QuboleOperator. for ex:
   
   from airflow.providers.qubole.operators.qubole import QuboleOperator
   
   class MyQuboleOperator(QuboleOperator):
       def __init__(self):
           super().__init__()
   
   ### Operating System
   
   linux
   
   ### Versions of Apache Airflow Providers
   
   airflow=2.3
   apache-airflow-providers-qubole==3.3.1
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to