[CALCITE-500] Fix EnumerableJoin to build the left side and probe the right#691
[CALCITE-500] Fix EnumerableJoin to build the left side and probe the right#691atris wants to merge 2 commits intoapache:masterfrom
Conversation
… as second. This will ensure that smaller side is built and larger side is probed
|
@julianhyde Can you please help review? Thanks |
|
you will need a test, and some descriptions. |
|
Also, the two commits should be squashed together. |
|
Ack, will fix this. I raised some questions on the dev list for the PR,
will update post the resolution on that.
Thanks for reviewing this PR, Michael and Zhen
…On Tue, May 22, 2018 at 8:19 PM, Michael Mior ***@***.***> wrote:
Also, the two commits should be squashed together.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#691 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpO420O6iF8bDCIOavIGzoBMf1jwDxrks5t1CVlgaJpZM4UC2zr>
.
--
Regards,
Atri
*l'apprenant*
|
|
I haven't looked a lot in this issue but the fix seems wrong. I think it breaks LEFT, RIGHT, and FULL outer joins. |
|
Yeah, it isn't correct. I need to fix this sometime.
…On Tue, Sep 25, 2018 at 11:20 PM Stamatis Zampetakis < ***@***.***> wrote:
I haven't looked a lot in this issue but the fix seems wrong. I think it
breaks LEFT, RIGHT, and FULL outer joins.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#691 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpO46QmkpMCP_6l-ZIcREtmODt-pC6wks5uemz4gaJpZM4UC2zr>
.
--
Regards,
Atri
*l'apprenant*
|
|
Yes, it is not valid to just swap |
|
Thanks for the pointer.
…On Tue, Sep 25, 2018 at 11:23 PM Vladimir Sitnikov ***@***.***> wrote:
Yes, it is not valid to just swap rightExpression and leftExpression.
leftResult.physType.generateAccessor(leftKeys) and friends should be
replaced as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#691 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABpO49YK8tGKOcKoG4cPa-fPtzrePqqCks5uem2IgaJpZM4UC2zr>
.
--
Regards,
Atri
*l'apprenant*
|
|
I would be inclined to change the cost function so that left and right inputs are set correctly. That way the implement method would not need to be changed at all. |
|
@zabetak , that depends on the background :) For instance, in Oracle DB the first input is used to build the table. |
|
@atris Are you going to continue working on this issue? |
80f411d to
ca27fe9
Compare
49cb002 to
8768a23
Compare
|
Executor implementation has to be consistent with the planner. That is why I decline this PR in favour of adjusting the cost so it prefers smaller inputs on the right input. See #1712 |
No description provided.