builder.setTupleReducer(new IdentityTupleReducer());
builder.setGroupByFields(SploutSQLOutputFormat.PARTITION_TUPLE_FIELD);
builder.setOutput(new Path(OUTPUT), OutputFormatFactory.getOutputFormat(engine, 10000, new TableSpec[] { table1 }),
ITuple.class, NullWritable.class);
Job job = builder.createJob();
try {
job.waitForCompletion(true);
} finally {
builder.cleanUpInstanceFiles();
}