uranusjr commented on PR #25293:
URL: https://github.com/apache/airflow/pull/25293#issuecomment-1195015154

   Maybe instead of importing the deprecated base class, we should do different 
things depending on Airflow version:
   
   1. If running on Airflow < 2.3, import the legacy base class.
   2. In Airflow 2.3+, we add additional logic in `BaseSQLOperator` to also 
accept hooks inheriting the new base class.
   
   This would avoid needing the `filterwarning` block, which feels like a hack 
to me.


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