Skip to content

Commit 0135d33

Browse files
stronger type checking in JSON helper functions in Sea Result Set
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 9a6db30 commit 0135d33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/databricks/sql/backend/sea/result_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import List, Optional, TYPE_CHECKING
3+
from typing import Any, List, Optional, TYPE_CHECKING
44

55
import logging
66

@@ -82,7 +82,7 @@ def __init__(
8282
arrow_schema_bytes=execute_response.arrow_schema_bytes,
8383
)
8484

85-
def _convert_json_types(self, row: List) -> List:
85+
def _convert_json_types(self, row: List[str]) -> List[Any]:
8686
"""
8787
Convert string values in the row to appropriate Python types based on column metadata.
8888
"""
@@ -109,7 +109,7 @@ def _convert_json_types(self, row: List) -> List:
109109

110110
return converted_row
111111

112-
def _convert_json_to_arrow_table(self, rows: List[List]) -> "pyarrow.Table":
112+
def _convert_json_to_arrow_table(self, rows: List[List[str]]) -> "pyarrow.Table":
113113
"""
114114
Convert raw data rows to Arrow table.
115115

0 commit comments

Comments
 (0)