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] Introduce rename expression AST nodes #190360

Open
2 tasks
Tracked by #194385
vadimkibana opened this issue Aug 12, 2024 · 1 comment
Open
2 tasks
Tracked by #194385

[ES|QL] Introduce rename expression AST nodes #190360

vadimkibana opened this issue Aug 12, 2024 · 1 comment
Labels
Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana

Comments

@vadimkibana
Copy link
Contributor

In the RENAME command we do not parse out the list of rename expressions:

RenameCommand = "RENAME" RenameExpression ("," RenameExpression)*

RenameExpression = Identifier "AS" Identifier

Which would have the AST:

{
  type: 'command',
  name: 'rename',
  args: [
    { type: 'rename' },
    { type: 'rename' },
    // ...
  ]
}
  • Introduce the new RenameExpression AST nodes { type: 'rename' }.
  • Make RENAME command produce a list of RenameExpression default arguments (not option arguments).

See more detailed discussion here: #182393 (comment)

@vadimkibana vadimkibana added Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana labels Aug 12, 2024
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana
Projects
None yet
Development

No branches or pull requests

2 participants