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

[DOCS] EQL: Document math functions #55810

Merged
merged 4 commits into from
May 7, 2020
Merged

[DOCS] EQL: Document math functions #55810

merged 4 commits into from
May 7, 2020

Conversation

jrodewig
Copy link
Contributor

Documents the following EQL functions:

  • add
  • divide
  • module
  • multiply
  • subtract

Also adds an admonition about dividing integers to the EQL syntax for the divide (/) operator.

Relates to #55737 and #54846.

Closes #55669

Documents the following EQL functions:

* `add`
* `divide`
* `module`
* `multiply`
* `subtract`
@jrodewig jrodewig added >docs General docs changes :Analytics/EQL EQL querying labels Apr 27, 2020
@jrodewig jrodewig requested a review from aleksmaus April 27, 2020 14:16
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine
Copy link
Collaborator

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

@rjernst rjernst added Team:Docs Meta label for docs team Team:QL (Deprecated) Meta label for query languages team labels May 4, 2020
Copy link
Contributor

@aleksmaus aleksmaus left a comment

Choose a reason for hiding this comment

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

Thank you!

down_ any returned floating point numbers to the nearest integer.

EQL queries in {es} should account for this rounding. To avoid rounding, convert
either the dividend or divisor to a float.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@jrodewig jrodewig merged commit 883bb29 into elastic:master May 7, 2020
@jrodewig jrodewig deleted the docs__eql-fn-math branch May 7, 2020 12:53
jrodewig added a commit that referenced this pull request May 7, 2020
Documents the following EQL functions:

* `add`
* `divide`
* `module`
* `multiply`
* `subtract`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying >docs General docs changes Team:Docs Meta label for docs team Team:QL (Deprecated) Meta label for query languages team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOCS] EQL: Note that floating quotients are rounded down to integer for integer division
4 participants