Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plan: distribute more binary joins #472

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

MichaHoffmann
Copy link
Contributor

@MichaHoffmann MichaHoffmann commented Jul 29, 2024

We can distribute if we are either matching on (...) and "..." contains at least one engine label or if we are matching ignoring (...) and "..." does not contain an engine label. If we are matching without either, i.e. X * Y we are implicitly matching ignoring ().

@MichaHoffmann MichaHoffmann requested a review from fpetkovski July 29, 2024 11:40
@MichaHoffmann MichaHoffmann force-pushed the mhoffmann-distribute-more-joins branch 7 times, most recently from 41875c1 to f672dde Compare August 2, 2024 11:20
@fpetkovski
Copy link
Collaborator

I think that we can solve the problem in the engine client by passing partition labels as remote engine labels. This way we don't need to change the engine, we can just add a flag in Thanos to determine which labels should be used to identify a remote engine.

@MichaHoffmann MichaHoffmann force-pushed the mhoffmann-distribute-more-joins branch from f672dde to ee3311b Compare August 5, 2024 11:12
@MichaHoffmann
Copy link
Contributor Author

I think that we can solve the problem in the engine client by passing partition labels as remote engine labels. This way we don't need to change the engine, we can just add a flag in Thanos to determine which labels should be used to identify a remote engine.

Removed the partition labels part and just distribute if the matching contains all engine labels for now!

@MichaHoffmann MichaHoffmann force-pushed the mhoffmann-distribute-more-joins branch 3 times, most recently from fd90edb to de122dc Compare August 5, 2024 11:22
* distribute joins that can be executed within a remote engine

Signed-off-by: Michael Hoffmann <[email protected]>
@MichaHoffmann MichaHoffmann force-pushed the mhoffmann-distribute-more-joins branch from de122dc to d315a56 Compare August 5, 2024 11:22
Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

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

LGTM!

@MichaHoffmann MichaHoffmann merged commit 580dc96 into main Aug 5, 2024
7 checks passed
@GiedriusS GiedriusS deleted the mhoffmann-distribute-more-joins branch August 5, 2024 18:21
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