DanielZhu58 commented on code in PR #6438:
URL: https://github.com/apache/hive/pull/6438#discussion_r3192653972
##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java:
##########
@@ -1290,6 +1290,21 @@ public enum ConfVars {
"metastore.partition.management.table.pattern", "*",
"Automatic partition management will look for tables using the specified
table pattern"),
+
STATISTICS_MANAGEMENT_TASK_FREQUENCY("metastore.statistics.management.task.frequency",
+ "metastore.statistics.management.task.frequency",
+ 7, TimeUnit.DAYS, "Frequency at which timer task runs to do
automatic statistics management for tables\n" +
+ "with table property 'statistics.auto.deletion'='true'. Statistics
management include 2 configs. \n" +
+ "One is 'statistics.auto.deletion', and the other is
'statistics.retention.period'. \n" +
+ "When 'statistics.auto.deletion'='true' is set, statistics
management will look for tables which their\n " +
+ "column statistics are over the retention period, and then delete
the column stats. \n"),
+ STATISTICS_RETENTION_PERIOD("metastore.statistics.retention.period",
+ "metastore.statistics.retention.period", 365, TimeUnit.DAYS, "The
retention period " +
+ "that we want to keep the stats for each table, which means if the
stats are older than this period\n" +
+ "of time, the stats will be automatically deleted. \n"),
+
+ STATISTICS_AUTO_DELETION("statistics.auto.deletion",
"statistics.auto.deletion", true,
+ "Whether table/partition column statistics will be auto deleted
after retention period"),
Review Comment:
Acknowledged and changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]