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

Reduce alter_table() function overloading in metastore

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Standalone Metastore
    • Labels:
      None

      Description

      Reduce following overloading method to less number of methods

      void alter_table(String catName, String dbName, String tblName, Table newTable,
      EnvironmentContext envContext)
      throws InvalidOperationException, MetaException, TException;

      default void alter_table(String catName, String dbName, String tblName, Table newTable)
      throws InvalidOperationException, MetaException, TException

      { alter_table(catName, dbName, tblName, newTable, null); }

      @Deprecated
      void alter_table(String defaultDatabaseName, String tblName, Table table,
      boolean cascade) throws InvalidOperationException, MetaException, TException;

      @Deprecated
      void alter_table_with_environmentContext(String databaseName, String tblName, Table table,
      EnvironmentContext environmentContext) throws InvalidOperationException, MetaException,
      TException;

      void alter_table(String catName, String databaseName, String tblName, Table table,
      EnvironmentContext environmentContext, String validWriteIdList)
      throws InvalidOperationException, MetaException, TException;

        Attachments

          Activity

            People

            • Assignee:
              ashish-kumar-sharma Ashish Sharma
              Reporter:
              ashish-kumar-sharma Ashish Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: