Skip to content

[ES|QL] suggest pipe after single column in EVAL#221851

Merged
drewdaemon merged 33 commits intoelastic:mainfrom
drewdaemon:some-small-changes
May 30, 2025
Merged

[ES|QL] suggest pipe after single column in EVAL#221851
drewdaemon merged 33 commits intoelastic:mainfrom
drewdaemon:some-small-changes

Conversation

@drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented May 28, 2025

Summary

Previously, we weren't considering an assignment with a single field name to be a "complete" expression in EVAL. This changes that because it seems like people are using EVAL for this, even though we also have a RENAME command.

Screen.Recording.2025-05-28.at.2.28.25.PM.mov

@drewdaemon drewdaemon added Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// backport:version Backport to applied version labels v9.1.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes labels May 28, 2025
@drewdaemon drewdaemon marked this pull request as ready for review May 29, 2025 04:20
@drewdaemon drewdaemon requested a review from a team as a code owner May 29, 2025 04:20
@elasticmachine
Copy link
Contributor

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

@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.7MB 3.7MB +5.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.

I noticed that too 👍

@drewdaemon drewdaemon merged commit 8659427 into elastic:main May 30, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 30, 2025
## Summary

Previously, we weren't considering an assignment with a single field
name to be a "complete" expression in `EVAL`. This changes that because
it seems like people are using `EVAL` for this, even though we also have
a `RENAME` command.

https://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac
(cherry picked from commit 8659427)
@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 30, 2025
…22087)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ES|QL] suggest pipe after single column in EVAL
(#221851)](#221851)

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

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

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-05-30T15:46:33Z","message":"[ES|QL]
suggest pipe after single column in EVAL (#221851)\n\n##
Summary\n\nPreviously, we weren't considering an assignment with a
single field\nname to be a \"complete\" expression in `EVAL`. This
changes that because\nit seems like people are using `EVAL` for this,
even though we also have\na `RENAME`
command.\n\n\n\nhttps://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac","sha":"865942742ae00b0d1146f596f11dcb2e54bdb1dc","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
suggest pipe after single column in
EVAL","number":221851,"url":"https://github.com/elastic/kibana/pull/221851","mergeCommit":{"message":"[ES|QL]
suggest pipe after single column in EVAL (#221851)\n\n##
Summary\n\nPreviously, we weren't considering an assignment with a
single field\nname to be a \"complete\" expression in `EVAL`. This
changes that because\nit seems like people are using `EVAL` for this,
even though we also have\na `RENAME`
command.\n\n\n\nhttps://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac","sha":"865942742ae00b0d1146f596f11dcb2e54bdb1dc"}},"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/221851","number":221851,"mergeCommit":{"message":"[ES|QL]
suggest pipe after single column in EVAL (#221851)\n\n##
Summary\n\nPreviously, we weren't considering an assignment with a
single field\nname to be a \"complete\" expression in `EVAL`. This
changes that because\nit seems like people are using `EVAL` for this,
even though we also have\na `RENAME`
command.\n\n\n\nhttps://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac","sha":"865942742ae00b0d1146f596f11dcb2e54bdb1dc"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
zacharyparikh pushed a commit to zacharyparikh/kibana that referenced this pull request Jun 4, 2025
## Summary

Previously, we weren't considering an assignment with a single field
name to be a "complete" expression in `EVAL`. This changes that because
it seems like people are using `EVAL` for this, even though we also have
a `RENAME` command.



https://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
## Summary

Previously, we weren't considering an assignment with a single field
name to be a "complete" expression in `EVAL`. This changes that because
it seems like people are using `EVAL` for this, even though we also have
a `RENAME` command.



https://github.com/user-attachments/assets/eab58527-ebfa-45bc-abb1-63b996ebbeac
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:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants