Skip to content

Commit 1f3bc19

Browse files
committed
Changed error type
1 parent 2785d0a commit 1f3bc19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/sql/thrift_backend.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ def fetch_results(
10461046

10471047
resp = self.make_request(self._client.FetchResults, req)
10481048
if resp.results.startRowOffset > expected_row_start_offset:
1049-
raise ValueError(
1050-
"Expected results to start from {} but they instead start at {}".format(
1049+
raise DataError(
1050+
"fetch_results failed due to inconsistency in the state between the client and the server. Expected results to start from {} but they instead start at {}, some result batch must have been skipped".format(
10511051
expected_row_start_offset, resp.results.startRowOffset
10521052
)
10531053
)

0 commit comments

Comments
 (0)