Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21681

Describe formatted shows incorrect information for multiple primary keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      In tables with primary key spanning across multiple columns 'describe formatted' shows a maximum of two column names only: In the ASCII art table of 3 columns it will show:

      Column name|p1|p2

      Example queries:

      CREATE TABLE test (
        p1 string,
        p2 string,
        p3 string,
        c0 int,
        PRIMARY KEY(p1,p2,p3) DISABLE NOVALIDATE
      );
      describe formatted test;

      I propose we fix this so that primary key columns get listed one-by-one in separate rows, somewhat like how foreign keys are listed too.

      Attachments

        1. HIVE-21681.0.patch
          1 kB
          Ádám Szita
        2. HIVE-21681.1.patch
          10 kB
          Ádám Szita

        Activity

          People

            szita Ádám Szita
            szita Ádám Szita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: