Skip to content

Use union with bind joins as physical (sub)plan for a join with an mreq operator - #759

Merged
hartig merged 1 commit into
mainfrom
mreq2UnionWithBindJoins
Oct 10, 2026
Merged

hartig merged 1 commit into
mainfrom
mreq2UnionWithBindJoins

Conversation

@hartig

@hartig hartig commented Oct 10, 2026

Copy link
Copy Markdown
Member

So far, the logical-to-physical plan converter converted a join between two multi-request (mreq) operators into a symmetric hash join (SHJ) over the two (physical) mreq operators. This PR changes this behavior: Now the resulting physical plan is a union over bind-joins created from the second mreq operator; the first mreq operator is used as input to to all these bind joins (i.e., the physical plan is not a tree anymore but a DAG).

@theray1 This is not yet the new multi-source bind-join algorithm that I am planning to implement, but just a rewriting using the traditional single-source bind-join algorithm, exploiting the fact that HeFQUIN can pipe the output of one operator (the first mreq operator, in this case) as input to multiple operators (in this case, all the bind joins for all the federation members of the second mreq operator). When testing with the q05a_jou_public.sparql query that you gave me, I see a reduction of the plan execution time from around 30,000 ms (=30 secs) for the previous SHJ-based plan down to about 1,000 ms for the bind-join-based plan!!! :-)

/cc @keski

@hartig
hartig merged commit 0c72eb2 into main Oct 10, 2026
1 check passed
@hartig
hartig deleted the mreq2UnionWithBindJoins branch October 10, 2026 21:00
hartig added a commit that referenced this pull request Oct 10, 2026
@hartig hartig mentioned this pull request Oct 11, 2026
hartig added a commit that referenced this pull request Oct 11, 2026
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.

1 participant