Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0135d33

Browse files
stronger type checking in JSON helper functions in Sea Result Set
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent9a6db30 commit0135d33

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__importannotations
22

3-
fromtypingimportList,Optional,TYPE_CHECKING
3+
fromtypingimportAny,List,Optional,TYPE_CHECKING
44

55
importlogging
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
returnconverted_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)

[8]ページ先頭

©2009-2025 Movatter.jp