Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-411

Relax ProjectRelbase restriction on duplicate names

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      ProjectRelBase:180

      !Util.isDistinct(rowType.getFieldNames()
      

      disallows duplicate fieldNames.

      But this the following is allowed in mysql, postgres and hive

      create table t1(x int, y int);
      select x,x from t1;
      

      Can optiq relax this check?

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              rhbutani Harish Butani
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: