You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spath: parquet-backed test indices for analytics-engine route (#5441)
`CalcitePPLSpathCommandIT.init()` was creating its four test indices by
raw `PUT /<idx>/_doc/N` requests, which auto-creates the index via the
default Lucene path. The analytics-engine compatibility run
(`-Dtests.analytics.parquet_indices=true`) injects the parquet/composite
settings *inside* `TestUtils.createIndexByRestClient`, so the raw-PUT
indices were Lucene-only and DataFusion failed with
`UnsupportedOperationException: acquireReader is not supported in
EngineBackedIndexer` for every test on the analytics-engine route.
Fix: create the empty index up-front via `createIndexByRestClient(...,
null)` so the toggle has a chance to inject parquet settings, then let
the subsequent doc PUTs populate it via dynamic mapping. No mapping is
declared — DataFusion is fine with dynamic mapping on a parquet-backed
composite index. Same pattern as `CalciteEvalCommandIT` and
`CalciteFieldFormatCommandIT`. No change for the v2 / Calcite path (the
helper is a no-op when the parquet toggle isn't set).
## Pass rate
Pairs with opensearch-project/OpenSearch#21664. Both PRs are required
to move the analytics-engine route off 0 / 16.
| IT | Route | Before | After |
|---|---|---|---|
| `CalcitePPLSpathCommandIT` | analytics-engine (`-Dtests.analytics.force_routing=true -Dtests.analytics.parquet_indices=true`) | 0 / 16 | **16 / 16** |
| `CalcitePPLSpathCommandIT` | default v2 / Calcite (no flags) | 16 / 16 | 16 / 16 (no regression) |
Signed-off-by: Kai Huang <ahkcs@amazon.com>
0 commit comments