Skip to content

Replace LIMIT 0 with EmptyRelation` #206

@Dandandan

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Limit 0 should be eliminated / replaced by an empty relation to avoid that they need to scan any data or calculate any results.

Describe the solution you'd like
An optimization rule to replace limit 0 with an EmptyRelation

Describe alternatives you've considered
N/A

Additional context
N/A

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