public static List<String> getPurgeQueries(PurgeableHivePartitionDataset dataset) {
    List<String> queries = new ArrayList<>();
    queries.add(getUseDbQuery(dataset.getStagingDb()));
    queries.add(getInsertQuery(dataset));
    return queries;
  }
public static List < String > getPurgeQueries ( PurgeableHivePartitionDataset dataset ) { List < String > queries = new ArrayList < > ( ) ; queries . add ( getUseDbQuery ( dataset . getStagingDb ( ) ) ) ; queries . add ( getInsertQuery ( dataset ) ) ; return queries ; }
Will return all the queries needed to populate the staging table partition.
This won't include alter table partition location query.