Skip to content

Join DynamicFilter enhancements #16973

Description

@adriangb

Tracking issue for improvements to dynamic filters w/ joins

Generate filters for more join types

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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