baiguoname commented on issue #18381: URL: https://github.com/apache/datafusion/issues/18381#issuecomment-3514657533
> When the stream produces `Poll::Ready(None)` it means "end of stream" -- there shouldn't be any additional results after the first `Poll::Ready(None)` Yes, it is. There are two operators on the `df`: `aggregate` and `sort`. The `sort` is a pipline breaker, while the `aggregate` is not. I'm trying to find a way similar to `df.collect` (suppose named as `df.collect_but_not_consume`), which behave like `df.collect`, except for keeping the state the operators that is not pipline breaker. This way, after calling `df.collect_but_not_consume` and receiving `Poll::Ready(None)`, the stream would still be alive and available for further operations -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
