opensearch-project / opensearch-project/sql
[FEATURE] Support dynamic columns in PPL
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 176
- Forks
- 229
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 43
Description
Is your feature request related to a problem?
Certain PPL operators naturally require data-driven (dynamic) columns whose names and counts are not known at plan time. It is the blocker to support timechart and spath command
Example — timechart pivot
source=logs
| timechart span=1h count() by status limit=3
Problem: The set of status labels (e.g., ERROR, OK, TIMEOUT) is only known at runtime and can vary by dataset. Producing a wide, pivoted table requires dynamic columns, which are not available under a fixed per-operator schema.
Example — spath with object keys
source=idx
| spath input=doc path=event.tags
Problem: event.tags is a JSON object whose keys differ across documents. The extracted keys are unknown until read, so the output columns are inherently dynamic.
Contributor 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.
Research direction
The issue names PPL support for dynamic columns and gives timechart and spath examples. Start by locating how PPL operators represent and validate output schemas, then trace the planning and execution paths for those operators. Done means the examples can produce runtime-defined columns without requiring a fixed per-operator schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100