milenkovicm commented on issue #3941:
URL:
https://github.com/apache/arrow-datafusion/issues/3941#issuecomment-1290489703
One thing I cant really wrap my head around is use of `async` with
`try_grow`.
Issue I have is with use of `try_grow` within struct `impl Stream` e.g
`GroupedHashAggregateStreamV2` which actually handles `RecordBatch`
```rust
impl Stream for GroupedHashAggregateStreamV2 {
type Item = ArrowResult<RecordBatch>;
fn poll_next(
mut self: std::pin::Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Option<Self::Item>> {
let this = &mut *self;
// await` is only allowed inside `async` functions and blocks only
allowed inside `async` functions and blocks
this.mem_manager.try_grow(200).await;
}
}
```
anybody has any better idea how to integrate it?
--
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]