bkietz commented on issue #40583: URL: https://github.com/apache/arrow/issues/40583#issuecomment-2009905612
The default sink node does allow access to the stream of batches as a [`AsyncGenerator<std::optional<ExecBatch>>`](https://github.com/bkietz/arrow/blob/46758bc3c6321d8b7013acf52bff7761a8b33eda/cpp/src/arrow/acero/hash_aggregate_test.cc#L315-L325). `AsyncGenerator<T>` is a sequence of `Future<T>`, and we have several utilities to consume and compose these. The simplest approach is probably to wrap the generator into a synchronous sequence with `MakeGeneratorIterator` and dedicate a thread to iterate through the synchronous sequence, pushing each batch -- 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]
