[
https://issues.apache.org/jira/browse/TAJO-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900304#comment-13900304
]
Hyunsik Choi commented on TAJO-595:
-----------------------------------
This patch also includes the verification code for the aforementioned error
case. Those verification routines prevent the execution of the wrong plan to
cause error in distributed execution phase.
> The same expressions without different alias are not allowed.
> -------------------------------------------------------------
>
> Key: TAJO-595
> URL: https://issues.apache.org/jira/browse/TAJO-595
> Project: Tajo
> Issue Type: Bug
> Components: planner/optimizer
> Reporter: Hyunsik Choi
> Assignee: Hyunsik Choi
> Fix For: 0.8-incubating
>
> Attachments: TAJO-595.patch
>
>
> Currently, LogicalPlanner and ProjectionPushDownRule do not allow the same
> expressions with different alias names. The following query is an example of
> this restriction.
> {code}
> select l_orderkey + 1 as total1, orderkey + 1 as total2 from ..
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)