Skip to content

AdaptiveExecutionContext

AdaptiveExecutionContext is the execution context to share the following between the main query and all subqueries:

Creating Instance

AdaptiveExecutionContext takes the following to be created:

AdaptiveExecutionContext is created when:

Subquery Cache

subqueryCache: TrieMap[SparkPlan, BaseSubqueryExec]

AdaptiveExecutionContext creates a TrieMap (Scala) of SparkPlans (canonicalized ExecSubqueryExpressions to be precise) and associated BaseSubqueryExecs.


subqueryCache is used when:

Stage Cache

stageCache: TrieMap[SparkPlan, QueryStageExec]

AdaptiveExecutionContext creates a TrieMap (Scala) of SparkPlans (canonicalized Exchanges to be precise) and associated QueryStageExecs.


stageCache is used when: