-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.14] [Obs AI Assistant] Remove ES|QL escaping for index names (#183028
) (#183037) # Backport This will backport the following commits from `main` to `8.14`: - [[Obs AI Assistant] Remove ES|QL escaping for index names (#183028)](#183028) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dario Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2024-05-09T12:15:34Z","message":"[Obs AI Assistant] Remove ES|QL escaping for index names (#183028)\n\nThere were some last minute changes to ES|QL that will ship in 8.14 that\r\nwe need to take into account:\r\n\r\n- [BUCKET is now an aggregation\r\nfunction](https://github.com/elastic/elasticsearch/pull/107272)\r\n- [index names can no longer be escaped with backticks\r\n](https://github.com/elastic/elasticsearch/pull/108431)\r\n\r\nI'm also including a change that translates `=` to `==` in WHERE\r\ncommands, and more useful error messages (map a syntax error to the\r\ncommand where it occurred).\r\n\r\nAs BUCKET is often used for timeseries data and we replaced single and\r\ndouble quotes around index names with backticks, this introduces a high\r\nchance of generating syntactically invalid queries. This PR updates the\r\ndocs and examples and removes the correction from `\"` and `'` to \"`\"","sha":"6004cad53af71564b756e116b6b769a9d595dad6","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Obs AI Assistant","ci:project-deploy-observability","v8.14.0","v8.15.0"],"title":"[Obs AI Assistant] Remove ES|QL escaping for index names","number":183028,"url":"https://github.com/elastic/kibana/pull/183028","mergeCommit":{"message":"[Obs AI Assistant] Remove ES|QL escaping for index names (#183028)\n\nThere were some last minute changes to ES|QL that will ship in 8.14 that\r\nwe need to take into account:\r\n\r\n- [BUCKET is now an aggregation\r\nfunction](https://github.com/elastic/elasticsearch/pull/107272)\r\n- [index names can no longer be escaped with backticks\r\n](https://github.com/elastic/elasticsearch/pull/108431)\r\n\r\nI'm also including a change that translates `=` to `==` in WHERE\r\ncommands, and more useful error messages (map a syntax error to the\r\ncommand where it occurred).\r\n\r\nAs BUCKET is often used for timeseries data and we replaced single and\r\ndouble quotes around index names with backticks, this introduces a high\r\nchance of generating syntactically invalid queries. This PR updates the\r\ndocs and examples and removes the correction from `\"` and `'` to \"`\"","sha":"6004cad53af71564b756e116b6b769a9d595dad6"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/183028","number":183028,"mergeCommit":{"message":"[Obs AI Assistant] Remove ES|QL escaping for index names (#183028)\n\nThere were some last minute changes to ES|QL that will ship in 8.14 that\r\nwe need to take into account:\r\n\r\n- [BUCKET is now an aggregation\r\nfunction](https://github.com/elastic/elasticsearch/pull/107272)\r\n- [index names can no longer be escaped with backticks\r\n](https://github.com/elastic/elasticsearch/pull/108431)\r\n\r\nI'm also including a change that translates `=` to `==` in WHERE\r\ncommands, and more useful error messages (map a syntax error to the\r\ncommand where it occurred).\r\n\r\nAs BUCKET is often used for timeseries data and we replaced single and\r\ndouble quotes around index names with backticks, this introduces a high\r\nchance of generating syntactically invalid queries. This PR updates the\r\ndocs and examples and removes the correction from `\"` and `'` to \"`\"","sha":"6004cad53af71564b756e116b6b769a9d595dad6"}}]}] BACKPORT--> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
- Loading branch information
1 parent
23ed120
commit 8b0de17
Showing
63 changed files
with
468 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...lution/observability_ai_assistant_app/server/functions/query/esql_docs/esql-cast-(::).txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Cast (::) | ||
|
||
The :: operator provides a convenient alternative syntax to the TO_<type> | ||
conversion functions. | ||
```esql | ||
ROW ver = CONCAT(("0"::INT + 1)::STRING, ".2.3")::VERSION | ||
``` |
8 changes: 5 additions & 3 deletions
8
..._solution/observability_ai_assistant_app/server/functions/query/esql_docs/esql-concat.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
...ion/observability_ai_assistant_app/server/functions/query/esql_docs/esql-date_extract.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...tion/observability_ai_assistant_app/server/functions/query/esql_docs/esql-date_format.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
...ution/observability_ai_assistant_app/server/functions/query/esql_docs/esql-date_parse.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.