AdaptiveRulesHolder¶
AdaptiveRulesHolder
holds the user-defined adaptive query rules for a SessionState.
The user-defined AQE rules are defined using SparkSessionExtensions injections:
- injectQueryStagePrepRule
- injectRuntimeOptimizerRule
- injectQueryStageOptimizerRule
- injectQueryPostPlannerStrategyRule
Creating Instance¶
AdaptiveRulesHolder
takes the following to be created:
- Adaptive Query Stage Preparation Rules
- Adaptive Query Execution Runtime Optimizer Rules
- Adaptive Query Stage Optimizer Rules
- Adaptive Query Post Planner Strategy Rules
AdaptiveRulesHolder
is created when:
BaseSessionStateBuilder
is requested for the adaptive rules