ulysses-you commented on issue #26565: [SPARK-29937][SQL] Make FileSourceScanExec class fields lazy URL: https://github.com/apache/spark/pull/26565#issuecomment-557746729 Yeah, it is really expensive, many plan do init action during instance. I think we just need to copy analyzed plan what is the base plan. And for other case, we should check and copy just like what AdaptiveExecution do before. ``` val logicalPlan = if (sparkSession.sessionState.conf.adaptiveExecutionEnabled) { optimizedPlan.clone() } else { optimizedPlan } ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
