mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ES|QL] Update function metadata (#205579)
This PR updates the function definitions and inline docs based on the latest metadata from Elasticsearch. Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
5f8ce1d989
commit
9b07ca4df5
2 changed files with 70 additions and 1 deletions
|
@ -318,6 +318,41 @@ export const functions = {
|
|||
FROM airports
|
||||
| STATS centroid=ST_CENTROID_AGG(location)
|
||||
\`\`\`
|
||||
`,
|
||||
description:
|
||||
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
|
||||
ignoreTag: true,
|
||||
}
|
||||
)}
|
||||
/>
|
||||
),
|
||||
},
|
||||
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
|
||||
{
|
||||
label: i18n.translate('languageDocumentation.documentationESQL.st_extent_agg', {
|
||||
defaultMessage: 'ST_EXTENT_AGG',
|
||||
}),
|
||||
preview: false,
|
||||
description: (
|
||||
<Markdown
|
||||
openLinksInNewTab
|
||||
readOnly
|
||||
enableSoftLineBreaks
|
||||
markdownContent={i18n.translate(
|
||||
'languageDocumentation.documentationESQL.st_extent_agg.markdown',
|
||||
{
|
||||
defaultMessage: `<!--
|
||||
This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
|
||||
-->
|
||||
|
||||
### ST_EXTENT_AGG
|
||||
Calculate the spatial extent over a field with geometry type. Returns a bounding box for all values of the field.
|
||||
|
||||
\`\`\`
|
||||
FROM airports
|
||||
| WHERE country == "India"
|
||||
| STATS extent = ST_EXTENT_AGG(location)
|
||||
\`\`\`
|
||||
`,
|
||||
description:
|
||||
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
|
||||
|
|
|
@ -977,6 +977,33 @@ export const functions = {
|
|||
),
|
||||
},
|
||||
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
|
||||
{
|
||||
label: i18n.translate('languageDocumentation.documentationESQL.hash', {
|
||||
defaultMessage: 'HASH',
|
||||
}),
|
||||
preview: false,
|
||||
description: (
|
||||
<Markdown
|
||||
openLinksInNewTab
|
||||
readOnly
|
||||
enableSoftLineBreaks
|
||||
markdownContent={i18n.translate('languageDocumentation.documentationESQL.hash.markdown', {
|
||||
defaultMessage: `<!--
|
||||
This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
|
||||
-->
|
||||
|
||||
### HASH
|
||||
Computes the hash of the input using various algorithms such as MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512.
|
||||
|
||||
`,
|
||||
description:
|
||||
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
|
||||
ignoreTag: true,
|
||||
})}
|
||||
/>
|
||||
),
|
||||
},
|
||||
// Do not edit manually... automatically generated by scripts/generate_esql_docs.ts
|
||||
{
|
||||
label: i18n.translate('languageDocumentation.documentationESQL.hypot', {
|
||||
defaultMessage: 'HYPOT',
|
||||
|
@ -1311,7 +1338,14 @@ export const functions = {
|
|||
-->
|
||||
|
||||
### MATCH
|
||||
Performs a match query on the specified field. Returns true if the provided query matches the row.
|
||||
Use \`MATCH\` to perform a match query on the specified field.
|
||||
Using \`MATCH\` is equivalent to using the \`match\` query in the Elasticsearch Query DSL.
|
||||
|
||||
Match can be used on text fields, as well as other field types like boolean, dates, and numeric types.
|
||||
|
||||
For a simplified syntax, you can use the match operator \`:\` operator instead of \`MATCH\`.
|
||||
|
||||
\`MATCH\` returns true if the provided query matches the row.
|
||||
|
||||
\`\`\`
|
||||
FROM books
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue