Skip to content

Short circuit queries where no rows will be returned #13563

@yashmayya

Description

@yashmayya
  • There are numerous types of queries where it is guaranteed that no rows will be returned. For instance - selection only queries with LIMIT 0, group by aggregation queries with LIMIT 0, queries with a filter predicate that is always false, queries where there are 0 segments left after segment pruning etc.
  • Ideally, all these cases should be short circuited (i.e., no actual query execution should occur) and we should only return the data schema. This is currently done for some, but not all the cases.
  • See Fix issue with group by combine operator when limit is zero #13555 (comment) for more details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions