Commit 8ee2fc4
committed
Stabilize subquery PPL ITs on the analytics-engine route
CalcitePPLScalarSubqueryIT and CalcitePPLInSubqueryIT both seed an extra
worker doc via an unconditional raw PUT in init(). init() runs as @before
before every test method, and the analytics-engine parquet-backed store is
append-only on same-_id PUT, so the doc accumulated a duplicate per method
and inflated row counts across the suite. Guard the seed on a pre-loadIndex
isIndexExist check so it runs exactly once; behavior is unchanged on the
v2/Calcite route (same end state).
Gate the four tests that exercise behaviors the analytics-engine route does
not support with assumeFalse(isAnalyticsParquetIndicesEnabled()):
- exact equality on a text-mapped field (department/occupation = '...'),
which returns no rows on DataFusion (text has no keyword subfield)
- the subsearch.maxout LIMIT inside an IN-subquery semi-join, which the
route does not honor
Results (-Dtests.analytics.parquet_indices=true against the analytics route):
CalcitePPLScalarSubqueryIT: 2/14 -> 13/14 pass, 1 skip, 0 fail
CalcitePPLInSubqueryIT: 7/18 -> 14/18 pass, 4 skip, 0 fail
v2/Calcite route unchanged: 14/14 and 17/17 (1 pre-existing @ignore).
Signed-off-by: Kai Huang <ahkcs@amazon.com>1 parent 9663d5f commit 8ee2fc4
2 files changed
Lines changed: 48 additions & 12 deletions
File tree
- integ-test/src/test/java/org/opensearch/sql/calcite/remote
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
343 | 356 | | |
344 | 357 | | |
345 | 358 | | |
| |||
358 | 371 | | |
359 | 372 | | |
360 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
361 | 379 | | |
362 | 380 | | |
363 | 381 | | |
| |||
372 | 390 | | |
373 | 391 | | |
374 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
375 | 398 | | |
376 | 399 | | |
377 | 400 | | |
| |||
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
230 | 238 | | |
231 | 239 | | |
232 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
233 | 246 | | |
234 | 247 | | |
235 | 248 | | |
| |||
0 commit comments