Skip to content

Commit 68a5561

Browse files
author
Hongdan Zhu
committed
HIVE-28655: Implement HMS Related Drop Stats Changes
1 parent 0e75930 commit 68a5561

File tree

105 files changed

+14093
-5064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+14093
-5064
lines changed

itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java

+16
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,13 @@ public boolean deleteTableColumnStatistics(String catName, String dbName, String
877877
return objectStore.deleteTableColumnStatistics(catName, dbName, tableName, colName, engine);
878878
}
879879

880+
@Override
881+
public boolean deleteTableMultiColumnStatistics(String catName, String dbName, String tableName,
882+
List<String> colNames, String engine)
883+
throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException {
884+
return objectStore.deleteTableMultiColumnStatistics(catName, dbName, tableName, colNames, engine);
885+
}
886+
880887
@Override
881888
public boolean deletePartitionColumnStatistics(String catName, String dbName, String tableName,
882889
String partName, List<String> partVals, String colName, String engine)
@@ -886,6 +893,15 @@ public boolean deletePartitionColumnStatistics(String catName, String dbName, St
886893
partVals, colName, engine);
887894
}
888895

896+
@Override
897+
public boolean deletePartitionMultiColumnStatistics(String catName, String dbName, String tableName,
898+
String partName, List<String> partVals, List<String> colNames, String engine)
899+
throws NoSuchObjectException, MetaException, InvalidObjectException,
900+
InvalidInputException {
901+
return objectStore.deletePartitionMultiColumnStatistics(catName, dbName, tableName, partName,
902+
partVals, colNames, engine);
903+
}
904+
889905
@Override
890906
public Map<String, String> updateTableColumnStatistics(ColumnStatistics statsObj, String validWriteIds, long writeId)
891907
throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException {

standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp

+2,854-1,848
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h

+318
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,21 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf {
735735
printf("delete_partition_column_statistics\n");
736736
}
737737

738+
bool delete_partition_column_statistics_req(const DeletePartitionColumnStatisticsRequest& req) {
739+
// Your implementation goes here
740+
printf("delete_partition_column_statistics_req\n");
741+
}
742+
738743
bool delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name, const std::string& engine) {
739744
// Your implementation goes here
740745
printf("delete_table_column_statistics\n");
741746
}
742747

748+
bool delete_table_column_statistics_req(const DeleteTableColumnStatisticsRequest& req) {
749+
// Your implementation goes here
750+
printf("delete_table_column_statistics_req\n");
751+
}
752+
743753
void create_function(const Function& func) {
744754
// Your implementation goes here
745755
printf("create_function\n");

0 commit comments

Comments
 (0)