List<Operator> opsList = new ArrayList<Operator>();
while(opsIterator.hasNext()) {
opsList.add(opsIterator.next());
}
if(opsList.size() != 1 || !(opsList.get(0) instanceof ProjectExpression)) {
throw new FrontendException("Unsupported operator in inner plan: " + opsList.get(0), 2237);
}
ProjectExpression project = (ProjectExpression) opsList.get(0);
int sortColIndex = project.getColNum();
String sortColName = (schema == null) ? null :
schema.getField(sortColIndex).alias;