Commit 80b4b95
authored
Reject unsupported last_over_time during verification (#136517)
This change updates the validation to reject time-series aggregations
that cannot be executed. Specifically, if FN(field) is rewritten to
FN(last_over_time(field)), and we don't support last_over_time(field),
we should throw an error during planning rather than at runtime.
Closes #1362701 parent 47c5150 commit 80b4b95
File tree
3 files changed
+22
-19
lines changed- x-pack/plugin/esql
- qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/generative
- src
- main/java/org/elasticsearch/xpack/esql/plan/logical
- test/java/org/elasticsearch/xpack/esql/analysis
3 files changed
+22
-19
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
206 | | - | |
207 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
219 | | - | |
| 224 | + | |
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
2699 | | - | |
2700 | | - | |
2701 | | - | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
2705 | | - | |
| 2705 | + | |
2706 | 2706 | | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
2710 | 2710 | | |
2711 | 2711 | | |
2712 | 2712 | | |
| |||
0 commit comments