Skip to content

Commit 511c449

Browse files
improve docstrings
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 72a5cd3 commit 511c449

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 values in the row to 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
if not rows:
116123
return pyarrow.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)