ES|QL in-product help update (#166157)

This PR updates the ES|QL in-product help with the following:

* added the following functions: acos, asin, atan, atan2, ceil,
coalesce, cos, cosh, date_extract, date_parse, floor, greatest, left,
ltrim, now, right, rtrim, sin, sinh, sqrt, tan, tanh, to_degrees,
to_radians, to_unsigned_long
* removed is_null function
* updated from (metadata) and rename
* added an "Operators" section

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Abdon Pijpelink 2023-09-11 17:04:47 +02:00 committed by GitHub
parent 03b7cd5dae
commit fa29dafbd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1002 additions and 74 deletions

View file

@ -139,15 +139,21 @@ export const getDocumentationSections = async (language: string) => {
};
}
if (language === 'esql') {
const { sourceCommands, processingCommands, initialSection, functions, aggregationFunctions } =
await import('./esql_documentation_sections');
const {
sourceCommands,
processingCommands,
initialSection,
functions,
aggregationFunctions,
operators,
} = await import('./esql_documentation_sections');
groups.push({
label: i18n.translate('textBasedEditor.query.textBasedLanguagesEditor.esql', {
defaultMessage: 'ES|QL',
}),
items: [],
});
groups.push(sourceCommands, processingCommands, functions, aggregationFunctions);
groups.push(sourceCommands, processingCommands, functions, aggregationFunctions, operators);
return {
groups,
initialSection,