opensearch-project / opensearch-project/sql

(Calcite PPL) `timechart` dynamic column improvement

Open
#4,308 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

calcite PPL
Dominant language
Java
Stars
176
Forks
229
Avg merge
2d 21h
Merged PRs (30d)
43

Description

Improve the timechart command to produce pivoted data to allow following command to process the data.
Current implementation does pivot at formatter level after query execution completes.

Example query:

source=logs
| timechart span=1h count() by status limit=3

Contributor guide

Open the contributing guide

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.

Research direction

Start with the Calcite PPL timechart implementation and the formatter-level pivot path described in the issue. Trace the example query with span=1h, count(), by status, and limit=3. Done means pivoted data is produced before query execution completes so a following command can process it.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.