Skip to content

[BEAM-4294] Join operator translator#2

Closed
VaclavPlajt wants to merge 7 commits intodsl-euphoriafrom
vasek/join
Closed

[BEAM-4294] Join operator translator#2
VaclavPlajt wants to merge 7 commits intodsl-euphoriafrom
vasek/join

Conversation

@VaclavPlajt
Copy link
Copy Markdown
Collaborator

Translation of Euphoria Join suite operators (Inner, Left, Right, Full) into beam transformations. Implementation is centered around JoinTranslator which defines all the translation steps. And implementations of JoinFn which do the actual join on co-gruped elements, inspiration was drawn from org.apache.beam.sdk.extensions.joinlibrary.Join.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • [ x] Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand:
    • What the pull request does
    • Why it does it
    • How it does it
    • Why this approach
  • Each commit in the pull request should have a meaningful subject line and body.
  • Run ./gradlew build to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@VaclavPlajt VaclavPlajt requested review from dmvk and mareksimunek May 16, 2018 08:32
…pplication of windowing in JoinTranslator fixed.
Copy link
Copy Markdown
Owner

@mareksimunek mareksimunek left a comment

Choose a reason for hiding this comment

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

the beginning of processElement for specific Joins is the same. I could be moved to JoinFn which is their parent

c.output(Pair.of(key, outCollector.get()));
}
}
} else if (leftHasValues && !rightHasValues) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

!rightHasValues is always true, you can delete it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in seznam@013b078 This pull request will be closed.

joiner.apply(leftValue, null, outCollector);
c.output(Pair.of(key, outCollector.get()));
}
} else if (!leftHasValues && rightHasValues) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

!leftHasValues is always true, you can delete it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in seznam@013b078 This pull request will be closed.

K key = element.getKey();

Iterable<LeftT> leftSideIter = value.getAll(leftTag);
Iterable<RightT> rightSIdeIter = value.getAll(rightTag);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

variable typo. lowercase i

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in seznam@013b078 This pull request will be closed.

@VaclavPlajt
Copy link
Copy Markdown
Collaborator Author

This pull request is replaced by #seznam#1

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