You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2014/02/13 14:14:19 UTC

[jira] [Updated] (TAJO-595) The same expressions without different alias are not allowed.

     [ https://issues.apache.org/jira/browse/TAJO-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyunsik Choi updated TAJO-595:
------------------------------

    Attachment: TAJO-595.patch

> 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)