Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ protected Table createTable(Hive hive, Database db) throws HiveException {
ICEBERG_STORAGE_HANDLER);
table.setProperty("table_type", "ICEBERG");
table.setProperty("write.format.default", "orc");
// set the default max snapshot age to 1 day for query history
// this is applied only during table creation, it can be manually altered afterward.
table.setProperty("history.expire.max-snapshot-age-ms", Integer.toString(24 * 60 * 60 * 1000));
table.setProperty(hive_metastoreConstants.META_TABLE_NAME, QUERY_HISTORY_DB_TABLE_NAME);

table.setFields(schema.getFields());
Expand Down
Loading