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] WHERE replacement ranges correctly generated for every case #209684

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Feb 4, 2025

Summary

fix #204441

It ain't beautiful but it works. I am going to come in with another pr to deal with prefix detection holistically

Checklist

Copy link

cla-checker-service bot commented Feb 4, 2025

💚 CLA has been signed

@drewdaemon drewdaemon added release_note:fix Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana labels Feb 5, 2025
@drewdaemon drewdaemon added v8.18.0 v9.1.0 backport:version Backport to applied version labels labels Feb 5, 2025
@elastic elastic deleted a comment from elasticmachine Feb 5, 2025
@elastic elastic deleted a comment from elasticmachine Feb 5, 2025
@drewdaemon drewdaemon marked this pull request as ready for review February 5, 2025 22:40
@drewdaemon drewdaemon requested a review from a team as a code owner February 5, 2025 22:40
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@drewdaemon
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 3.6MB 3.6MB +130.0B

History

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is kinda of dirty but it dfef fines the bug. LGTM as this is a nasty bug and we want to solve it in 8.18

PS: I updated the labels correctly otherwise the backports wont be created correctly.

@drewdaemon drewdaemon merged commit 4ee3b50 into elastic:main Feb 6, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13182348629

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 6, 2025
…lastic#209684)

## Summary

fix elastic#204441

It ain't beautiful but it works. I am going to come in with another pr
to deal with prefix detection holistically

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4ee3b50)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 6, 2025
…lastic#209684)

## Summary

fix elastic#204441

It ain't beautiful but it works. I am going to come in with another pr
to deal with prefix detection holistically

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4ee3b50)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 6, 2025
…lastic#209684)

## Summary

fix elastic#204441

It ain't beautiful but it works. I am going to come in with another pr
to deal with prefix detection holistically

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4ee3b50)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.x
9.0

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 Feb 6, 2025
…case (#209684) (#210052)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] WHERE replacement ranges correctly generated for every case
(#209684)](#209684)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-02-06T15:36:07Z","message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:ES|QL","Team:ESQL","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[ES|QL]
WHERE replacement ranges correctly generated for every
case","number":209684,"url":"https://github.com/elastic/kibana/pull/209684","mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209684","number":209684,"mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
kibanamachine added a commit that referenced this pull request Feb 6, 2025
…case (#209684) (#210053)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[ES|QL] WHERE replacement ranges correctly generated for every case
(#209684)](#209684)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-02-06T15:36:07Z","message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:ES|QL","Team:ESQL","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[ES|QL]
WHERE replacement ranges correctly generated for every
case","number":209684,"url":"https://github.com/elastic/kibana/pull/209684","mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209684","number":209684,"mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
kibanamachine added a commit that referenced this pull request Feb 6, 2025
… case (#209684) (#210051)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[ES|QL] WHERE replacement ranges correctly generated for every case
(#209684)](#209684)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-02-06T15:36:07Z","message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:ES|QL","Team:ESQL","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[ES|QL]
WHERE replacement ranges correctly generated for every
case","number":209684,"url":"https://github.com/elastic/kibana/pull/209684","mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209684","number":209684,"mergeCommit":{"message":"[ES|QL]
WHERE replacement ranges correctly generated for every case
(#209684)\n\n## Summary\r\n\r\nfix
https://github.com/elastic/kibana/issues/204441\r\n\r\nIt ain't
beautiful but it works. I am going to come in with another pr\r\nto deal
with prefix detection holistically\r\n\r\n### Checklist\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4ee3b50584eec0d596a3aa3694a3d7047ba66002"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
drewdaemon added a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
…lastic#209684)

fix elastic#204441

It ain't beautiful but it works. I am going to come in with another pr
to deal with prefix detection holistically

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
mariairiartef pushed a commit to mariairiartef/kibana that referenced this pull request Feb 7, 2025
…lastic#209684)

## Summary

fix elastic#204441

It ain't beautiful but it works. I am going to come in with another pr
to deal with prefix detection holistically

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:ES|QL ES|QL related features in Kibana release_note:fix Team:ESQL ES|QL related features in Kibana v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ES|QL] Typing after WHERE doesnt work well with suggestions
4 participants