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

Support non unique primary key for Kudu

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.3.0
    • Backend, Catalog, Frontend
    • None
    • ghx-label-1

    Description

      Kudu engine adds support for non unique primary key. It adds a column 'auto_increment_id' automatically in a table which has non unique primary key. The non unique primary key and 'auto_increment_id' form unique composite primary key for the table.

      Impala need to add syntactic support for creating Kudu table with non unique primary key like:
      CREATE TABLE tbl (i INT NON UNIQUE PRIMARY KEY, s STRING)
      PARTITION BY HASH partitions 3
      STORED as KUDU;

      CREATE TABLE tbl (i INT, s STRING, NON UNIQUE PRIMARY KEY)
      PARTITION BY HASH partitions 3
      STORED as KUDU;

      CREATE TABLE tbl NON UNIQUE PRIMARY KEY(id)
      PARTITION BY HASH (id) partitions 3
      STORED as KUDU
      AS SELECT id, string_col FROM functional.alltypes WHERE id = 10;

      Attachments

        Issue Links

          Activity

            People

              wzhou Wenzhe Zhou
              wzhou Wenzhe Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: