EquivalentExpressions¶
Creating Instance¶
EquivalentExpressions
takes the following to be created:
EquivalentExpressions
is created when:
CodegenContext
is created and requested to subexpressionEliminationForWholeStageCodegenSubExprEvaluationRuntime
is requested toproxyExpressions
PhysicalAggregation
is requested to unapply
Demo¶
import org.apache.spark.sql.catalyst.expressions.EquivalentExpressions
val equivalentExpressions = new EquivalentExpressions