You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/23 00:36:12 UTC

[GitHub] [arrow] westonpace commented on pull request #13635: ARROW-11841: [R][C++] Allow cancelling long-running commands

westonpace commented on PR #13635:
URL: https://github.com/apache/arrow/pull/13635#issuecomment-1193022124

   > The StopToken will only work if it is actually polled by the implementation. I'm not sure the dataset layer does that. @westonpace
   
   It does not.  The exec plan has its own cancellation method (StopProducing).  However, the scan node will need to connect StopProducing to the actual readers.  So I think this will result in the exec plan creating its own stop source which it uses to generate stop tokens for the file readers.  Then, when the user calls StopProducing, the exec plan will cancel the source.
   
   Potentially we could adjust the exec plan to also have a stop source, in a "query options" object or something like that, and then we could get rid of StopProducing (at least externally).  That would give a slightly more consistent overall API.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org