When the token is used in the databricks connection, the host name is being pulled from extra json data

https://github.com/apache/airflow/blob/fdd9b6f65b608c516b8a062b058972d9a45ec9e3/airflow/providers/databricks/hooks/databricks.py#L160


I think the host name should be pulled from databricks_conn directly as the line 164, where basic auth is being used https://github.com/apache/airflow/blob/fdd9b6f65b608c516b8a062b058972d9a45ec9e3/airflow/providers/databricks/hooks/databricks.py#L164

Thanks!

Liusong


airflow/providers/databricks/hooks/databricks.py
else:
            raise AirflowException('Unexpected HTTP Method: ' + method)
        attempt_num = 1
        while True:
            try:
                response = request_func(
                    url,
                    json=json if method in ('POST', 'PATCH') else None,
                    params=json if method == 'GET' else None,
                    auth=auth,
                    headers=USER_AGENT_HEADER,
                    timeout=self.timeout_seconds,
                )
                response.raise_for_status()
                return response.json()
            except requests_exceptions.RequestException as e:
                if not _retryable_error(e):
                    
                    
                    raise AirflowException(
                        'Response: {0}, Status Code: {1}'.format(e.response.content, e.response.status_code)
                    )
                self._log_request_error(attempt_num, e)
            if attempt_num == self.retry_limit:
                raise AirflowException(
                    ('API requests to Databricks failed {} times. ' + 'Giving up.').format(self.retry_limit)
                )
            attempt_num += 1
            sleep(self.retry_delay)
    def _log_request_error(self, attempt_num, error):