class_docstr: Hook to interact with Databricks SQL.
  
  :param databricks_conn_id: Reference to the
      :ref:`Databricks connection <howto/connection:databricks>`.
  :param http_path: Optional string specifying HTTP path of Databricks SQL Endpoint or cluster.
      If not specified, it should be either specified in the Databricks connection's extra parameters,
      or ``sql_endpoint_name`` must be specified.
  :param sql_endpoint_name: Optional name of Databricks SQL Endpoint. If not specified, ``http_path``
      must be provided as described above.
  :param session_configuration: An optional dictionary of Spark session parameters. Defaults to None.
      If not specified, it could be specified in the Databricks connection's extra parameters.
  :param http_headers: An optional list of (k, v) pairs that will be set as HTTP headers
      on every request
  :param catalog: An optional initial catalog to use. Requires DBR version 9.0+
  :param schema: An optional initial schema to use. Requires DBR version 9.0+
  :param return_tuple: Return a ``namedtuple`` object instead of a ``databricks.sql.Row`` object. Default
      to False. In a future release of the provider, this will become True by default. This parameter
      ensures backward-compatibility during the transition phase to common tuple objects for all hooks based
      on DbApiHook. This flag will also be removed in a future release.
  :param kwargs: Additional parameters internal to Databricks SQL Connector parameters
docstr: Return a Databricks SQL connection object.
docstr_tok: ["Return","a","Databricks","SQL","connection","object","."]
code: def get_conn(self) -> Connection:
      """Return a Databricks SQL connection object."""
      if not self._http_path:
          if self._sql_endpoint_name:
              endpoint = self._get_sql_endpoint_by_name(
                  self._sql_endpoint_name
              )
              self._http_path = endpoint["odbc_params"]["path"]
          elif "http_path" in self.databricks_conn.extra_dejson:
              self._http_path = self.databricks_conn.extra_dejson[
                  "http_path"
              ]
          else:
              raise AirflowException(
                  "http_path should be provided either explicitly, "
                  "or in extra parameter of Databricks connection, "
                  "or sql_endpoint_name should be specified"
              )
  
      requires_init = True
      if not self._token:
          self._token = self._get_token(raise_error=True)
      else:
          new_token = self._get_token(raise_error=True)
          if new_token != self._token:
              self._token = new_token
          else:
              requires_init = False
  
      if not self.session_config:
          self.session_config = self.databricks_conn.extra_dejson.get(
              "session_configuration"
          )
  
      if not self._sql_conn or requires_init:
          if self._sql_conn:  # close already existing connection
              self._sql_conn.close()
          self._sql_conn = sql.connect(
              self.host,
              self._http_path,
              self._token,
              schema=self.schema,
              catalog=self.catalog,
              session_configuration=self.session_config,
              http_headers=self.http_headers,
              _user_agent_entry=self.user_agent_value,
              **self._get_extra_config(),
              **self.additional_params,
          )
      return self._sql_conn
  
imports: from __future__ import annotations
  import warnings
  from collections import namedtuple
  from contextlib import closing
  from copy import copy
  from typing import TYPE_CHECKING, Any, Callable, Iterable, List, Mapping, Sequence, TypeVar, cast, overload
  from databricks import sql
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.common.sql.hooks.sql import DbApiHook, return_single_query_results
  from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
label_desc: Use image node_id 4 for calling the DatabricksSqlHook obj's underlying member method code with example usage: obj.get_conn() and returns: self