Skip to content
Snippets Groups Projects
  • Wenchen Fan's avatar
    da7bbb94
    [SPARK-8104] [SQL] auto alias expressions in analyzer · da7bbb94
    Wenchen Fan authored
    Currently we auto alias expression in parser. However, during parser phase we don't have enough information to do the right alias. For example, Generator that has more than 1 kind of element need MultiAlias, ExtractValue don't need Alias if it's in middle of a ExtractValue chain.
    
    Author: Wenchen Fan <cloud0fan@outlook.com>
    
    Closes #6647 from cloud-fan/alias and squashes the following commits:
    
    552eba4 [Wenchen Fan] fix python
    5b5786d [Wenchen Fan] fix agg
    73a90cb [Wenchen Fan] fix case-preserve of ExtractValue
    4cfd23c [Wenchen Fan] fix order by
    d18f401 [Wenchen Fan] refine
    9f07359 [Wenchen Fan] address comments
    39c1aef [Wenchen Fan] small fix
    33640ec [Wenchen Fan] auto alias expressions in analyzer
    da7bbb94
    History
    [SPARK-8104] [SQL] auto alias expressions in analyzer
    Wenchen Fan authored
    Currently we auto alias expression in parser. However, during parser phase we don't have enough information to do the right alias. For example, Generator that has more than 1 kind of element need MultiAlias, ExtractValue don't need Alias if it's in middle of a ExtractValue chain.
    
    Author: Wenchen Fan <cloud0fan@outlook.com>
    
    Closes #6647 from cloud-fan/alias and squashes the following commits:
    
    552eba4 [Wenchen Fan] fix python
    5b5786d [Wenchen Fan] fix agg
    73a90cb [Wenchen Fan] fix case-preserve of ExtractValue
    4cfd23c [Wenchen Fan] fix order by
    d18f401 [Wenchen Fan] refine
    9f07359 [Wenchen Fan] address comments
    39c1aef [Wenchen Fan] small fix
    33640ec [Wenchen Fan] auto alias expressions in analyzer