Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

@joshua-spacetime joshua-spacetime commented Dec 13, 2023

Description of Changes

Before this change we would swap the index and probe sides if

(1) the index side was replaced with a delta table,
(2) the probe side had an index defined on the join field, and
(3) the index side was the return side.

After this change we swap if

(1) the index side has been replaced with a delta table, and
(2) the probe side has an index defined on the join field.

We no longer place restrictions on the rows that are returned.

API and ABI breaking changes

If this is an API or ABI breaking change, please apply the
corresponding GitHub label.

Expected complexity level and risk

How complicated do you think these changes are? Grade on a scale from 1 to 5,
where 1 is a trivial change, and 5 is a deep-reaching and complex change.

This complexity rating applies not only to the complexity apparent in the diff,
but also to its interactions with existing and future code.

If you answered more than a 2, explain what is complex about the PR,
and what other components it interacts with in potentially concerning ways.

@joshua-spacetime joshua-spacetime force-pushed the joshua/refactor/index-join-reorder branch from 1a89622 to 6f21b41 Compare December 13, 2023 19:45
@joshua-spacetime joshua-spacetime changed the title refactor(compiler): Move index join reordering onto IndexJoin itself refactor(compiler): Swap the index and probe sides of an index join Dec 13, 2023
Base automatically changed from joshua/refactor/incremental-evaluation to master December 13, 2023 19:59
@joshua-spacetime joshua-spacetime force-pushed the joshua/refactor/index-join-reorder branch from 6f21b41 to 5e0dfeb Compare December 13, 2023 20:03
Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshua-spacetime joshua-spacetime force-pushed the joshua/refactor/index-join-reorder branch from ae343dd to 274efed Compare December 14, 2023 15:25
Before this change we would swap the index and probe sides if

(1) the index side was replaced with a delta table,
(2) the probe side had an index defined on the join field, and
(3) the index side was the return side.

After this change we swap if

(1) the index side has been replaced with a delta table, and
(2) the probe side has an index defined on the join field.

We no longer place restrictions on the rows that are returned.
@joshua-spacetime joshua-spacetime force-pushed the joshua/refactor/index-join-reorder branch from 274efed to 1dd0d2a Compare December 14, 2023 17:38
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Dec 14, 2023
Merged via the queue into master with commit d30bec1 Dec 14, 2023
@joshua-spacetime joshua-spacetime deleted the joshua/refactor/index-join-reorder branch December 14, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants