Skip to content

Conversation

@yuancu
Copy link
Collaborator

@yuancu yuancu commented Oct 16, 2025

Description

The chart command returns an aggregation result in a two-dimension table format.

TODOs:

  • support span
  • support limit, limit=top x, limit=bottom x
  • support useother, otherstr
  • correct limit behavior with non-accumulative aggregation functions (min, max, avg, etc) // fixed in Fix timechart OTHER category aggregation for non-cumulative functions #4594
  • support usenull, nullstr
  • support non-string fields as column split
  • add integration tests
  • support multiple aggregation functions
  • add explain tests
  • add a doc
  • unify implementation of timechart and chart
  • Add a brief walk-through of the implementation

Related Issues

Resolves #399

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

yuancu added 15 commits October 24, 2025 14:10
Signed-off-by: Yuanchun Shen <[email protected]>

# Conflicts:
#	core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java
#	integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteExplainIT.java
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC] PPL Chart Command

1 participant