use of org.apache.drill.exec.physical.config.ExternalSort in project drill by apache.
the class TestSortEmitOutcome method defineOrdering.
@BeforeClass
public static void defineOrdering() {
String columnToSort = inputSchema.column(0).getName();
FieldReference expr = FieldReference.getWithQuotedRef(columnToSort);
Order.Ordering ordering = new Order.Ordering(Order.Ordering.ORDER_ASC, expr, Order.Ordering.NULLS_FIRST);
sortPopConfig = new ExternalSort(null, Lists.newArrayList(ordering), false);
}
use of org.apache.drill.exec.physical.config.ExternalSort in project drill by apache.
the class SortPrel method getPhysicalOperator.
@Override
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException {
Prel child = (Prel) this.getInput();
PhysicalOperator childPOP = child.getPhysicalOperator(creator);
org.apache.drill.exec.physical.config.Sort g = new ExternalSort(childPOP, PrelUtil.getOrdering(this.collation, getInput().getRowType()), false);
return creator.addMetadata(this, g);
}
Aggregations