Skip to content

Commit

Permalink
[CORE] Fix performance issue when allScanPartitions size is very large (
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuangxin authored Dec 9, 2024
1 parent 1100fdf commit 72fc04e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ case class WholeStageTransformer(child: SparkPlan, materializeInput: Boolean = f
* care of SCAN there won't be any other RDD for SCAN. As a result, genFirstStageIterator
* rather than genFinalStageIterator will be invoked
*/
val allScanPartitions = basicScanExecTransformers.map(_.getPartitions)
val allScanPartitions = basicScanExecTransformers.map(_.getPartitions.toIndexedSeq)
val allScanSplitInfos =
getSplitInfosFromPartitions(basicScanExecTransformers, allScanPartitions)
if (GlutenConfig.getConf.enableHdfsViewfs) {
Expand Down

0 comments on commit 72fc04e

Please sign in to comment.