.row("b", "C1", 2, 1, "D", false, "")
.row("a", "C2", 3, 2, "D", true, "")
.row("c", "A3", 1, 1, "D", true, "")
.build();
WindowOperatorFactory operatorFactory = new WindowOperatorFactory(
0,
ImmutableList.of(VARCHAR, VARCHAR, BIGINT, BIGINT, VARCHAR, BOOLEAN, VARCHAR),
Ints.asList(0, 1, 2, 5),
LEAD,
Ints.asList(0),
Ints.asList(2),
ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
100);
Operator operator = operatorFactory.createOperator(driverContext);
MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
.row("a", "A2", 1, false, "C2")
.row("a", "B1", 2, true, "D")
.row("a", "C2", 3, true, "D")