public boolean isRebalanceRequested() {
    String compactionType = getTable() != null
        ? table.getParameters().get(COMPACTOR_TABLE_PROPERTY)
        : getTableInfo().getProperties().getProperty(COMPACTOR_TABLE_PROPERTY);
    return StringUtils.isNotBlank(compactionType) &&
        CompactionType.valueOf(compactionType).equals(CompactionType.REBALANCE);
  }
@return true if the compaction type is 'REBALANCE', false otherwise.
ql/src/java/org/apache/hadoop/hive/ql/plan/FileSinkDesc.java