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
[BEAM-1327] Replace OutputTimeFn UDF with TimestampCombiner enum #2683
Conversation
An actual important change that occurred here is this:
|
1bcb833
to
b19729d
Compare
R: @tgroh since you are on a roll reviewing epic renames :-) |
Gonna try to see if Jenkins is back |
retest this please |
return TimestampCombiner.END_OF_WINDOW; | ||
case LATEST_IN_PANE: | ||
return TimestampCombiner.LATEST; | ||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case UNRECOGNIZED? otherwise comment is a bit iffy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -321,4 +323,33 @@ public void merge(Collection<W> toBeMerged, W mergeResult) throws Exception { | |||
earlierEndingWindow = window; | |||
} | |||
} | |||
|
|||
private static Instant assignOutputTime(TimestampCombiner timestampCombiner, Instant inputTimestamp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the catches. I'll squash and verify thoroughly before pushing.
return TimestampCombiner.END_OF_WINDOW; | ||
case LATEST_IN_PANE: | ||
return TimestampCombiner.LATEST; | ||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -321,4 +323,33 @@ public void merge(Collection<W> toBeMerged, W mergeResult) throws Exception { | |||
earlierEndingWindow = window; | |||
} | |||
} | |||
|
|||
private static Instant assignOutputTime(TimestampCombiner timestampCombiner, Instant inputTimestamp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
e20137d
to
71f965b
Compare
This also removes the last dependency from SDK core to Runner API proto.
71f965b
to
f38e427
Compare
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull request
mvn clean verify
. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>
in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.