Skip to content

Conversation

@martijnvg
Copy link
Member

Relates #90283

@martijnvg martijnvg added the :Analytics/Aggregations Aggregations label Oct 17, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 17, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

martijnvg and others added 6 commits November 4, 2022 11:41
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.
@kingherc kingherc added v8.7.0 and removed v8.6.0 labels Nov 16, 2022
import java.util.List;

public class AggregationsPlugin extends Plugin implements SearchPlugin, ScriptPlugin {
public class AggregationsPlugin extends Plugin implements ExtensiblePlugin, SearchPlugin, ScriptPlugin {
Copy link
Member

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) {}
Copy link
Member

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']
Copy link
Member

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.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.