[ 
https://issues.apache.org/jira/browse/SPARK-50772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan reassigned SPARK-50772:
-----------------------------------

    Assignee: Daniel

> Retain table aliases after SET, EXTEND, DROP operators
> ------------------------------------------------------
>
>                 Key: SPARK-50772
>                 URL: https://issues.apache.org/jira/browse/SPARK-50772
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Daniel
>            Assignee: Daniel
>            Priority: Major
>              Labels: pull-request-available
>
> Per initial feedback from testing, users would like table aliases (such as 
> those mapping to left and right side inputs to a prior join) to remain 
> available after SET, DROP, and EXTEND operators. Here is an example that 
> should work:
>  
> {{values (0), (1) lhs(a)}}
> {{|> inner join values (1), (2) rhs(a) using (a)}}
> {{|> extend lhs.a + rhs.a as z1}}
> {{|> extend lhs.a - rhs.a as z2}}
> {{|> drop z1}}
> {{|> where z2 = 0}}
> {{|> order by lhs.a, rhs.a, z2}}
> {{|> set z2 = 4}}
> {{|> limit 2}}
> {{|> select lhs.a, rhs.a, z2;}}
>  
> 1    1    4



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to