Skip to content

Support SubqueryAlias better in planner #3927

@Dandandan

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
DataFusion has SubqueryAlias in the logical plan. Currently it is only supported to be used in a table scan.
The current code dealing adding alias to projections is relatively complex and brittle.
This limits the usage / support of it for subqueries.

Describe the solution you'd like
Replace the usage of projections with alias with SubqueryAlias. Deprecate usage of Projection with alias.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    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