Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6343

Phoenix allows duplicate column names when one of them is a primary key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.0, 4.15.0
    • 5.1.1, 4.16.0, 5.2.0
    • core
    • None
    • Although user provided CF can have same column name as one of primary keys, default CF is no longer supported to have same column name as primary key columns.

    Description

      CREATE TABLE IF NOT EXISTS test_duplicate_columns (
      name VARCHAR NOT NULL PRIMARY KEY,
      city VARCHAR, name VARCHAR);
      
      select * from test_duplicate_columns;
      +------+------+------+
      | NAME | CITY | NAME |
      +------+------+------+
      +------+------+------+
      No rows selected (0.015 seconds)
      

      Attachments

        Activity

          People

            vjasani Viraj Jasani
            stoty Istvan Toth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: