Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf6d41c

Browse files
ensure command_id is not None
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent726abe7 commitbf6d41c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/databricks/sql/backend/thrift_backend.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ def _results_message_to_execute_response(self, resp, operation_state):
796796
arrow_queue_opt=None
797797

798798
command_id=CommandId.from_thrift_handle(resp.operationHandle)
799+
ifcommand_idisNone:
800+
raiseValueError(f"Invalid Thrift handle:{resp.operationHandle}")
799801

800802
returnExecuteResponse(
801803
arrow_queue=arrow_queue_opt,
@@ -1156,6 +1158,8 @@ def get_columns(
11561158

11571159
def_handle_execute_response(self,resp,cursor):
11581160
command_id=CommandId.from_thrift_handle(resp.operationHandle)
1161+
ifcommand_idisNone:
1162+
raiseValueError(f"Invalid Thrift handle:{resp.operationHandle}")
11591163

11601164
cursor.active_command_id=command_id
11611165
self._check_direct_results_for_error(resp.directResults)
@@ -1169,6 +1173,9 @@ def _handle_execute_response(self, resp, cursor):
11691173

11701174
def_handle_execute_response_async(self,resp,cursor):
11711175
command_id=CommandId.from_thrift_handle(resp.operationHandle)
1176+
ifcommand_idisNone:
1177+
raiseValueError(f"Invalid Thrift handle:{resp.operationHandle}")
1178+
11721179
cursor.active_command_id=command_id
11731180
self._check_direct_results_for_error(resp.directResults)
11741181

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp