[META][TEST] Improve PPL coverage for data streams and OpenTelemetry datasets
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- databases, search, testing-qa
Research direction
Start by locating the existing PPL integration fixtures and unit tests for mapping parsing, schema merging, index resolution, input ordering, immutability, and error handling. Use #5790 as the first regression case, then add rollover-based OTEL Logs and OTEL Traces coverage; done means CI exercises data-stream and wildcard queries, schema evolution avoids 500 errors, and merge tests cover both input orders without mutating inputs.
Written by the indexing model from the issue text.
Description
Problem statement
PPL tests rely primarily on static, single-index fixtures. This does not fully represent common observability workloads, where OpenTelemetry logs and traces are stored in data streams spanning multiple backing indices.
Current coverage has several gaps:
- Data-stream coverage is limited to a narrow index-pruning scenario.
- OTEL Logs tests use a regular index and do not cover rollover or schema evolution.
- There is no dedicated OTEL Traces fixture and PPL integration coverage.
- Unit tests do not systematically cover schema resolution across empty, populated, conflicting, and differently ordered mappings.
These gaps allow failures such as #5790 to escape CI: a query can work against each backing index independently but fail when a data stream or wildcard resolves to both.
Scope
- Increase PPL integration tests using real data streams with multiple backing indices.
- Increase OTEL Logs coverage for rollover, wildcard queries, and schema evolution.
- Add OTEL Traces datasets and representative PPL query tests.
- Add tests for fields added, removed, or changed across backing indices.
- Add regression tests for #5790 and similar cross-index failures.
- Increase unit-test coverage for mapping parsing, schema merging, index resolution, input ordering, immutability, and error handling.
Acceptance criteria
- OTEL Logs and OTEL Traces data-stream tests run in CI.
- Each data-stream fixture includes multiple backing indices created through rollover.
- Tests cover queries using both data-stream names and wildcard source expressions.
- Schema-evolution cases produce correct results or stable, documented 4xx errors, never 500 errors.
- Schema-merge unit tests cover both input orders and verify that inputs are not mutated.
Related issues
- #5790 — Cross-index object mapping merge failure.
- #5754 — Command × data-type integration test matrix.
- #5598 — Generated command-combination and pushdown testing.
- #5505 — Command-chain testing using index views.
- #5811 — Composite aggregation pushdown does not support a field whose type differs across indices
- Dominant language
- Java
- Stars
- 176
- Forks
- 237
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from opensearch-project/sql
-
bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opensearch-project/sql#5990 ·
Maintainers usually reply within 1 day
-
bug untriaged
Difficulty 1/5 Under an hour Newbie friendliness 85/100
opensearch-project/sql#5983 ·
Maintainers usually reply within 1 day
-
[BUG] PromQL queries fail with InvalidTypeIdException when metric has a label named "type"Possibly taken @nagendramohan claimed this 107 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
opensearch-project/sql#5684 · 4 comments ·
Maintainers usually reply within 1 day
-
[DOC] Calcite settings documentation missing examplesPossibly taken @AzazelSensei claimed this 64 days ago. Opendocumentation PPL
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
opensearch-project/sql#4806 · 1 comment ·
Maintainers usually reply within 1 day
-
calcite enhancement Meta performance PPL untriaged
Difficulty 5/5 Over a week Newbie friendliness 8/100
opensearch-project/sql#5991 ·
Maintainers usually reply within 1 day
All issues in opensearch-project/sql
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PCL-Community/PCL-CE#3907 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
area/dependencies area/dependencies/quarkus backport/26.6 backport/26.8 kind/cve severity/critical source/scan-dependencies status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
docker-to-squash.py: check_dependencies should find mksquashfs on PATHPossibly taken @linzch3 claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
chore
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
lugassawan/swe-workbench#841 ·