[Obs AI Assistant] Remove ES|QL escaping for index names#183028
Merged
dgieselaar merged 3 commits intoelastic:mainfrom May 9, 2024
Merged
[Obs AI Assistant] Remove ES|QL escaping for index names#183028dgieselaar merged 3 commits intoelastic:mainfrom
dgieselaar merged 3 commits intoelastic:mainfrom
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
CoenWarmer
approved these changes
May 9, 2024
💚 Build Succeeded
Metrics [docs]Canvas Sharable Runtime
HistoryTo update your PR or re-run it, just comment with: cc @dgieselaar |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
May 9, 2024
) There were some last minute changes to ES|QL that will ship in 8.14 that we need to take into account: - [BUCKET is now an aggregation function](elastic/elasticsearch#107272) - [index names can no longer be escaped with backticks ](elastic/elasticsearch#108431) I'm also including a change that translates `=` to `==` in WHERE commands, and more useful error messages (map a syntax error to the command where it occurred). As BUCKET is often used for timeseries data and we replaced single and double quotes around index names with backticks, this introduces a high chance of generating syntactically invalid queries. This PR updates the docs and examples and removes the correction from `"` and `'` to "`" (cherry picked from commit 6004cad)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
May 9, 2024
) (#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>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There were some last minute changes to ES|QL that will ship in 8.14 that we need to take into account:
I'm also including a change that translates
=to==in WHERE commands, and more useful error messages (map a syntax error to the command where it occurred).As BUCKET is often used for timeseries data and we replaced single and double quotes around index names with backticks, this introduces a high chance of generating syntactically invalid queries. This PR updates the docs and examples and removes the correction from
"and'to "`"