Commit 9aad427
authored
Bring CalciteWhereCommandIT to parity on the analytics-engine route (opensearch-project#5546)
* Bring CalciteWhereCommandIT to parity on the analytics-engine route
Branch the tests that exercise analytics-route-incompatible behavior behind
isAnalyticsParquetIndicesEnabled():
- 6 nested-field tests (in the Calcite subclass): nested fields are stripped on
the parquet/composite route, which has no nested-document support.
- 2 _id metadata-field tests: the analytics route doesn't expose the _id
metadata field.
- testDoubleEqualWithSpecialCharacters: email is dynamically mapped to a text
field without a .keyword sub-field on the parquet route (the composite
dataformat's dynamic mapping omits the keyword sub-field standard OpenSearch
adds), so exact equality on the analyzed text field returns no rows on the
DataFusion scan. firstname (explicit text+keyword) still exercises == there.
Analytics-engine route: 9 failing -> 0 (32 pass, 9 documented skips).
v2 route: 41/41 pass.
Signed-off-by: Kai Huang <ahkcs@amazon.com>
* Centralize analytics-route skip reasons in AnalyticsRouteLimitation enum
Replace per-test assumeFalse(reason, isAnalyticsParquetIndicesEnabled())
calls with assumeNotAnalytics(LIMITATION), backed by a single
AnalyticsRouteLimitation enum that holds every known analytics-engine
route divergence and its skip reason.
This gives one greppable registry of route gaps (addressing review
feedback to make the skips trackable in one place) and removes the
PUT+DELETE skip reason that was copy-pasted across four IT classes.
Signed-off-by: Kai Huang <ahkcs@amazon.com>
* Track CalciteWhereCommandIT AE-route skips in the gradle exclude list
Add the 9 analytics-route skips from this PR to the analyticsEnabled
excludeTestsMatching block in integ-test/build.gradle, following the
opensearch-project#5527 / opensearch-project#5541 precedent, so the full set of tests skipped on the
analytics-engine route is countable in one place.
These complement the in-test assumeNotAnalytics(...) calls (which record
the per-test reason via AnalyticsRouteLimitation); the gradle list is the
single tracking surface for how many tests the route skips.
Signed-off-by: Kai Huang <ahkcs@amazon.com>
---------
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent 87c0a13 commit 9aad427
9 files changed
Lines changed: 127 additions & 44 deletions
File tree
- integ-test
- src/test/java/org/opensearch/sql
- calcite/remote
- ppl
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1085 | 1105 | | |
1086 | 1106 | | |
1087 | 1107 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 299 | + | |
303 | 300 | | |
304 | 301 | | |
305 | 302 | | |
| |||
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
| 329 | + | |
336 | 330 | | |
337 | 331 | | |
338 | 332 | | |
| |||
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 511 | + | |
515 | 512 | | |
516 | 513 | | |
517 | 514 | | |
| |||
671 | 668 | | |
672 | 669 | | |
673 | 670 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
| 671 | + | |
678 | 672 | | |
679 | 673 | | |
680 | 674 | | |
| |||
943 | 937 | | |
944 | 938 | | |
945 | 939 | | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
| 940 | + | |
950 | 941 | | |
951 | 942 | | |
952 | 943 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
| 1569 | + | |
1573 | 1570 | | |
1574 | 1571 | | |
1575 | 1572 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
Lines changed: 5 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
| 1057 | + | |
1061 | 1058 | | |
1062 | 1059 | | |
1063 | 1060 | | |
| |||
1146 | 1143 | | |
1147 | 1144 | | |
1148 | 1145 | | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
| 1146 | + | |
1153 | 1147 | | |
1154 | 1148 | | |
1155 | 1149 | | |
| |||
1198 | 1192 | | |
1199 | 1193 | | |
1200 | 1194 | | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
| 1195 | + | |
1205 | 1196 | | |
1206 | 1197 | | |
1207 | 1198 | | |
| |||
1250 | 1241 | | |
1251 | 1242 | | |
1252 | 1243 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
| 1244 | + | |
1257 | 1245 | | |
1258 | 1246 | | |
1259 | 1247 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
| 230 | + | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| |||
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| 538 | + | |
534 | 539 | | |
535 | 540 | | |
536 | 541 | | |
| |||
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments