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

Reinstate and deprecate IMetaStoreClient methods removed in HIVE-675

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • Metastore
    • None

    Description

      Several methods were removed from the IMetaStoreClient interface as part of HIVE-675:

        /**
         * Drop the table.
         *
         * @param tableName
         *          The table to drop
         * @param deleteData
         *          Should we delete the underlying data
         * @throws MetaException
         *           Could not drop table properly.
         * @throws UnknownTableException
         *           The table wasn't found.
         * @throws TException
         *           A thrift communication error occurred
         * @throws NoSuchObjectException
         *           The table wasn't found.
         */
        public void dropTable(String tableName, boolean deleteData)
            throws MetaException, UnknownTableException, TException,
            NoSuchObjectException;
      
        /**
         * Get a table object.
         *
         * @param tableName
         *          Name of the table to fetch.
         * @return An object representing the table.
         * @throws MetaException
         *           Could not fetch the table
         * @throws TException
         *           A thrift communication error occurred
         * @throws NoSuchObjectException
         *           In case the table wasn't found.
         */
        public Table getTable(String tableName) throws MetaException, TException,
            NoSuchObjectException;
      
        public boolean tableExists(String databaseName, String tableName) throws MetaException,
            TException, UnknownDBException;
      
      

      These methods should be reinstated with a deprecation warning.

      Attachments

        1. HIVE-1607.2.patch.txt
          8 kB
          Carl Steinbach
        2. HIVE-1607.1.patch.txt
          8 kB
          Carl Steinbach

        Issue Links

          Activity

            People

              cwsteinbach Carl Steinbach
              cwsteinbach Carl Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: