Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES|QL] Technical preview in Discover and Dashboards #146971

Merged
merged 201 commits into from
Sep 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
551b23d
[ESQL] Enable in Discover and Lens
stratoula Dec 5, 2022
4097f02
Fix check
stratoula Dec 5, 2022
bd99349
Further checks
stratoula Dec 5, 2022
60c2e97
Fix file name
stratoula Dec 5, 2022
a4ba500
Merge with main and resolve conflicts
stratoula Dec 8, 2022
5fd2a0a
Fix theme
stratoula Dec 8, 2022
6bb412e
Merge branch 'main' into feature-esql
stratoula Dec 14, 2022
e51766e
Merge branch 'main' into feature-esql
stratoula Dec 19, 2022
f6b2854
Merge with main and resolve conflicts
stratoula Dec 21, 2022
007958e
Enable inspector requests for ESQL
stratoula Dec 21, 2022
e9e9240
Merge remote-tracking branch 'upstream/main' into feature-esql
alexwizp Dec 23, 2022
0caf41c
[CI] Auto-commit changed files from 'node scripts/ts_project_linter -…
kibanamachine Dec 23, 2022
6112321
Merge with main and resolve conflicts
stratoula Jan 3, 2023
c9c80c4
Merge branch 'main' into feature-esql
kibanamachine Jan 3, 2023
1b1ab0d
[Step 2][ESQL] Autocomplete part (#148006)
alexwizp Jan 4, 2023
3c557f3
Fix the wrong decoration when the code is populated with ...
stratoula Jan 5, 2023
4214810
Merge with main and resolve conflicts
stratoula Jan 10, 2023
d812ac7
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Jan 10, 2023
07fed9e
Fix by command autocomplete
stratoula Jan 11, 2023
fc0f244
Make autocomplete smarter
stratoula Jan 11, 2023
9e2689d
Make the text dynamic
stratoula Jan 11, 2023
9c9b6d8
Fix translations
stratoula Jan 11, 2023
834426d
Fix checks
stratoula Jan 11, 2023
f1b5a8d
Merge branch 'main' into feature-esql
stratoula Jan 16, 2023
945a5c7
Fix autocomplete in multilines
stratoula Jan 16, 2023
0f45b9f
Merge branch 'main' into feature-esql
stratoula Jan 23, 2023
5edb3c4
Merge branch 'main' into feature-esql
stratoula Jan 25, 2023
9057099
Small fixes on the autocomplete logic
stratoula Jan 25, 2023
3382378
Fix round lexer and further improvements on autocomplete logix
stratoula Jan 25, 2023
6d629df
Merge with main and resolve conflicts
stratoula Jan 31, 2023
e5e37d2
Fix FT
stratoula Jan 31, 2023
2d825d2
Merge branch 'main' into feature-esql
stratoula Feb 2, 2023
87b0fa3
Merge branch 'main' into feature-esql
stratoula Feb 6, 2023
6f44358
Merge branch 'main' into feature-esql
stratoula Feb 13, 2023
5b4996a
Color project correctly
stratoula Feb 14, 2023
3e751f7
Add project to autocomplete
stratoula Feb 14, 2023
c0f2e46
Hide chart from ESQL
stratoula Feb 14, 2023
093e43f
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Feb 14, 2023
e505859
Merge branch 'main' into feature-esql
stratoula Feb 20, 2023
a246e2b
Fix error message referring to double quotes
stratoula Feb 21, 2023
5715480
Merge branch 'main' into feature-esql
stratoula Feb 28, 2023
d96ecb7
Merge branch 'main' into feature-esql
stratoula Mar 6, 2023
9e86e49
Fix bug with readOnly mode
stratoula Mar 6, 2023
d593473
Add autocomplete to the project command
stratoula Mar 6, 2023
c50d60c
Fetch field suggestions from esql api
stratoula Mar 8, 2023
7c8426a
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Mar 8, 2023
5106f27
Merge branch 'main' into feature-esql
stratoula Mar 21, 2023
1efdf09
Add count on the agg functions list
stratoula Mar 21, 2023
c850a37
Fix jest test
stratoula Mar 21, 2023
5c23f73
Change the stories to be for ESQL
stratoula Mar 23, 2023
91b40ab
Fix FT
stratoula Mar 23, 2023
b3170df
Merge branch 'main' into feature-esql
stratoula Mar 27, 2023
1da8c69
Merge with main and resolve conflicts
stratoula Mar 28, 2023
f4160e0
Add dissect to syntax highighting and autocomplete
stratoula Mar 28, 2023
2a9bbfe
Merge branch 'main' into feature-esql
stratoula Apr 3, 2023
10d5cd0
Merge branch 'main' into feature-esql
stratoula Apr 4, 2023
ea58232
Adjust stats without field
stratoula Apr 5, 2023
aa65a1f
Merge branch 'main' into feature-esql
stratoula Apr 11, 2023
78cd724
Add grok command support
stratoula Apr 11, 2023
d667521
Support rename and drop commands
stratoula Apr 11, 2023
e0c128b
Merge branch 'main' into feature-esql
stratoula Apr 18, 2023
b2f17df
Add more functions to the highlighter
stratoula Apr 19, 2023
9784533
Add like and rlike functions
stratoula Apr 19, 2023
aef9818
Add cidr_match and improve autocomplete
stratoula Apr 19, 2023
7abfa54
Fix jest test
stratoula Apr 19, 2023
3ddfff8
Support count_distinct
stratoula Apr 19, 2023
2ddbd2d
[ESQL] Update in-product help (#155159)
abdonpijpelink Apr 20, 2023
456b4b0
Support uppercase commands and functions
stratoula Apr 25, 2023
a16b008
Merge with main and resolve conflicts
stratoula May 2, 2023
57abcf8
Support finite and infinite eval functions
stratoula May 2, 2023
3d3a55a
Support case eval function
stratoula May 2, 2023
153e8e8
Support info
stratoula May 3, 2023
ec5d710
ESQL in-product help update (#156343)
abdonpijpelink May 3, 2023
a563a04
Merge with main and resolve conflicts
stratoula May 9, 2023
39885f8
Fix csv export due to bad merge
stratoula May 9, 2023
8221e0a
Add support of more eval functions
stratoula May 12, 2023
efe991d
ESQL in-product help update (#157461)
abdonpijpelink May 12, 2023
f053b26
Merge branch 'main' into feature-esql
stratoula May 15, 2023
f0e286d
Merge branch 'main' into feature-esql
stratoula May 15, 2023
5743b7f
Merge branch 'main' into feature-esql
stratoula May 18, 2023
280d6a2
Supports in operator
stratoula May 18, 2023
cb7ba19
Fix jest test
stratoula May 18, 2023
4022672
Merge branch 'main' into feature-esql
stratoula May 22, 2023
aa9e1d0
Merge with main and resolve conflicts
stratoula May 22, 2023
6da299f
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine May 22, 2023
07e215b
Fix translations
stratoula May 22, 2023
751c426
Fix translations
stratoula May 22, 2023
acae361
Support to_string function
stratoula May 23, 2023
61a2593
Support auto_bucket function
stratoula May 23, 2023
8fdd48f
Merge branch 'main' into feature-esql
stratoula May 29, 2023
77467a4
Add mv_expand command, date_parse function
stratoula May 29, 2023
74c2754
ESQL in-product help update (#158564)
abdonpijpelink May 29, 2023
376dc8f
Add to_xxx functions to autocomplete and syntax highlighter
stratoula May 31, 2023
1da5f65
Merge with main and resolve conflicts
stratoula May 31, 2023
8be97e9
[ESQL] Document vs table view (#158808)
stratoula Jun 1, 2023
add6660
Merge branch 'main' into feature-esql
stratoula Jun 1, 2023
bb632a7
Revert
stratoula Jun 1, 2023
40746ad
Merge branch 'main' into feature-esql
stratoula Jun 6, 2023
48041e9
Optimization
stratoula Jun 6, 2023
75cdcb8
Fix performance of data grid memory
stratoula Jun 6, 2023
bb76ac4
[esql] autocomplete on indexes (#158798)
ppisljar Jun 6, 2023
5000534
Support to_version and percentile agg
stratoula Jun 7, 2023
ab1aaba
Merge branch 'main' into feature-esql
stratoula Jun 7, 2023
53703d7
Fix autocomplete of indices
stratoula Jun 7, 2023
858bab9
Fix problem with indices
stratoula Jun 7, 2023
5962b0c
Improvements in autocomplete
stratoula Jun 8, 2023
8a56a84
Prioritize xy charts in lens suggestions
stratoula Jun 8, 2023
8036003
Fix test
stratoula Jun 8, 2023
f48f13b
Merge branch 'main' into feature-esql
stratoula Jun 9, 2023
ee165b3
ESQL in-product help update (#159330)
abdonpijpelink Jun 9, 2023
f8bf7f1
Merge branch 'main' into feature-esql
stratoula Jun 12, 2023
8de6658
Merge branch 'main' into feature-esql
stratoula Jun 14, 2023
4fd9249
Fix FT test
stratoula Jun 14, 2023
2ca50d9
Merge branch 'main' into feature-esql
stratoula Jun 19, 2023
c29cb23
Merge branch 'main' into feature-esql
kibanamachine Jun 19, 2023
6b5bda3
Add enrich in syntax highlighter
stratoula Jun 19, 2023
cd9df8d
Add keep command, partially deprecate the project command
stratoula Jun 19, 2023
1463e57
Add keep to transformational commands list in Discvoer
stratoula Jun 19, 2023
9273333
Merge branch 'main' into feature-esql
stratoula Jun 20, 2023
d175f9a
Merge with main and resolve conflicts
stratoula Jun 26, 2023
8e07004
Fix
stratoula Jun 26, 2023
98a1d15
Fix ESQL updates
stratoula Jun 26, 2023
42fe527
Fix syntax highliting bugs
stratoula Jun 26, 2023
5d6556c
Fixes
stratoula Jun 28, 2023
11f0807
Merge branch 'main' into feature-esql
stratoula Jun 28, 2023
967584a
Fix
stratoula Jun 28, 2023
998764f
Merge branch 'main' into feature-esql
stratoula Jun 28, 2023
8e93b7f
Support header warnings in the UI
stratoula Jun 29, 2023
3c47bf9
Merge branch 'main' into feature-esql
stratoula Jul 3, 2023
3bd3560
Merge branch 'main' into feature-esql
stratoula Jul 5, 2023
d3965e2
Syntax highlighting fixes
stratoula Jul 5, 2023
2ac47e3
Add support for the metadata function
stratoula Jul 7, 2023
92d4b9b
Merge branch 'main' into feature-esql
stratoula Jul 7, 2023
7aaff0e
Merge with main and resolve conflicts
stratoula Jul 11, 2023
90901ab
Add missing functions
stratoula Jul 11, 2023
b41b837
Fix FT
stratoula Jul 11, 2023
01cf6c8
Merge with main and resolve conflicts
stratoula Jul 12, 2023
c1904f1
Merge branch 'main' into feature-esql
stratoula Jul 13, 2023
8dde466
Merge branch 'main' into feature-esql
stratoula Jul 14, 2023
11bcb99
Add missing functions in autocomplete and syntax highlighter
stratoula Jul 14, 2023
0e0ba27
ES|QL in-product help update (#161883)
abdonpijpelink Jul 14, 2023
dc2da4c
Merge branch 'main' into feature-esql
stratoula Jul 17, 2023
f81b9de
Add metadata support
stratoula Jul 17, 2023
b9dea9f
Change ESQL to ES|QL in documentation
stratoula Jul 17, 2023
eb3baf6
Merge with main and resolve conflicts
stratoula Jul 24, 2023
7cc106d
Use _query instead of _esql
stratoula Jul 25, 2023
6155f90
Fix rename syntax and autocomplete
stratoula Jul 25, 2023
83c710e
Merge branch 'main' into feature-esql
stratoula Jul 26, 2023
3b7059e
Merge with main and resolve conflicts
stratoula Aug 1, 2023
9d3e7ed
Support locale
stratoula Aug 1, 2023
a0f5680
Temporary fix of ESQL commands without the from command
stratoula Aug 1, 2023
a9001f7
Fix checks
stratoula Aug 1, 2023
59d1a07
Merge branch 'main' into feature-esql
stratoula Aug 1, 2023
6a9e06d
Display time column for the document view
stratoula Aug 1, 2023
723dbd6
Fix bug with columns in the state
stratoula Aug 1, 2023
749d84f
Resolve conflicts and merge with main
stratoula Aug 7, 2023
ea0dfab
Merge branch 'main' into feature-esql
stratoula Aug 9, 2023
0fda1c2
Merge branch 'main' into feature-esql
stratoula Aug 9, 2023
5ca2253
Merge branch 'main' into feature-esql
stratoula Aug 9, 2023
1f6c175
Fix performance issue
stratoula Aug 10, 2023
ccd4c09
Change warning variable
stratoula Aug 10, 2023
4fd54ef
Fix FT
stratoula Aug 10, 2023
7552046
Merge with main and resolve conflicts
stratoula Aug 11, 2023
e8c1e7a
Merge branch 'main' into feature-esql
stratoula Aug 14, 2023
9b2acc2
Use ESQL for displaying the histogram (#163780)
stratoula Aug 14, 2023
225910d
Merge branch 'main' into feature-esql
stratoula Aug 16, 2023
7c326c4
change the switch to enableESQL
stratoula Aug 16, 2023
73dae10
Change unit tests to accomodate ESQL
stratoula Aug 16, 2023
1f6c004
Add more unit tests
stratoula Aug 16, 2023
60a91a5
Merge branch 'main' into feature-esql
stratoula Aug 16, 2023
c582e1f
Correct the naming of ESQL to ES|QL
stratoula Aug 16, 2023
40e0fb7
Merge branch 'main' into feature-esql
stratoula Aug 16, 2023
9d4ed6a
Override uiSettings value for serverless
stratoula Aug 17, 2023
d2667e5
Merge branch 'main' into feature-esql
stratoula Aug 17, 2023
3f37002
Super nit
stratoula Aug 17, 2023
7751d38
Add is null on syntax highlighter
stratoula Aug 17, 2023
f38c6e3
Implementation of new ESQL selection design, hidden for now
stratoula Aug 17, 2023
9f151d7
Unskip tests
stratoula Aug 17, 2023
807e6a7
Fix
stratoula Aug 17, 2023
4f8cea7
Merge branch 'main' into feature-esql
stratoula Aug 17, 2023
f2d9083
Merge branch 'main' into feature-esql
stratoula Aug 28, 2023
50475f8
Fix bugs and move a FT to ESQL
stratoula Aug 28, 2023
048cd46
Move from tests to ES|QL
stratoula Aug 28, 2023
d402141
Change the UI of dataview picker
stratoula Aug 28, 2023
b34b285
[ES|QL] Add autocomplete for enrich command (#164865)
dej611 Aug 28, 2023
5d06c13
[ES|QL] Fix rename command documentation (#164972)
dej611 Aug 28, 2023
92c393e
Unskip last test
stratoula Aug 29, 2023
58cd50b
[ES|QL] Fix partial autocomplete for identifiers (#164977)
dej611 Aug 29, 2023
f5d3bef
Fix
stratoula Aug 29, 2023
8278398
Mere with main and resolve conflicts
stratoula Aug 29, 2023
f110566
Merge branch 'main' into feature-esql
stratoula Aug 29, 2023
d8565bc
Update docs/management/advanced-options.asciidoc
stratoula Aug 30, 2023
7527020
Add a todo in the request_count FT
stratoula Aug 30, 2023
b937d2a
Merge branch 'main' into feature-esql
stratoula Aug 30, 2023
6b75898
Address code review comments
stratoula Aug 31, 2023
2089884
Merge branch 'main' into feature-esql
stratoula Aug 31, 2023
d81042e
Apply PR comments
stratoula Aug 31, 2023
34a8d0a
Merge branch 'main' into feature-esql
stratoula Sep 1, 2023
5a5a20b
Update tooltip to display es|ql
stratoula Sep 1, 2023
d6b65c4
Merge branch 'main' into feature-esql
kibanamachine Sep 1, 2023
a2d9f7f
Replace the remaining references to SQL with ES|QL (#165426)
davismcphee Sep 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ESQL in-product help update (#156343)
## Summary

This PR updates the in-product help for ESQL with the following:

- Added the CASE, CIDR_MATCH, IS_FINITE, IS_INFINITE, IS_NAN, and POW
functions
- Added the LIKE and RLIKE operators

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)).co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
abdonpijpelink authored May 3, 2023
commit ec5d710e59fb6082ade94e82d510d59710ebf604
Original file line number Diff line number Diff line change
@@ -482,6 +482,26 @@ These comparison operators are supported:
* larger than: \`>\`
* larger than or equal: \`>=\`

For string comparison using wildcards or regular expressions, use \`LIKE\` or \`RLIKE\`:

* Use \`LIKE\` to match strings using wildcards. The following wildcard characters are supported:
* \`*\` matches zero or more characters.
* \`?\` matches one character.

\`\`\`
FROM employees
| WHERE first_name LIKE "?b*"
| PROJECT first_name, last_name
\`\`\`

* Use \`RLIKE\` to match strings using [regular expressions](https://www.elastic.co/guide/en/elasticsearch/reference/current/regexp-syntax.html):

\`\`\`
FROM employees
| WHERE first_name RLIKE ".leja.*"
| PROJECT first_name, last_name
\`\`\`

You can use the following boolean operators:

* \`AND\`
@@ -537,6 +557,66 @@ Returns the absolute value.
FROM employees
| PROJECT first_name, last_name, height
| EVAL abs_height = ABS(0.0 - height)
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.caseFunction',
{
defaultMessage: 'CASE',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.caseFunction.markdown',
{
defaultMessage: `### CASE
Accepts pairs of conditions and values. The function returns the value that belongs to the first condition that evaluates to \`true\`. If the number of arguments is odd, the last argument is the default value which is returned when no condition matches.

\`\`\`
FROM employees
| EVAL type = CASE(
languages <= 1, "monolingual",
languages <= 2, "bilingual",
"polyglot")
| PROJECT first_name, last_name, type
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.cidrMatchFunction',
{
defaultMessage: 'CIDR_MATCH',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.cidrMatchFunction.markdown',
{
defaultMessage: `### CIDR_MATCH
Returns \`true\` if the provided IP is contained in one of the provided CIDR blocks.

\`CIDR_MATCH\` accepts two or more arguments. The first argument is the IP address of type \`ip\` (both IPv4 and IPv6 are supported). Subsequent arguments are the CIDR blocks to test the IP against.

\`\`\`
FROM hosts
| WHERE CIDR_MATCH(ip, "127.0.0.2/32", "127.0.0.3/32")
\`\`\`
`,
description:
@@ -648,6 +728,87 @@ Timespan literals are not whitespace sensitive. These expressions are all valid:
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.isFiniteFunction',
{
defaultMessage: 'IS_FINITE',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.isFiniteFunction.markdown',
{
defaultMessage: `### IS_FINITE
Returns a boolean that indicates whether its input is a finite number.

\`\`\`
ROW d = 1.0
| EVAL s = IS_FINITE(d/0)
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.isInfiniteFunction',
{
defaultMessage: 'IS_INFINITE',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentationESQL.isInfiniteFunction.markdown',
{
defaultMessage: `### IS_INFINITE
Returns a boolean that indicates whether its input is infinite.

\`\`\`
ROW d = 1.0
| EVAL s = IS_INFINITE(d/0)
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.isNanFunction',
{
defaultMessage: 'IS_NAN',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.isNanFunction.markdown',
{
defaultMessage: `### IS_NAN
Returns a boolean that indicates whether its input is not a number.

\`\`\`
ROW d = 1.0
| EVAL s = IS_NAN(d)
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.isNullFunction',
@@ -665,14 +826,41 @@ Returns a boolean than indicates whether its input is \`null\`.

\`\`\`
FROM employees
| WHERE is_null(first_name)
| WHERE IS_NULL(first_name)
\`\`\`

Combine this function with \`NOT\` to filter out any \`null\` data:

\`\`\`
FROM employees
| WHERE NOT is_null(first_name)
| WHERE NOT IS_NULL(first_name)
\`\`\`
`,
description:
'Text is in markdown. Do not translate function names, special characters, or field names like sum(bytes)',
}
)}
/>
),
},
{
label: i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.powFunction',
{
defaultMessage: 'POW',
}
),
description: (
<Markdown
markdown={i18n.translate(
'unifiedSearch.query.textBasedLanguagesEditor.documentation.powFunction.markdown',
{
defaultMessage: `### POW
Returns the the value of a base (first argument) raised to a power (second argument).

\`\`\`
ROW base = 2.0, exponent = 2.0
| EVAL s = POW(base, exponent)
\`\`\`
`,
description: