mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
* Split ES|QL functions/operators/commands into separate pages for similar functions and make commands examples generated (#126279) While the internal structure of the docs is already split into many (over 1000) sub-pages, the final display for the `Functions and Operators` page is a single giant page, making navigation harder. This PR splits it into separate pages, one for each group of similar functions and one for the operators. Twelve new pages. This PR also bundles a few other related changes. In total what is done is: * Split functions/operators into 12 pages, one for each group, maintaining the existing split of each function/operator into a snippet with dynamically generated examples * Split esql-commands.md into source-commands.md and processing-commands.md, each of which is split into individual snippets, one for each command * Each command snippet has it's examples split out into separate files, if they were examples that were dynamically generated in the older asciidoc system * The examples files are overwritten by the ES|QL unit tests, using a similar mechanism to the examples written for functions and operators) * Some additional refinements to the Kibana definition and markdown files (nicer operator headings, and display text) * After re-running tests to ensure we get 9.0 behaviour only
766 B
766 B
navigation_title | mapped_pages | |
---|---|---|
Conditional functions and expressions |
|
{{esql}} conditional functions and expressions [esql-conditional-functions-and-expressions]
Conditional functions return one of their arguments by evaluating in an if-else manner. {{esql}} supports these conditional functions:
:::{include} ../_snippets/lists/conditional-functions-and-expressions.md :::
:::{include} ../_snippets/functions/layout/case.md :::
:::{include} ../_snippets/functions/layout/coalesce.md :::
:::{include} ../_snippets/functions/layout/greatest.md :::
:::{include} ../_snippets/functions/layout/least.md :::