[
https://issues.apache.org/jira/browse/BEAM-6231?focusedWorklogId=179404&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-179404
]
ASF GitHub Bot logged work on BEAM-6231:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Dec/18 10:32
Start Date: 28/Dec/18 10:32
Worklog Time Spent: 10m
Work Description: robertwb commented on pull request #7356: [BEAM-6231]
Make Dataflow runner harness work with FixedWindow
URL: https://github.com/apache/beam/pull/7356#discussion_r244295816
##########
File path:
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/graph/CreateExecutableStageNodeFunction.java
##########
@@ -191,6 +195,37 @@ public Node apply(MutableNetwork<Node, Edge> input) {
Iterables.filter(input.nodes(), InstructionOutputNode.class)) {
InstructionOutput instructionOutput = node.getInstructionOutput();
+ // If this is the input PCollection or the output PCollection for an
ExecutableStage, it's
+ // necessary to check whether the window coder is not a GlobalWindow
coder.
+ if (isExecutableStageInputPCollection(input, node)
+ || isExecutableStageOutputPCollection(input, node)) {
+ Coder<?> javaCoder =
+
CloudObjects.coderFromCloudObject(CloudObject.fromSpec(instructionOutput.getCodec()));
+ // For now, Dataflow runner harness only deal with FixedWindow.
+ if (FullWindowedValueCoder.class.isInstance(javaCoder)) {
Review comment:
What I meant was is there any case where javaCoder would not be an instance
of FullWindowedValueCoder?
As for isinstance, FullWindowedValueCoder.class is not dynamic, so there's
no need to use the less-common form here. (Same below.)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 179404)
Time Spent: 1h 40m (was: 1.5h)
> Triage test failures introduced by use_executable_stage_bundle_execution
> ------------------------------------------------------------------------
>
> Key: BEAM-6231
> URL: https://issues.apache.org/jira/browse/BEAM-6231
> Project: Beam
> Issue Type: Test
> Components: runner-dataflow
> Reporter: Boyuan Zhang
> Assignee: Boyuan Zhang
> Priority: Major
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)