Skip to content

Introduce AliasedRelation in logical plan #2164

Closed

Description

@andygrove

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

Activity

  1. self-assigned this
    on Apr 6, 2022
  2. andygrove commented on Apr 14, 2022

    @andygrove
    MemberAuthor

    Fixed in #2172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions