Skip to content

[ES|QL] Fixes rename wrong validation for asterisc in name#219832

Merged
stratoula merged 4 commits intoelastic:mainfrom
stratoula:fix-rename-validation-wildcards
May 6, 2025
Merged

[ES|QL] Fixes rename wrong validation for asterisc in name#219832
stratoula merged 4 commits intoelastic:mainfrom
stratoula:fix-rename-validation-wildcards

Conversation

@stratoula
Copy link
Contributor

@stratoula stratoula commented May 1, 2025

Summary

Removes the wildcard validation to fix wrong validation like that:

image

This scenario

FROM logst* | RENAME agent* AS meow 

fails already so we are ok I think

Checklist

@prodsecmachine
Copy link
Collaborator

prodsecmachine commented May 1, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@stratoula stratoula added release_note:fix backport:version Backport to applied version labels v9.1.0 v8.19.0 Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// labels May 2, 2025
@stratoula stratoula marked this pull request as ready for review May 2, 2025 05:17
@stratoula stratoula requested a review from a team as a code owner May 2, 2025 05:17
@elasticmachine
Copy link
Contributor

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

@stratoula stratoula mentioned this pull request May 2, 2025
13 tasks
Copy link
Contributor

@drewdaemon drewdaemon left a comment

Choose a reason for hiding this comment

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

Looks good! (Code review)

@stratoula stratoula enabled auto-merge (squash) May 6, 2025 05:02
@stratoula stratoula merged commit f5afb22 into elastic:main May 6, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

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

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #70 / Security Solution - Telemetry Security Telemetry - Indices metadata task telemetry @ess @serverless indices metadata should publish index stats events

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.7MB 3.7MB -259.0B
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 6, 2025
…19832)

## Summary

Removes the wildcard validation to fix wrong validation like that:

<img width="844" alt="image"
src="https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5"
/>

This scenario

```
FROM logst* | RENAME agent* AS meow
```

fails already so we are ok I think

### Checklist
- [ ] [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

(cherry picked from commit f5afb22)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19

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 6, 2025
…19832) (#220194)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ES|QL] Fixes rename wrong validation for asterisc in name
(#219832)](#219832)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2025-05-06T06:48:28Z","message":"[ES|QL]
Fixes rename wrong validation for asterisc in name (#219832)\n\n##
Summary\n\nRemoves the wildcard validation to fix wrong validation like
that:\n\n<img width=\"844\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5\"\n/>\n\n\nThis
scenario\n\n```\nFROM logst* | RENAME agent* AS meow \n```\n\nfails
already so we are ok I think\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"f5afb22941f6008db2f22c1b6fda781e6f9c7e4c","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
Fixes rename wrong validation for asterisc in
name","number":219832,"url":"https://github.com/elastic/kibana/pull/219832","mergeCommit":{"message":"[ES|QL]
Fixes rename wrong validation for asterisc in name (#219832)\n\n##
Summary\n\nRemoves the wildcard validation to fix wrong validation like
that:\n\n<img width=\"844\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5\"\n/>\n\n\nThis
scenario\n\n```\nFROM logst* | RENAME agent* AS meow \n```\n\nfails
already so we are ok I think\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"f5afb22941f6008db2f22c1b6fda781e6f9c7e4c"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219832","number":219832,"mergeCommit":{"message":"[ES|QL]
Fixes rename wrong validation for asterisc in name (#219832)\n\n##
Summary\n\nRemoves the wildcard validation to fix wrong validation like
that:\n\n<img width=\"844\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5\"\n/>\n\n\nThis
scenario\n\n```\nFROM logst* | RENAME agent* AS meow \n```\n\nfails
already so we are ok I think\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"f5afb22941f6008db2f22c1b6fda781e6f9c7e4c"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
…19832)

## Summary

Removes the wildcard validation to fix wrong validation like that:

<img width="844" alt="image"
src="https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5"
/>


This scenario

```
FROM logst* | RENAME agent* AS meow 
```

fails already so we are ok I think

### Checklist
- [ ] [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
qn895 pushed a commit to qn895/kibana that referenced this pull request Jun 3, 2025
…19832)

## Summary

Removes the wildcard validation to fix wrong validation like that:

<img width="844" alt="image"
src="https://github.com/user-attachments/assets/c71ee9a9-539a-40a4-b467-2bedf0111ae5"
/>


This scenario

```
FROM logst* | RENAME agent* AS meow 
```

fails already so we are ok I think

### Checklist
- [ ] [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
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 t// v8.19.0 v9.1.0

5 participants