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

getPrimaryKeys and getForeignKeys in metastore does not normalize db and table name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Metastore
    • None

    Description

      In db, everything is lower case. When we retrieve constraints back, we need to normalize dbname/tablename. Otherwise, the following sample script fail:

      alter table Table9 add constraint pk1 primary key (a) disable novalidate;
      ALTER TABLE Table9 drop constraint pk1;

      Error message: InvalidObjectException(message:The constraint: pk1 does not exist for the associated table: default.Table9

      Attachments

        1. HIVE-15724.1.patch
          14 kB
          Daniel Dai
        2. HIVE-15724.2.patch
          14 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: