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/12 10:39:19 UTC

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

Hyunsik Choi created TAJO-595:
---------------------------------

             Summary: 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


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)