Skip to content

Range scan with no overlapping time range in inner and outer query should not do any data scan #20583

Open
@jotarada

Description

@jotarada

Tables partition by timestamp and where inner query predicate combined with outer predicate are exclusive, but the engine still makes the scan for the inner query.

Ex:
This is a iceberg table and it is partition by server_timestamp day
image

The range server_timestamp > timestamp '2024-01-09 20:49:34' and server_timestamp < timestamp '2024-01-09 20:49:34' have no overlapping so the engine should not scan any data and return 0 records.

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