Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.spark.sql.execution

import org.apache.spark.annotation.DeveloperApi
import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
import org.apache.spark.sql.catalyst.plans.logical.{EmptyRelation, LogicalPlan}
import org.apache.spark.sql.execution.adaptive.{AdaptiveSparkPlanExec, QueryStageExec}
import org.apache.spark.sql.execution.adaptive.LogicalQueryStage
import org.apache.spark.sql.execution.columnar.InMemoryTableScanExec
Expand Down Expand Up @@ -56,6 +56,7 @@ private[execution] object SparkPlanInfo {
private def fromLogicalPlan(plan: LogicalPlan): SparkPlanInfo = {
val childrenInfo = plan match {
case LogicalQueryStage(_, physical) => Seq(fromSparkPlan(physical))
case EmptyRelation(logical) => Seq(fromLogicalPlan(logical))
case _ => (plan.children ++ plan.subqueries).map(fromLogicalPlan)
}
new SparkPlanInfo(
Expand Down