Skip to content

Commit

Permalink
HIVE-28655: Implement HMS Related Drop Stats Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongdan Zhu committed Jan 14, 2025
1 parent 0e75930 commit 9ff54ca
Show file tree
Hide file tree
Showing 105 changed files with 14,356 additions and 4,966 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,13 @@ public boolean deleteTableColumnStatistics(String catName, String dbName, String
return objectStore.deleteTableColumnStatistics(catName, dbName, tableName, colName, engine);
}

@Override
public boolean deleteTableMultiColumnStatistics(String catName, String dbName, String tableName,
List<String> colNames, String engine)
throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException {
return objectStore.deleteTableMultiColumnStatistics(catName, dbName, tableName, colNames, engine);
}

@Override
public boolean deletePartitionColumnStatistics(String catName, String dbName, String tableName,
String partName, List<String> partVals, String colName, String engine)
Expand All @@ -886,6 +893,15 @@ public boolean deletePartitionColumnStatistics(String catName, String dbName, St
partVals, colName, engine);
}

@Override
public boolean deletePartitionMultiColumnStatistics(String catName, String dbName, String tableName,
String partName, List<String> partVals, List<String> colNames, String engine)
throws NoSuchObjectException, MetaException, InvalidObjectException,
InvalidInputException {
return objectStore.deletePartitionMultiColumnStatistics(catName, dbName, tableName, partName,
partVals, colNames, engine);
}

@Override
public Map<String, String> updateTableColumnStatistics(ColumnStatistics statsObj, String validWriteIds, long writeId)
throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException {
Expand Down
4,702 changes: 2,854 additions & 1,848 deletions standalone-metastore/metastore-common/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,21 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf {
printf("delete_partition_column_statistics\n");
}

bool delete_partition_column_statistics_req(const DeletePartitionColumnStatisticsRequest& req) {
// Your implementation goes here
printf("delete_partition_column_statistics_req\n");
}

bool delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name, const std::string& engine) {
// Your implementation goes here
printf("delete_table_column_statistics\n");
}

bool delete_table_column_statistics_req(const DeleteTableColumnStatisticsRequest& req) {
// Your implementation goes here
printf("delete_table_column_statistics_req\n");
}

void create_function(const Function& func) {
// Your implementation goes here
printf("create_function\n");
Expand Down
Loading

0 comments on commit 9ff54ca

Please sign in to comment.