Skip to content

Commit b977b12

Browse files
fix fetch types
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent db139bc commit b977b12

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/databricks/sql/backend/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def from_sea_state(cls, state: str) -> Optional["CommandState"]:
102102
return state_mapping.get(state, None)
103103

104104

105-
106105
class BackendType(Enum):
107106
"""
108107
Enum representing the type of backend
@@ -417,6 +416,7 @@ def to_hex_guid(self) -> str:
417416
else:
418417
return str(self.guid)
419418

419+
420420
@dataclass
421421
class ExecuteResponse:
422422
"""Response from executing a SQL command."""
@@ -430,4 +430,4 @@ class ExecuteResponse:
430430
results_queue: Optional[Any] = None
431431
has_been_closed_server_side: bool = False
432432
lz4_compressed: bool = True
433-
is_staging_operation: bool = False
433+
is_staging_operation: bool = False

src/databricks/sql/result_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ def fetchall(self) -> List[Row]:
115115
pass
116116

117117
@abstractmethod
118-
def fetchmany_arrow(self, size: int) -> Any:
118+
def fetchmany_arrow(self, size: int) -> "pyarrow.Table":
119119
"""Fetch the next set of rows as an Arrow table."""
120120
pass
121121

122122
@abstractmethod
123-
def fetchall_arrow(self) -> Any:
123+
def fetchall_arrow(self) -> "pyarrow.Table":
124124
"""Fetch all remaining rows as an Arrow table."""
125125
pass
126126

0 commit comments

Comments
 (0)