Skip to content

Commit dfb4cc3

Browse files
stronger typing in resultSet behaviour
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent 7e730db commit dfb4cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/databricks/sql/result_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ def fetchall(self) -> List[Row]:
101101
pass
102102

103103
@abstractmethod
104-
def fetchmany_arrow(self, size: int) -> Any:
104+
def fetchmany_arrow(self, size: int) -> "pyarrow.Table":
105105
"""Fetch the next set of rows as an Arrow table."""
106106
pass
107107

108108
@abstractmethod
109-
def fetchall_arrow(self) -> Any:
109+
def fetchall_arrow(self) -> "pyarrow.Table":
110110
"""Fetch all remaining rows as an Arrow table."""
111111
pass
112112

@@ -251,7 +251,7 @@ def _convert_arrow_table(self, table):
251251
res = df.to_numpy(na_value=None, dtype="object")
252252
return [ResultRow(*v) for v in res]
253253

254-
def merge_columnar(self, result1, result2):
254+
def merge_columnar(self, result1, result2) -> "ColumnTable":
255255
"""
256256
Function to merge / combining the columnar results into a single result
257257
:param result1:

0 commit comments

Comments
 (0)