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

Commit511c449

Browse files
improve docstrings
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent72a5cd3 commit511c449

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(
8383

8484
def_convert_json_types(self,row:List)->List:
8585
"""
86-
Convert string values to appropriate Python types based on column metadata.
86+
Convert string valuesin the rowto appropriate Python types based on column metadata.
8787
"""
8888

8989
# JSON + INLINE gives us string values, so we convert them to appropriate
@@ -111,7 +111,14 @@ def _convert_json_types(self, row: List) -> List:
111111
def_convert_json_to_arrow_table(self,rows:List[List])->"pyarrow.Table":
112112
"""
113113
Convert raw data rows to Arrow table.
114+
115+
Args:
116+
rows: List of raw data rows
117+
118+
Returns:
119+
PyArrow Table containing the converted values
114120
"""
121+
115122
ifnotrows:
116123
returnpyarrow.Table.from_pydict({})
117124

@@ -125,7 +132,6 @@ def _convert_json_to_arrow_table(self, rows: List[List]) -> "pyarrow.Table":
125132
def_create_json_table(self,rows:List[List])->List[Row]:
126133
"""
127134
Convert raw data rows to Row objects with named columns based on description.
128-
Also converts string values to appropriate Python types based on column metadata.
129135
130136
Args:
131137
rows: List of raw data rows

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp