This is an automated email from the ASF dual-hosted git repository.

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e90b59dc3e1 Use non-deprecated user_agent_entry param in 
DatabricksSqlHook (#72103)
e90b59dc3e1 is described below

commit e90b59dc3e14dc5014e00167294cb6b5345ef8ff
Author: Jean-Eudes Peloye <[email protected]>
AuthorDate: Wed Sep 9 22:45:59 2026 +0200

    Use non-deprecated user_agent_entry param in DatabricksSqlHook (#72103)
    
    databricks-sql-connector renamed _user_agent_entry to user_agent_entry
    and only keeps the old name for backward compatibility, logging a
    deprecation warning on every connection opened through
    DatabricksSqlHook.get_conn(). Pass the current parameter name instead.
---
 .../databricks/src/airflow/providers/databricks/hooks/databricks_sql.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/providers/databricks/src/airflow/providers/databricks/hooks/databricks_sql.py 
b/providers/databricks/src/airflow/providers/databricks/hooks/databricks_sql.py
index b13100330d3..24be7acc927 100644
--- 
a/providers/databricks/src/airflow/providers/databricks/hooks/databricks_sql.py
+++ 
b/providers/databricks/src/airflow/providers/databricks/hooks/databricks_sql.py
@@ -241,7 +241,7 @@ class DatabricksSqlHook(BaseDatabricksHook, DbApiHook):
                 "catalog": self.catalog,
                 "session_configuration": session_config or None,
                 "http_headers": self.http_headers,
-                "_user_agent_entry": self.user_agent_value,
+                "user_agent_entry": self.user_agent_value,
                 **self._get_extra_config(),
                 **self.additional_params,
             }

Reply via email to