Skip to content

QL: Introduce infrastructure for substituting functions#54795

Merged
costin merged 3 commits intoelastic:masterfrom
costin:eql/fix-54334
Apr 6, 2020
Merged

QL: Introduce infrastructure for substituting functions#54795
costin merged 3 commits intoelastic:masterfrom
costin:eql/fix-54334

Conversation

@costin
Copy link
Copy Markdown
Member

@costin costin commented Apr 6, 2020

Some functions act as shortcuts for more verbose declarations (sometimes
with certain constraints). This PR removes the boilerplate around
declaring such functions as well as a dedicated rule for the optimizer
to perform the actual substitution.

Fix #54334

Some functions act as shortcuts for more verbose declarations (sometimes
with certain constraints). This PR removes the boilerplate around
declaring such functions as well as a dedicated rule for the optimizer
to perform the actual substitution.

Fix elastic#54334
@costin costin added the :Analytics/EQL EQL querying label Apr 6, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

@costin costin requested a review from matriv April 6, 2020 15:44
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. Maybe in the future SurrogateFunction could be an iface so that can be used in other function hieararchies.

into a base class. It would have been nice to be use it as a mixin but
we live with what we have.
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

@costin
Copy link
Copy Markdown
Member Author

costin commented Apr 6, 2020

@elasticmachine run elasticsearch-ci/2

@costin costin merged commit 3231d01 into elastic:master Apr 6, 2020
@costin costin deleted the eql/fix-54334 branch April 6, 2020 21:45
costin added a commit that referenced this pull request Apr 6, 2020
Some functions act as shortcuts for more verbose declarations (sometimes
with certain constraints). This PR removes the boilerplate around
declaring such functions as well as a dedicated rule for the optimizer
to perform the actual substitution.

Fix #54334

(cherry picked from commit 3231d01)
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.

EQL: Introduce Substitute function

6 participants