Skip to content

Initial implementation of report-builder interface#5266

Draft
Swiddis wants to merge 7 commits intoopensearch-project:mainfrom
Swiddis:feat/report-builder
Draft

Initial implementation of report-builder interface#5266
Swiddis wants to merge 7 commits intoopensearch-project:mainfrom
Swiddis:feat/report-builder

Conversation

@Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Mar 25, 2026

Description

#5261, #4919

Example bad query:

source = big5
| eval range_bucket = case(
   `metrics.size` < -10, 'range_1',
   `metrics.size` >= -10 and `metrics.size` < 10, 'range_2',
   `metrics.size` >= 10 and `metrics.size` < 100, 'range_3',
   `metrics.size` >= 100 and `metrics.size` < 1000, 'range_4',
   `metrics.size` >= 1000 and `metrics.size` < 2000, 'range_5',
   `metrics.size` >= 2000, 'range_6')
| stats count() by range_bucket, span(`@timestamp`, 1h) as auto_span
| sort + range_bucket, + auto_spa

Enriched error:

{
  "error": {
    "context": {
      "stage": "analyzing",
      "stage_description": "Validating the query"
    },
    "details": "Field [auto_spa] not found.",
    "location": [
      "checking if fields and indices exist"
    ],
    "code": "FIELD_NOT_FOUND",
    "type": "IllegalArgumentException"
  },
  "status": 400
}

Related Issues

^

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.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

@Swiddis Swiddis added the enhancement New feature or request label Mar 25, 2026
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis force-pushed the feat/report-builder branch from c1c2355 to 23c5fbb Compare March 25, 2026 23:45
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant