-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discover] fix PPL to not throw error if aggregation query fails #8992
Conversation
Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8992 +/- ##
=======================================
Coverage 60.88% 60.89%
=======================================
Files 3802 3803 +1
Lines 91083 91106 +23
Branches 14383 14388 +5
=======================================
+ Hits 55455 55476 +21
Misses 32086 32086
- Partials 3542 3544 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Thanks for the search strategy unit tests as well.
Changelog workflow failing because it's under the wrong section in the description.
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Signed-off-by: Joshua Li <[email protected]> (cherry picked from commit d5e0087) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…) (#8998) (cherry picked from commit d5e0087) Signed-off-by: Joshua Li <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
The previous PR #8743 added
handleFacetError
if date_histogram aggregation failed, because otherwise the code will process the response as data, and callingrawAggs.data.datarows
caused NPE.The problem is that some PPL queries will not have a date_histogram, for example
source = table | stats count()
, and failure is expected. So it should not throw error there. This PR changeshandleFacetError
tocontinue
, and renameshandleFacetError
tothrowFacetError
.Issues Resolved
Screenshot
Testing the changes
added unit tests and locally tested
Changelog
Check List
yarn test:jest
yarn test:jest_integration