Skip to content
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

Add license check for ES|QL functions #116715

Merged
merged 8 commits into from
Nov 19, 2024
Merged

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Nov 13, 2024

Currently there is no license checks on ESQL, which it means that all functionality is offer in basic license. We however oversee that some functionality might be offer in higher tier licenses so we need to add the necessary means to do license checks.

One of the obvious one would be to license some functions, therefore this commit adds license checks on the Verifier. Any function would be able to check the current license and flag if the can run under the current one.

@iverase iverase requested review from costin and nik9000 November 13, 2024 10:35
@iverase iverase marked this pull request as draft November 13, 2024 10:36
@iverase iverase marked this pull request as ready for review November 13, 2024 10:36
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Nov 13, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@iverase iverase changed the title [ESQL] Add license check for functions Add license check for ES|QL functions Nov 13, 2024
Copy link
Contributor

@ivancea ivancea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Some minor comments, and I'd wait to see others opinions, as I haven't touched licensing code

Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I would be interested to see how easy this is to make use of in production code, but it looks like it covers the current requirements.

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Nov 19, 2024
@iverase iverase merged commit abc7f58 into elastic:main Nov 19, 2024
16 checks passed
@iverase iverase deleted the esql_license_function branch November 19, 2024 08:49
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

iverase added a commit to iverase/elasticsearch that referenced this pull request Nov 19, 2024
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Nov 20, 2024
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
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-backport Automatically create backport pull requests when merged >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants