pitrou commented on code in PR #13635:
URL: https://github.com/apache/arrow/pull/13635#discussion_r981241386


##########
r/src/compute-exec.cpp:
##########
@@ -106,6 +108,15 @@ class ExecPlanReader : public arrow::RecordBatchReader {
       return arrow::Status::OK();
     }
 
+    // Check for cancellation and stop the plan if we have a request. When
+    // the ExecPlan supports passing a StopToken and handling this itself,
+    // this will be redundant.
+    ARROW_RETURN_NOT_OK(stop_token_.Poll());

Review Comment:
   Which also means that, in its current form, this code will (almost) never 
call `StopProducing`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to