waltczhang opened a new issue, #7594:
URL: https://github.com/apache/iceberg/issues/7594
### Query engine
_No response_
### Question
Background:
When I was doing a full table scan (table DataFiles with millions or even
more records), I found that using ParallelIterator often leads to OOM (out of
memory) issues. The main reason is that the ParallelIterator queue model has a
many-to-one relationship, meaning that there is at least one producer but only
one consumer. Is there a need for some mechanism to control the speed or
capacity of the generated data in this case?
For example:
`CloseableIterable<FileScanTask> fileScanTasks =
table.newScan()..planFiles();
fileScanTasks.forEach(...);`
--
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]