File tree Expand file tree Collapse file tree
src/databricks/sql/backend/kernel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -957,6 +957,7 @@ def get_execution_result(
957957 command_id : CommandId ,
958958 cursor : "Cursor" ,
959959 ) -> "ResultSet" :
960+ """Fetch results after the cursor has confirmed successful completion."""
960961 # Prefer the original owning async handle for the first
961962 # in-process result stream. The kernel attaches the real
962963 # ExecuteStatementAsync telemetry to that handle; attached
Original file line number Diff line number Diff line change 66- ``ExecutedStatement`` — returned by ``Statement.execute()``. Has a
77 ``statement_id`` and a ``cancel()`` method.
88- ``ResultStream`` — returned by ``Session.metadata().list_*`` and by
9- ``ExecutedAsyncStatement.await_result ()``. No statement id; no
9+ ``ExecutedAsyncStatement.fetch_result ()`` after completion . No statement id; no
1010 cancel.
1111
1212Both implement the same three methods this class actually calls:
Original file line number Diff line number Diff line change @@ -1504,7 +1504,7 @@ def test_get_execution_result_construction_failure_retains_marker_and_uses_reade
15041504 c ._kernel_session = MagicMock ()
15051505 owning_stream = MagicMock ()
15061506 # ``KernelResultSet.__init__`` calls ``arrow_schema()``; make that
1507- # raise so ``_make_result_set`` fails after a successful await .
1507+ # raise so ``_make_result_set`` fails after a successful fetch .
15081508 owning_stream .arrow_schema .side_effect = _FakeKernelError (code = "Internal" )
15091509 owning_handle = MagicMock ()
15101510 owning_handle .fetch_result .return_value = owning_stream
You can’t perform that action at this time.
0 commit comments