[
https://issues.apache.org/jira/browse/HIVE-26717?focusedWorklogId=839374&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-839374
]
ASF GitHub Bot logged work on HIVE-26717:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Jan/23 11:23
Start Date: 16/Jan/23 11:23
Worklog Time Spent: 10m
Work Description: veghlaci05 commented on code in PR #3935:
URL: https://github.com/apache/hive/pull/3935#discussion_r1071130360
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorFactory.java:
##########
@@ -99,10 +99,12 @@ public Compactor getCompactor(Table table, HiveConf
configuration, CompactionInf
case MINOR:
return new MmMinorQueryCompactor();
case MAJOR:
+ case REBALANCE:
+ // REBALANCE COMPACTION on an insert-only table is simply a MAJOR
compaction. Since there is no ACID row data,
+ // there is no acid row order to keep, and the number of buckets
cannot be set at all (it will be calculated
+ // and created by TEZ dynamically). Initiator won't schedule
REBALANCE compactions for insert-only tables,
+ // however users can request it. In these cases we simply fall back
to MAJOR compaction
return new MmMajorQueryCompactor();
- default:
Review Comment:
In that case the execution will jump to the last line of the method and
throw an exception. However now I realized that the message needs to be
actualized.
Issue Time Tracking
-------------------
Worklog Id: (was: 839374)
Time Spent: 1h 10m (was: 1h)
> Query based Rebalance compaction on insert-only tables
> ------------------------------------------------------
>
> Key: HIVE-26717
> URL: https://issues.apache.org/jira/browse/HIVE-26717
> Project: Hive
> Issue Type: Sub-task
> Components: Hive
> Reporter: László Végh
> Assignee: László Végh
> Priority: Major
> Labels: ACID, compaction, pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)