orderRowType,
itemRowType,
JoinType.INNER_JOIN);
RowType oiType = flattenOI.rowType();
// flattenOI columns: oid, cid, salesman, iid, oid
ExpressionGenerator cidField = field(oiType, 1);
ExpressionGenerator oidField = field(oiType, 0);
ExpressionGenerator iidField = field(oiType, 3);
Operator plan =
sort_InsertionLimited(
filter_Default(
flattenOI,
Collections.singleton(oiType)),