Skip to content

Commit

Permalink
Changed error type
Browse files Browse the repository at this point in the history
  • Loading branch information
jprakash-db committed Dec 12, 2024
1 parent 2785d0a commit 1f3bc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/sql/thrift_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ def fetch_results(

resp = self.make_request(self._client.FetchResults, req)
if resp.results.startRowOffset > expected_row_start_offset:
raise ValueError(
"Expected results to start from {} but they instead start at {}".format(
raise DataError(
"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(
expected_row_start_offset, resp.results.startRowOffset
)
)
Expand Down

0 comments on commit 1f3bc19

Please sign in to comment.