leaves12138 opened a new issue, #1061: URL: https://github.com/apache/incubator-paimon/issues/1061
### Search before asking - [X] I searched in the [issues](https://github.com/apache/incubator-paimon/issues) and found nothing similar. ### Motivation Parallelly read file in AbstractFileStoreScan class plan method will run a lot of memory while files number is large. ### Solution Make memory usage limit to ''' readManifests .parallelStream() .filter(this::filterManifestFileMeta) .flatMap(m -> readManifestFileMeta(m).stream()) .filter(this::filterByStats) .collect(Collectors.toList())) ''' ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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]
