Skip to content

DynamicPruningSubquery Unevaluable Subquery Expression

DynamicPruningSubquery is a SubqueryExpression and a DynamicPruning predicate expression.

DynamicPruningSubquery is an unevaluable expression.

DynamicPruningSubquery is used by PlanDynamicPruningFilters physical optimization.

Creating Instance

DynamicPruningSubquery takes the following to be created:

  • Pruning Key Expression
  • Build Query LogicalPlan
  • Build Keys Expressions
  • Broadcast Key Index
  • onlyInBroadcast Flag
  • ExprId (default: NamedExpression.newExprId)

DynamicPruningSubquery is created when PartitionPruning logical optimization is executed.

Textual Representation

toString: String

toString uses the exprId and conditionString to build a textual representation:

dynamicpruning#[exprId] [conditionString]

Last update: 2020-08-17