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

Misleading error message in alter table validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 4.0.0-alpha-1
    • Metastore
    • None

    Description

      The metastore's validation error message when attempting to rename a table to a non-existent database is wrong. For instance, attempting to alter table 'db.table' to 'non_existent_database.table' results in the Thrift error:

      TException - service has thrown: InvalidOperationException(message=Unable to change partition or table. Database db does not exist Check metastore logs for detailed stack.non_existent_database)

      I believe the offending line of code is here, notice that dbname is used in the message, not newDbName. I don't know if switching that would cause the case of a non-existing dbname case to regress, though.

      Attachments

        1. HIVE-18852.2.patch
          5 kB
          Andrew Sherman
        2. HIVE-18852.1.patch
          5 kB
          Andrew Sherman

        Activity

          People

            asherman Andrew Sherman
            danburkert Dan Burkert
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: