Skip to content

Conversation

@craigtaverner
Copy link
Contributor

Manual backport of #127717

…lastic#127717)

Output function signature license requirements to Kibana definition files, and also test that this matches the actual licensing behaviour of the functions.

ES|QL functions that enforce license checks do so with the `LicenseAware` interface. This does not expose what that functions license level is, but only whether the current active license will be sufficient for that function and its current signature (data types passed in as fields). Rather than add to this interface, we've made the license level information test-only information. This means if a function implements LicenseAware, it also needs to add a method to its test class to specify the license level for the signature being called. All functions will be tested for compliance, so failing to add this will result in test failure. Also if the test license level does not match the enforced license, that will also cause a failure.
@craigtaverner craigtaverner added >test Issues or PRs that are addressing/adding tests backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Analytics/ES|QL AKA ESQL v9.0.2 labels May 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit e16bb4a into elastic:9.0 May 7, 2025
16 checks passed
@craigtaverner craigtaverner deleted the 9.0-kibana_function_license_levels branch May 7, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants