Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9927

Create table fails if PK constraint defined on partition column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 3.4.0
    • None
    • Frontend
    • None
    • ghx-label-9

    Description

      Create table doesn't allow you to specify a primary key that's a partition column:

      Query: create table mytable
      (
        i1 int,
        i2 int,
        primary key (i3) DISABLE NOVALIDATE RELY
      )
      partitioned by (i3 int)
      stored as parquet
      ERROR: AnalysisException: PRIMARY KEY column 'i3' does not exist in the table
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            drorke David Rorke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: