.pageBreak()
.row("b", 5, 0.4, false)
.row("a", 6, 0.1, true)
.build();
WindowOperatorFactory operatorFactory = new WindowOperatorFactory(
0,
ImmutableList.of(VARCHAR, BIGINT, DOUBLE, BOOLEAN),
Ints.asList(0, 1, 2, 3),
ROW_NUMBER,
Ints.asList(0),
Ints.asList(1),
ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
10);
Operator operator = operatorFactory.createOperator(driverContext);
MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, BIGINT, DOUBLE, BOOLEAN, BIGINT)
.row("a", 2, 0.3, false, 1)
.row("a", 4, 0.2, true, 2)
.row("a", 6, 0.1, true, 3)