Skip to content

EQL: Fix custom scripting for functions#53935

Merged
costin merged 3 commits intoelastic:masterfrom
costin:eql/function-scripting
Mar 24, 2020
Merged

EQL: Fix custom scripting for functions#53935
costin merged 3 commits intoelastic:masterfrom
costin:eql/function-scripting

Conversation

@costin
Copy link
Copy Markdown
Member

@costin costin commented Mar 22, 2020

Improve separation of scripting between EQL and SQL by delegating common
methods to QL. The context detection is determined based on the package
to avoid having repetitive class hierarchies.

Relates #53688

Improve separation of scripting between EQL and SQL by delegating common
methods to QL. The context detection is determined based on the package
to avoid having repetitive class hierarchies.

Relates elastic#53688
Copy link
Copy Markdown
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@matriv matriv left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@bpintea bpintea left a comment

Choose a reason for hiding this comment

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

LGTM

Better isolation of Painless whitelists
Fix incorrect sql
@costin costin merged commit 6d46033 into elastic:master Mar 24, 2020
@costin costin deleted the eql/function-scripting branch March 24, 2020 16:30
costin added a commit that referenced this pull request Mar 24, 2020
Adds back #53935 test removed accidentally through #53802
costin added a commit that referenced this pull request Mar 24, 2020
Improve separation of scripting between EQL and SQL by delegating common
methods to QL. The context detection is determined based on the package
to avoid having repetitive class hierarchies.
The Painless whitelists have been improved so that the declaring class
is used instead of the inherited one.

Relates #53688

(cherry picked from commit 6d46033)

EQL: Add Substring function with Python semantics (#53688)

Does not reuse substring from SQL due to the difference in semantics and
the accepted arguments.
Currently it is missing full integration tests as, due to the usage of
scripting, requires an actual integration test against a proper cluster
(and likely its own QA project).

(cherry picked from commit f58680b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/EQL EQL querying

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants