Skip to content

Commit 14da892

Browse files
formatting (black)
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 6617017 commit 14da892

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/databricks/sql/backend/sea_backend.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _extract_warehouse_id(self, http_path: str) -> str:
9595
"""
9696
warehouse_pattern = re.compile(r".*/warehouses/(.+)")
9797
endpoint_pattern = re.compile(r".*/endpoints/(.+)")
98-
98+
9999
for pattern in [warehouse_pattern, endpoint_pattern]:
100100
match = pattern.match(http_path)
101101
if match:
@@ -104,7 +104,7 @@ def _extract_warehouse_id(self, http_path: str) -> str:
104104
f"Extracted warehouse ID: {warehouse_id} from path: {http_path}"
105105
)
106106
return warehouse_id
107-
107+
108108
# If no match found, raise error
109109
error_message = (
110110
f"Could not extract warehouse ID from http_path: {http_path}. "
@@ -224,11 +224,15 @@ def execute_command(
224224

225225
def cancel_command(self, command_id: CommandId) -> None:
226226
"""Not implemented yet."""
227-
raise NotImplementedError("cancel_command is not yet implemented for SEA backend")
227+
raise NotImplementedError(
228+
"cancel_command is not yet implemented for SEA backend"
229+
)
228230

229231
def close_command(self, command_id: CommandId) -> None:
230232
"""Not implemented yet."""
231-
raise NotImplementedError("close_command is not yet implemented for SEA backend")
233+
raise NotImplementedError(
234+
"close_command is not yet implemented for SEA backend"
235+
)
232236

233237
def get_query_state(self, command_id: CommandId) -> CommandState:
234238
"""Not implemented yet."""

0 commit comments

Comments
 (0)