elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

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

Open vadimkibana opened 3 months ago

vadimkibana commented 3 months ago

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' },
    // ...
  ]
}

See more detailed discussion here: https://github.com/elastic/kibana/discussions/182393#discussioncomment-10313313

elasticmachine commented 3 months ago

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