-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Do not check self references in metric agg per document #33593
Comments
Pinging @elastic/es-search-aggs |
I agree #31044 was not good, it should not check for self references in the aggregation state after every collected document, only once all documents are collected. |
We discussed in FixItThursday and believe Adrien's idea should work. @polyfractal suggested doing this check in a post collection hook. I'm marking this as adoptme and updating the title accordingly. |
I'm having a look at this one. |
I've opened PR #34001, could you please have a look on it? Thank you. |
* master: (74 commits) XContent: Check for bad parsers (elastic#34561) Docs: Align prose with snippet (elastic#34839) document the search context is freed if the scroll is not extended (elastic#34739) Test: Lookup node versions on rest test start (elastic#34657) SQL: Return error with ORDER BY on non-grouped. (elastic#34855) Reduce channels in AbstractSimpleTransportTestCase (elastic#34863) [DOCS] Updates Elasticsearch monitoring tasks (elastic#34339) Check self references in metric agg after last doc collection (elastic#33593) (elastic#34001) [Docs] Add `indices.query.bool.max_clause_count` setting (elastic#34779) Add 6.6.0 version to master (elastic#34847) Test: ensure char[] doesn't being with prefix (elastic#34816) Remove static import from HLRC doc snippet (elastic#34834) Logging: server: clean up logging (elastic#34593) Logging: tests: clean up logging (elastic#34606) SQL: Fix edge case: `<field> IN (null)` (elastic#34802) [Test] Mute FullClusterRestartIT.testShrink() until test is fixed SQL: Introduce ODBC mode, similar to JDBC (elastic#34825) SQL: handle X-Pack or X-Pack SQL not being available in a more graceful way (elastic#34736) [Docs] Add explanation for code snippets line width (elastic#34796) CCR: Rename follow-task parameters and stats (elastic#34836) ...
I think we can close this one as #34001 has been merged. |
Ah yep, you're right. Thanks for the ping, and the PR fix @cbismuth! :) |
You're welcome 😉 |
#31044 introduced ensureNoSelfReference on the _agg object in scripted metric aggregations.
It would be nice if there was a switch to disable the it. Upgrading to 6.4 caused something around 20x performance degradation for us. And downgrading was no fun.
The text was updated successfully, but these errors were encountered: