|
41 | 41 | convert_column_based_set_to_arrow_table, |
42 | 42 | ) |
43 | 43 | from databricks.sql.types import SSLOptions |
44 | | -from databricks.sql.db_client_interface import DatabricksClient |
| 44 | +from databricks.sql.backend.databricks_client import DatabricksClient |
45 | 45 |
|
46 | 46 | logger = logging.getLogger(__name__) |
47 | 47 |
|
@@ -221,11 +221,11 @@ def __init__( |
221 | 221 | @property |
222 | 222 | def staging_allowed_local_path(self) -> Union[None, str, List[str]]: |
223 | 223 | return self._staging_allowed_local_path |
224 | | - |
| 224 | + |
225 | 225 | @property |
226 | 226 | def ssl_options(self) -> SSLOptions: |
227 | 227 | return self._ssl_options |
228 | | - |
| 228 | + |
229 | 229 | @property |
230 | 230 | def max_download_threads(self) -> int: |
231 | 231 | return self._max_download_threads |
@@ -449,8 +449,10 @@ def attempt_request(attempt): |
449 | 449 | except Exception as err: |
450 | 450 | error = err |
451 | 451 | retry_delay = extract_retry_delay(attempt) |
452 | | - error_message = ThriftDatabricksClient._extract_error_message_from_headers( |
453 | | - getattr(self._transport, "headers", {}) |
| 452 | + error_message = ( |
| 453 | + ThriftDatabricksClient._extract_error_message_from_headers( |
| 454 | + getattr(self._transport, "headers", {}) |
| 455 | + ) |
454 | 456 | ) |
455 | 457 | finally: |
456 | 458 | # Calling `close()` here releases the active HTTP connection back to the pool |
@@ -710,7 +712,8 @@ def _col_to_description(col): |
710 | 712 | @staticmethod |
711 | 713 | def _hive_schema_to_description(t_table_schema): |
712 | 714 | return [ |
713 | | - ThriftDatabricksClient._col_to_description(col) for col in t_table_schema.columns |
| 715 | + ThriftDatabricksClient._col_to_description(col) |
| 716 | + for col in t_table_schema.columns |
714 | 717 | ] |
715 | 718 |
|
716 | 719 | def _results_message_to_execute_response(self, resp, operation_state): |
|
0 commit comments