ReuseAdaptiveSubquery Physical Optimization¶
ReuseAdaptiveSubquery is a physical query plan optimization in Adaptive Query Execution.
ReuseAdaptiveSubquery takes the following to be created:
ReuseAdaptiveSubquery is created when:
AdaptiveSparkPlanExecleaf physical operator is requested for the adaptive optimizations
apply( plan: SparkPlan): SparkPlan
- For a ExecSubqueryExpression expression,
applyreplaces the plan with a new ReusedSubqueryExec physical operator with a cached plan if found in the cache.
apply is part of the Rule abstraction.