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

The same expressions without different alias are not allowed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • Planner/Optimizer
    • 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_140217_172537.patch
          125 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.patch
          102 kB
          Hyunsik Choi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: