veghlaci05 commented on code in PR #3746:
URL: https://github.com/apache/hive/pull/3746#discussion_r1026560259


##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilder.java:
##########
@@ -180,6 +188,9 @@ CompactionQueryBuilder setPartitioned(boolean partitioned) {
    * If true, Create operations for CRUD minor compaction will result in a 
bucketed table.
    */
   CompactionQueryBuilder setBucketed(boolean bucketed) {
+    if(rebalance && bucketed) {
+      throw new IllegalArgumentException("Rebalance compaction is supported 
only on non-bucketed tables!");

Review Comment:
   The variable name is fine I think, it means if the table is explicitly 
bucketed or not. I added the check because rebalance compaction is not allowed 
for explicitly bucketed table. I changed the message to contain both words. :)



-- 
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]

Reply via email to