Skip to content

Commit 0404a6d

Browse files
authored
[ES|QL] Functions definitions updates (#224993)
## Summary I had to run it manually due to this ES change elastic/elasticsearch#129839
1 parent 726908a commit 0404a6d

File tree

6 files changed

+114
-386
lines changed

6 files changed

+114
-386
lines changed

src/platform/packages/private/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const functions = {
305305
label: i18n.translate('languageDocumentation.documentationESQL.st_centroid_agg', {
306306
defaultMessage: 'ST_CENTROID_AGG',
307307
}),
308-
preview: false,
308+
preview: true,
309309
description: (
310310
<Markdown
311311
openLinksInNewTab
@@ -336,7 +336,7 @@ export const functions = {
336336
label: i18n.translate('languageDocumentation.documentationESQL.st_extent_agg', {
337337
defaultMessage: 'ST_EXTENT_AGG',
338338
}),
339-
preview: false,
339+
preview: true,
340340
description: (
341341
<Markdown
342342
openLinksInNewTab

src/platform/packages/private/kbn-language-documentation/src/sections/generated/operators.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,9 @@ export const functions = {
237237
{
238238
defaultMessage: `
239239
### IS NOT NULL
240-
Use \`IS NOT NULL\` to filter data based on whether the field exists or not.
240+
Returns \`false\` if the value is \`NULL\`, \`true\` otherwise.
241241
242-
\`\`\`esql
243-
FROM employees
244-
| WHERE is_rehired IS NOT NULL
245-
| STATS COUNT(emp_no)
246-
\`\`\`
242+
Note: If a field is only in some documents it will be \`NULL\` in the documents that did not contain it.
247243
`,
248244
description:
249245
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
@@ -269,12 +265,9 @@ export const functions = {
269265
{
270266
defaultMessage: `
271267
### IS NULL
272-
Use \`IS NULL\` to filter data based on whether the field exists or not.
268+
Returns \`true\` if the value is \`NULL\`, \`false\` otherwise.
273269
274-
\`\`\`esql
275-
FROM employees
276-
| WHERE birth_date IS NULL
277-
\`\`\`
270+
Note: If a field is only in some documents it will be \`NULL\` in the documents that did not contain it.
278271
`,
279272
description:
280273
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
@@ -386,7 +379,7 @@ export const functions = {
386379
label: i18n.translate('languageDocumentation.documentationESQL.match_operator (:)', {
387380
defaultMessage: 'MATCH_OPERATOR (:)',
388381
}),
389-
preview: true,
382+
preview: false,
390383
description: (
391384
<Markdown
392385
openLinksInNewTab

0 commit comments

Comments
 (0)