-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Move composite aggregation to aggregations module. #90954
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
Conversation
|
Pinging @elastic/es-analytics-geo (Team:Analytics) |
With the move of a the composite aggs code to the aggregations plugin, this effectively renders the aggregation plugin as an Extensible plugin ( since x-pack-core uses the composite aggs code directly ). The X-pack-core plugin then requires to "extend" the aggregation plugin, so that the classloader hierarchy is setup correctly at runtime. Following all this, lang-painless is now transitively required (by the aggregations plugin ), for all plugins extending x-pack-core, so we need to move it as an explicit "extends" from plugins that extend from x-pack-core
…t when building named xcontent registry. These tests use composite aggregation and because this aggregation moved to aggregation module as part of this change these tests need this tweak.
| import java.util.List; | ||
|
|
||
| public class AggregationsPlugin extends Plugin implements SearchPlugin, ScriptPlugin { | ||
| public class AggregationsPlugin extends Plugin implements ExtensiblePlugin, SearchPlugin, ScriptPlugin { |
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.
Do we use ExtensiblePlugin yet?
| ); | ||
| } | ||
|
|
||
| private void assertMap(Map<String, Map<String, Object>> debug, MapMatcher name) {} |
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.
I think this is a leftover?
| description 'Module for the constant-keyword field type, which is a specialization of keyword for the case when all documents have the same value.' | ||
| classname 'org.elasticsearch.xpack.constantkeyword.ConstantKeywordMapperPlugin' | ||
| extendedPlugins = ['x-pack-core', 'lang-painless'] | ||
| extendedPlugins = ['x-pack-core'] |
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.
Oh wild. So they get the extension transitively through x-pack-core -> aggregations -> lang-painless? That seems odd. Does x-pack-core extend aggregations just so it can see it or something else? I'm not entirely clear on when you'd do what with the extension mechanism.
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Relates #90283