-
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
Add license check for ES|QL functions #116715
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
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.
LGTM. Some minor comments, and I'd wait to see others opinions, as I haven't touched licensing code
.../esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/function/Function.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Verifier.java
Outdated
Show resolved
Hide resolved
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.
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.
.../esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/function/Function.java
Show resolved
Hide resolved
...n/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/CheckLicenseTests.java
Show resolved
Hide resolved
💚 Backport successful
|
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.