Dan Burkert created HIVE-18852:

             Summary: Misleading error message in alter table validation
                 Key: HIVE-18852
                 URL: https://issues.apache.org/jira/browse/HIVE-18852
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 2.4.0
            Reporter: Dan Burkert

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 
 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.

This message was sent by Atlassian JIRA

Reply via email to