@SuppressWarnings("unchecked") private SubplanPattern createSubplanPattern() { final OperatorPattern groupByPattern = new OperatorPattern( "groupBy", new GroupByOperator<>( null, DataSetType.none(), DataSetType.groupedNone() ), false); final OperatorPattern reducePattern = new OperatorPattern( "reduce", ReduceOperator.createGroupedReduce( null, DataSetType.groupedNone(), DataSetType.none() ), false); groupByPattern.connectTo(0, reducePattern, 0); return SubplanPattern.fromOperatorPatterns(groupByPattern, reducePattern); }