Skip to content

[SQL] Remove MapIndex operators after tables with primary keys#5887

Open
mihaibudiu wants to merge 1 commit intomainfrom
issue5842
Open

[SQL] Remove MapIndex operators after tables with primary keys#5887
mihaibudiu wants to merge 1 commit intomainfrom
issue5842

Conversation

@mihaibudiu
Copy link
Contributor

The initial intent of this PR was to allow sharing of indexes between the table integral and any other joins that may use the table. This does not seem to work actually, since DBSP cannot figure out from the graph supplied that the integrals are shareable.

But this optimization is still useful, since it will allow multiple joins of an input table that join on the primary key to share the same index.

I have refactored the previous code to share indexes by moving all classes to a new package and moving many inner classes around. That's why the PR looks bigger.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
Copy link

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM. Clean decomposition of the old monolith into a focused package. The structural circuit assertions in IncrementalRegression2Tests are exactly the right way to test this kind of optimization.

super.postorder(closure);
}
}
}

Choose a reason for hiding this comment

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

Nit: missing newline at end of file.

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.

2 participants