Add include_metadata request parameter for PPL queries #5235 - #5412
Add include_metadata request parameter for PPL queries #5235#5412ishag4 wants to merge 4 commits into
Conversation
…ject#5235 Signed-off-by: Isha Gupta <igupta24@apple.com>
PR Reviewer Guide 🔍(Review updated until commit 282b487)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 282b487 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit b718cb6
Suggestions up to commit 7194590
Suggestions up to commit 4f001a6
Suggestions up to commit c007980
Suggestions up to commit 05e612c
|
|
Hi @LantaoJin @penghuo @RyanL1997 @Swiddis Could you please review? |
LantaoJin
left a comment
There was a problem hiding this comment.
Please add integration tests for this enhancement and update documentation (add a new section in endpoint.md
Signed-off-by: Isha Gupta <igupta24@apple.com>
|
Persistent review updated to latest commit b79855b |
|
Hi @LantaoJin @penghuo @RyanL1997 @Swiddis Could you please re-review? |
Swiddis
left a comment
There was a problem hiding this comment.
One issue, a few suggestions & polish
|
Persistent review updated to latest commit 8b3962e |
|
Persistent review updated to latest commit 05e612c |
|
Persistent review updated to latest commit c007980 |
|
Hi @Swiddis @LantaoJin @penghuo, could you please re-review? A few pipelines were failing, and I’ve pushed the necessary fixes. The workflows are now awaiting approval. |
Signed-off-by: Isha Gupta <igupta24@apple.com>
|
Persistent review updated to latest commit 7194590 |
|
Persistent review updated to latest commit b718cb6 |
|
@ishag4 please check failing CIs |
Signed-off-by: Isha Gupta <igupta24@apple.com>
|
Persistent review updated to latest commit 282b487 |
|
Hi @mengweieric Can you please re-trigger the CIs? |
|
Hi @mengweieric @Swiddis @LantaoJin @penghuo Could you please review and approve this PR? |
Description
Add a request-level parameter include_metadata to the PPL query API:
POST /_plugins/_ppl?include_metadata=true
{
"query": "source=logs | where level='ERROR' | fields * | head 10"
}
Result: All regular fields PLUS metadata fields (_id, _index, _score, etc.)
Related Issues
Resolves #5235
Check List
--signoffor-s.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.