Skip to content

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