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

   I'm setting `OdbcHook.default_driver` in my `airflow_local_settings.py`, but 
I get a warning saying:
   
   > You have supplied 'driver' via connection extra but it will not be used. 
In order to use 'driver' from extra you must set airflow config setting 
`allow_driver_in_extra = True` in section `providers.odbc`. Alternatively you 
may specify driver via 'driver' parameter of the hook constructor or via 
'hook_params' dictionary with key 'driver' if using SQL operators.
   
   I checked the source and I think there's a bug: if `extra_driver` is `None` 
then the warning will show, but in reality the warning should only show if 
`extra_driver` is not `None`.
   
   
https://github.com/apache/airflow/blob/9eb25f92bf25c287ff801d0897c8ee177641710c/providers/odbc/src/airflow/providers/odbc/hooks/odbc.py#L96-L114


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

  • [I] Incorrect OdbcHook driver ... ThePythonator (via GitHub) via commits

Reply via email to