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

Relax ProjectRelbase restriction on duplicate names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: