// Inspired by bug 869396
public void testIndexScanUnderMapNestedLoopsUsedAsInnerLoopOfAnotherMapNestedLoops()
{
RowType cidValueRowType = schema.newValuesType(MNumeric.INT.instance(true));
List<ExpressionGenerator> expressions = Arrays.asList(boundField(cidValueRowType, 1, 0));
IndexBound cidBound =
new IndexBound(
new RowBasedUnboundExpressions(customerCidIndexRowType, expressions, true),
new SetColumnSelector(0));
IndexKeyRange cidRange = IndexKeyRange.bounded(customerCidIndexRowType, cidBound, true, cidBound, true);
Operator plan =
map_NestedLoops(