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

Wrong database name in MetaException from MetastoreDefaultTransformer.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0
    • None

    Description

      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

                "Database " + oldTable.getTableName() + " for table " + oldTable.getTableName() + " could not be found"); 

      https://github.com/apache/hive/blob/24fffdc508f9402ad7145b59b50de738b27c92b4/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetastoreDefaultTransformer.java#L898

            throw new MetaException("Database " + table.getTableName() + " for table " + table.getTableName() + " could not be found"); 

      This is revealed through IMPALA-12655.

      Attachments

        Issue Links

          Activity

            People

              zhangbutao Butao Zhang
              rizaon Riza Suminto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: