Riza Suminto created HIVE-27989:
-----------------------------------
Summary: Wrong database name in MetaException from
MetastoreDefaultTransformer.java
Key: HIVE-27989
URL: https://issues.apache.org/jira/browse/HIVE-27989
Project: Hive
Issue Type: Bug
Reporter: Riza Suminto
There are two places in MetastoreDefaultTransformer.java where MetaException
message use table.getTableName() instead of table.getDbName(), causing some
confusion.
[https://github.com/apache/hive/blob/24fffdc508f9402ad7145b59b50de738b27c92b4/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java#L775]
{code:java}
"Database " + oldTable.getTableName() + " for table " +
oldTable.getTableName() + " could not be found"); {code}
[https://github.com/apache/hive/blob/24fffdc508f9402ad7145b59b50de738b27c92b4/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java#L898]
{code:java}
throw new MetaException("Database " + table.getTableName() + " for table
" + table.getTableName() + " could not be found"); {code}
This is revealed through IMPALA-12655.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)