CompactionQueryBuilder setBucketed(boolean bucketed) {
    if (CompactionType.REBALANCE.equals(compactionType) && bucketed) {
      throw new IllegalArgumentException("Rebalance compaction is supported only on implicitly-bucketed tables!");
    }
    isBucketed = bucketed;
    return this;
  }
If true, Create operations for CRUD minor compaction will result in a bucketed table.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilder.java