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

Fix getVariableColumns() for TwoColumnJoin fixes #256 #259

Merged
merged 2 commits into from Jun 26, 2019
Merged

Fix getVariableColumns() for TwoColumnJoin fixes #256 #259

merged 2 commits into from Jun 26, 2019

Conversation

niklas88
Copy link
Member

TwoColumnJoin currently only implements a special case. The more general
case is prevented from use by a high cost (this is the current state of
affairs not introduced by this PR).

However for that special case the column mapping was bogus. The old code
assumed that the columns are both sides concatenated with the join
columns removed from the right side. So the same as for normal Join.
However with the special case one side is only join columns and we take
the column mapping always from the other side.

This is still a bit more ugly than I'd like but it's a clear improvement over the
current state, also the way the non-implemented case was avoided with a large cost
is at least better documented now.

TwoColumnJoin currently only implements a special case. The more general
case is prevented from use by a high cost (this is the current state of
affairs not introduced by this PR).

However for that special case the column mapping was bogus. The old code
assumed that the columns are both sides concatenated with the join
columns removed from the right side. So the same as for normal Join.
However with the special case one side is only join columns and we take
the column mapping always from the other side.
@niklas88 niklas88 mentioned this pull request Jun 19, 2019
@niklas88 niklas88 changed the title Fix getVar…Columns() for TwoColumnJoin fixes #256 Fix getVariableColumns() for TwoColumnJoin fixes #256 Jun 19, 2019
Copy link
Member

@floriankramer floriankramer left a comment

Choose a reason for hiding this comment

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

LGTM

@niklas88 niklas88 merged commit 93448a8 into ad-freiburg:master Jun 26, 2019
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.

None yet

2 participants