Skip to content

Commit 65e7c6b

Browse files
correct sea res set tests
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 4e07f1e commit 65e7c6b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/databricks/sql/result_set.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from databricks.sql.thrift_api.TCLIService import ttypes
2020
from databricks.sql.types import Row
2121
from databricks.sql.exc import Error, RequestError, CursorAlreadyClosedError
22-
from databricks.sql.utils import ColumnTable, ColumnQueue, JsonQueue
22+
from databricks.sql.utils import ColumnTable, ColumnQueue
2323
from databricks.sql.backend.types import CommandId, CommandState, ExecuteResponse
2424

2525
logger = logging.getLogger(__name__)
@@ -484,7 +484,9 @@ def __init__(
484484

485485
def _fill_results_buffer(self):
486486
"""Fill the results buffer from the backend."""
487-
raise NotImplementedError("fetchall_arrow is not implemented for SEA backend")
487+
raise NotImplementedError(
488+
"_fill_results_buffer is not implemented for SEA backend"
489+
)
488490

489491
def fetchone(self) -> Optional[Row]:
490492
"""

tests/unit/test_sea_result_set.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def test_fill_results_buffer_not_implemented(
195195
)
196196

197197
with pytest.raises(
198-
NotImplementedError, match="fetchone is not implemented for SEA backend"
198+
NotImplementedError,
199+
match="_fill_results_buffer is not implemented for SEA backend",
199200
):
200201
result_set._fill_results_buffer()

0 commit comments

Comments
 (0)