difin commented on code in PR #4855:
URL: https://github.com/apache/hive/pull/4855#discussion_r1386932600
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorFactory.java:
##########
@@ -108,6 +110,23 @@ public CompactorPipeline getCompactorPipeline(Table table,
HiveConf configuratio
throw new HiveException(
compactionInfo.type.name() + " compaction is not supported on
insert only tables.");
}
+ } else if (DDLUtils.isIcebergTable(table)) {
+ switch (compactionInfo.type) {
+ case MAJOR:
+
+ try {
+ Class<? extends QueryCompactor> inputFormatClass = (Class<?
extends QueryCompactor>)
+
Class.forName("org.apache.iceberg.mr.hive.compaction.IcebergMajorCompaction",
true, Utilities.getSessionSpecifiedClassLoader());
Review Comment:
I agree. Done.
--
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]