Ashish Sharma created HIVE-24214:
------------------------------------

             Summary: Reduce alter_table() function overloading in metastore
                 Key: HIVE-24214
                 URL: https://issues.apache.org/jira/browse/HIVE-24214
             Project: Hive
          Issue Type: Improvement
          Components: Standalone Metastore
            Reporter: Ashish Sharma
            Assignee: Ashish Sharma


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;        






--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to