dstandish edited a comment on pull request #19695:
URL: https://github.com/apache/airflow/pull/19695#issuecomment-983840615


   > > We also make it optional to use an airflow connection.
   > 
   > Do any other hooks have this behavior? I wonder if KPO should handle 
backwards compat instead?
   
   Well, SubprocessHook doesn't even take a connection id, and postgres and 
mysql will allow you to not supply a connection id but supply an actual 
Connection object instead.
   
   To me it seems pretty reasonable because it's a situation where it would be 
very normal to not need a connection (cus you're in the cluster e.g.) but want 
to use the hook methods etc.  It's not really about backwards compat in my view 
but making it flexible to use the hook without having defined a connection.


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