[
https://issues.apache.org/jira/browse/BEAM-3914?focusedWorklogId=86873&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-86873
]
ASF GitHub Bot logged work on BEAM-3914:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Apr/18 00:06
Start Date: 03/Apr/18 00:06
Worklog Time Spent: 10m
Work Description: tgroh commented on a change in pull request #4977:
[BEAM-3914] Deduplicate Unzipped Flattens after Pipeline Fusion
URL: https://github.com/apache/beam/pull/4977#discussion_r178683015
##########
File path:
runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/graph/GreedyPipelineFuserTest.java
##########
@@ -452,26 +466,59 @@ public void
flattenWithHeterogenousInputsAndOutputsEntirelyMaterialized() {
FusedPipeline fused =
GreedyPipelineFuser.fuse(Pipeline.newBuilder().setComponents(components).build());
+ assertThat(fused.getRunnerExecutedTransforms(), hasSize(3));
assertThat(
+ "The runner should include the impulses for both languages, plus an
introduced flatten",
fused.getRunnerExecutedTransforms(),
- containsInAnyOrder(
+ hasItems(
PipelineNode.pTransform("pyImpulse",
components.getTransformsOrThrow("pyImpulse")),
PipelineNode.pTransform("goImpulse",
components.getTransformsOrThrow("goImpulse"))));
+
+ PTransformNode flattenNode = null;
+ for (PTransformNode runnerTransform : fused.getRunnerExecutedTransforms())
{
+ if (!(runnerTransform.getId().equals("pyImpulse")
+ || runnerTransform.getId().equals("goImpulse"))) {
+ flattenNode = runnerTransform;
Review comment:
Yes; we still need the loop, because the fuser doesn't care what the id of
the introduced flatten is, but we can find the is the flatten of the partial
PCollections via inspecting its output.
----------------------------------------------------------------
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: 86873)
Time Spent: 1h 10m (was: 1h)
> 'Unzip' flattens before performing fusion
> -----------------------------------------
>
> Key: BEAM-3914
> URL: https://issues.apache.org/jira/browse/BEAM-3914
> Project: Beam
> Issue Type: Improvement
> Components: runner-core
> Reporter: Thomas Groh
> Assignee: Thomas Groh
> Priority: Major
> Labels: portability
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> This consists of duplicating nodes downstream of a flatten that exist within
> an environment, and reintroducing the flatten immediately upstream of a
> runner-executed transform (the flatten should be executed within the runner)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)