Skip to content

Enable dynamic filter pushdown for non-inner joins in physical plans #16973

@adriangb

Description

@adriangb

Is your feature request related to a problem or challenge?

In #16954 we are only going to support inner joins because of complexities with other join types.

This would benefit cases such as:

COPY (SELECT 1 AS c1) TO 't1.parquet';
COPY (SELECT 1 AS c1, 2 AS c2) TO 't2.parquet';

CREATE EXTERNAL TABLE t1 (
    c1 INT NOT NULL
)
STORED AS PARQUET
LOCATION  't1.parquet';

CREATE EXTERNAL TABLE t2 (
    c1 INT NOT NULL,
    c2 INT NOT NULL
)
STORED AS PARQUET
LOCATION  't2.parquet';

select *
from t1
left join t2 using (c1)
order by t2.c2
limit 100;

Describe the solution you'd like

An implementation similar to that of the logical optimizer that accounts for the edge cases and allows some filters to be pushed down.

Describe alternatives you've considered

No response

Additional context

No response

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