Skip to content

Commit

Permalink
[ES|QL] Update function metadata (elastic#187723)
Browse files Browse the repository at this point in the history
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.
  • Loading branch information
kibanamachine authored Jul 8, 2024
1 parent a347d7b commit e320935
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3755,26 +3755,26 @@ export const functions = {
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
{
label: i18n.translate(
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top_list',
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top',
{
defaultMessage: 'TOP_LIST',
defaultMessage: 'TOP',
}
),
description: (
<Markdown
markdownContent={i18n.translate(
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top_list.markdown',
'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.top.markdown',
{
defaultMessage: `<!--
This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
-->
### TOP_LIST
### TOP
Collects the top values for a field. Includes repeated values.
\`\`\`
FROM employees
| STATS top_salaries = TOP_LIST(salary, 3, "desc"), top_salary = MAX(salary)
| STATS top_salaries = TOP(salary, 3, "desc"), top_salary = MAX(salary)
\`\`\`
`,
description:
Expand Down

0 comments on commit e320935

Please sign in to comment.