(List<Projection> projections, @Nullable Projection projection)
| 136 | } |
| 137 | |
| 138 | private static List<Projection> addProjection(List<Projection> projections, @Nullable Projection projection) { |
| 139 | if (projection == null) { |
| 140 | return projections; |
| 141 | } |
| 142 | if (projections.isEmpty()) { |
| 143 | return Collections.singletonList(projection); |
| 144 | } else { |
| 145 | projections.add(projection); |
| 146 | return projections; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | public static ExecutionPlan ensureOnHandler(ExecutionPlan subExecutionPlan, PlannerContext plannerContext) { |
| 151 | return ensureOnHandler(subExecutionPlan, plannerContext, Collections.emptyList()); |
no test coverage detected