private List<String> getCompactionQueries(String tmpTableBase, Table table, ValidWriteIdList validWriteIdList) {
    List<String> queries = new ArrayList<>();
    String sourceTableName = AcidUtils.DELTA_PREFIX + tmpTableBase;
    String resultTableName = sourceTableName + "_result";
    queries.add(buildCompactionQuery(sourceTableName, resultTableName, table, validWriteIdList));
    String sourceDeleteTableName = AcidUtils.DELETE_DELTA_PREFIX + tmpTableBase;
    String resultDeleteTableName = sourceDeleteTableName + "_result";
    queries.add(buildCompactionQuery(sourceDeleteTableName, resultDeleteTableName, table, validWriteIdList));
    return queries;
  }
Get a list of compaction queries which fills up the delta/delete-delta temporary result tables.
@param tmpTableBase an unique identifier, which helps to find all the temporary tables
@param table
@param validWriteIdList list of valid write IDs. This list is used to filter out aborted/open
                        transactions
@return list of compaction queries, always non-null
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MinorQueryCompactor.java