Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-595

The same expressions without different alias are not allowed.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Planner/Optimizer
    • Labels:
      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.

        Attachments

        1. TAJO-595.patch
          102 kB
          Hyunsik Choi
        2. TAJO-595_20140217_14:56:20.patch
          126 kB
          Hyunsik Choi
        3. TAJO-595_20140217_14:33:31.patch
          126 kB
          Hyunsik Choi
        4. TAJO-595_20140217_14:04:25.patch
          125 kB
          Hyunsik Choi
        5. TAJO-595_140217_172537.patch
          125 kB
          Hyunsik Choi

          Activity

            People

            • Assignee:
              hyunsik Hyunsik Choi
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: