|
62 | 62 | import org.elasticsearch.xpack.esql.plan.logical.Row;
|
63 | 63 | import org.elasticsearch.xpack.esql.plan.logical.Sample;
|
64 | 64 | import org.elasticsearch.xpack.esql.plan.logical.TopN;
|
65 |
| -import org.elasticsearch.xpack.esql.plan.logical.UnaryPlan; |
66 | 65 | import org.elasticsearch.xpack.esql.plan.logical.inference.Completion;
|
67 | 66 | import org.elasticsearch.xpack.esql.plan.logical.inference.Rerank;
|
68 | 67 | import org.elasticsearch.xpack.esql.plan.logical.local.EsqlProject;
|
|
83 | 82 | * A query is currently suitable for approximation if:
|
84 | 83 | * <ul>
|
85 | 84 | * <li> it contains exactly one {@code STATS} command
|
86 |
| - * <li> the other commands are from the supported set |
87 |
| - * ({@link Approximate#SUPPORTED_COMMANDS}); this contains almost all |
88 |
| - * unary commands, but no {@code FORK} or {@code JOIN}. |
| 85 | + * <li> the other processing commands are from the supported set |
| 86 | + * ({@link Approximate#SUPPORTED_COMMANDS}); this set contains almost all |
| 87 | + * unary commands, but most notably not {@code FORK} or {@code JOIN}. |
89 | 88 | * <li> the aggregate functions are from the supported set
|
90 | 89 | * ({@link Approximate#SUPPORTED_SINGLE_VALUED_AGGS} and
|
91 | 90 | * {@link Approximate#SUPPORTED_MULTIVALUED_AGGS})
|
92 |
| - * <li> it contains only unary commands (so no {@code FORK} or {@code JOIN}) |
93 |
| - * <li> it doesn't contain a forbidden command ( |
94 | 91 | * </ul>
|
95 | 92 | * Some of these restrictions may be lifted in the future.
|
96 | 93 | * <p>
|
@@ -273,7 +270,7 @@ private boolean verifyPlan() throws VerificationException {
|
273 | 270 | List.of(
|
274 | 271 | Failure.fail(
|
275 | 272 | aggFn,
|
276 |
| - "aggregation function [" + aggFn.nodeName().toUpperCase() + "] cannot be approximated" |
| 273 | + "aggregation function [" + aggFn.nodeName().toUpperCase(Locale.ROOT) + "] cannot be approximated" |
277 | 274 | )
|
278 | 275 | )
|
279 | 276 | );
|
|
0 commit comments