Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, LogicalPlanner and ProjectionPushDownRule do not allow the same expressions with different alias names. The following query is an example of this restriction.
select l_orderkey + 1 as total1, orderkey + 1 as total2 from ..
The main cause of this bug is that NamedExprManager and TargetListManager only keep 1:1 mapping relationship between alias and expression. This patch changes them to keep 1:N mapping relationship.