You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Butao Zhang (Jira)" <ji...@apache.org> on 2024/01/09 13:37:00 UTC

[jira] [Assigned] (HIVE-27989) Wrong database name in MetaException from MetastoreDefaultTransformer.java

     [ https://issues.apache.org/jira/browse/HIVE-27989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Butao Zhang reassigned HIVE-27989:
----------------------------------

    Assignee: Butao Zhang

> 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
>            Assignee: Butao Zhang
>            Priority: Minor
>              Labels: pull-request-available
>
> 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)