Rule to "normalize" ParamLiterals for the case of aggregation expression being used
in projection. Specifically the ParamLiterals from aggregations need to be replaced
into projection so that latter can be resolved successfully in plan execution
because ParamLiterals will match expression only by position and not value at the
time of execution. This rule is useful only before plan caching after parsing.
See Spark's PhysicalAggregation rule for more details.
Rule to "normalize" ParamLiterals for the case of aggregation expression being used in projection. Specifically the ParamLiterals from aggregations need to be replaced into projection so that latter can be resolved successfully in plan execution because ParamLiterals will match expression only by position and not value at the time of execution. This rule is useful only before plan caching after parsing.
See Spark's PhysicalAggregation rule for more details.