}
buff.append(on.getSQL(isDistributed));
if (orderList != null) {
buff.append(" ORDER BY ");
for (SelectOrderBy o : orderList) {
buff.appendExceptFirst(", ");
buff.append(o.expression.getSQL(isDistributed));
if (o.descending) {
buff.append(" DESC");
}
}