wangyum opened a new pull request #30314:
URL: https://github.com/apache/spark/pull/30314


   ### What changes were proposed in this pull request?
   
   This pr add support resolve SQL query reference a column by an alias, for 
example:
   ```sql
   select id + 1 as new_id, new_id + 1 as new_new_id from range(5);
   ```
   
   Teradata support this feature: 
https://docs.teradata.com/reader/e79ET77~NzPDz~Ykinj44w/MKSYuTyx2UJWXzdHJf3~sQ
   
   ### Why are the changes needed?
   
   To make it easy migrate Teradata query to Spark SQL. 
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to