Skip to content

top and head: allow limit keywords#4249

Closed
Swiddis wants to merge 15 commits intoopensearch-project:mainfrom
Swiddis:feature/headtop-limit
Closed

top and head: allow limit keywords#4249
Swiddis wants to merge 15 commits intoopensearch-project:mainfrom
Swiddis:feature/headtop-limit

Conversation

@Swiddis
Copy link
Copy Markdown
Collaborator

@Swiddis Swiddis commented Sep 8, 2025

Description

A small set of improvements:

  • Allows setting limit=N for head and top, similar to what timechart supports. Helps makes queries slightly more readable if storing them somewhere.
  • Adds limit to the available keyword field names (wasn't added by timechart).
  • Broke out AstPlanningTest to help split up AstBuilderTest, since that class is pretty large/unwieldy.

Related Issues

N/A

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>
Copy link
Copy Markdown
Collaborator

@RyanL1997 RyanL1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change, in generally LGTM.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
ykmr1224
ykmr1224 previously approved these changes Sep 9, 2025
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis force-pushed the feature/headtop-limit branch from 9c80c9f to 824ee95 Compare September 17, 2025 20:08
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
ykmr1224
ykmr1224 previously approved these changes Sep 26, 2025
Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 2 weeks with no activity.

Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 2 weeks with no activity.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 2 weeks with no activity.

@Swiddis
Copy link
Copy Markdown
Collaborator Author

Swiddis commented Dec 5, 2025

Closing since this has stalled multiple times, repeatedly gets merge conflicts, & isn't urgent -- can reopen later if it comes up again

@Swiddis Swiddis closed this Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request stalled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants