Package org.apache.iceberg.hive
Class MetastoreUtil
java.lang.Object
org.apache.iceberg.hive.MetastoreUtil
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidalterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client, String databaseName, String tblName, org.apache.hadoop.hive.metastore.api.Table table) Calls alter_table method using the metastore client.static voidalterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client, String databaseName, String tblName, org.apache.hadoop.hive.metastore.api.Table table, Map<String, String> extraEnv) Calls alter_table method using the metastore client.
- 
Method Details- 
alterTablepublic static void alterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client, String databaseName, String tblName, org.apache.hadoop.hive.metastore.api.Table table) throws org.apache.thrift.TException Calls alter_table method using the metastore client. If the HMS supports it, environmental context will be set in a way that turns off stats updates to avoid recursive file listing.- Throws:
- org.apache.thrift.TException
 
- 
alterTablepublic static void alterTable(org.apache.hadoop.hive.metastore.IMetaStoreClient client, String databaseName, String tblName, org.apache.hadoop.hive.metastore.api.Table table, Map<String, String> extraEnv) throws org.apache.thrift.TExceptionCalls alter_table method using the metastore client. If the HMS supports it, environmental context will be set in a way that turns off stats updates to avoid recursive file listing.- Throws:
- org.apache.thrift.TException
 
 
-