andygrove opened a new issue, #2164:
URL: https://github.com/apache/arrow-datafusion/issues/2164

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   If I have a SQL query such as `SELECT * FROM person AS peeps` there is no 
way to extract the original table name `person` from the logical plan. It looks 
like the alias name is pushed down to the `TableScan` node and the original 
name is discarded.
   
   **Describe the solution you'd like**
   
   I would like to include an `AliasedRelation` node to better represent the 
query. 
   
   For example:
   
   ```
   Projection(*)
     AliasedRelation(name="peeps")
       TableScan(name="person")
   ```
   
   This would not change the physical plan.
   
   **Describe alternatives you've considered**
   None
   
   **Additional context**
   None
   


-- 
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.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to