[META][TEST] Improve PPL coverage for data streams and OpenTelemetry datasets

Open
#5,806 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement PPL testing

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opensearch-project/sql

All issues in opensearch-project/sql

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.