Zhang Jianguo created SPARK-35441: ------------------------------------- Summary: InMemoryFileIndex load all files into memroy Key: SPARK-35441 URL: https://issues.apache.org/jira/browse/SPARK-35441 Project: Spark Issue Type: Improvement Components: Spark Core Affects Versions: 2.3.1 Reporter: Zhang Jianguo
When InMemoryFileIndex is initialated, it'll load all files of ${rootPath}. If there're thousands of files, it could lead to OOM. https://github.com/apache/spark/blob/0b3758e8cdb3eaa9d55ce3b41ecad5fa01567343/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala#L66 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org