@Override
  protected void getSourceForInsert(StringBuilder query) {
    super.getSourceForInsert(query);
    if (CompactionType.MAJOR.equals(compactionType) && StringUtils.isNotBlank(orderByClause)) {
      query.append(orderByClause);
    }
  }
Construct a CompactionQueryBuilderForInsertOnly with required params.

@param compactionType major or minor or rebalance, e.g. CompactionType.MAJOR.
                      Cannot be null.
                      Rebalance compaction is not supported for insert-only tables.
@throws IllegalArgumentException if compactionType is null or the compaction type is REBALANCE
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilderForInsertOnly.java