beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-3914) 'Unzip' flattens before performing fusion
Date Wed, 25 Apr 2018 00:04:00 GMT


ASF GitHub Bot logged work on BEAM-3914:

                Author: ASF GitHub Bot
            Created on: 25/Apr/18 00:03
            Start Date: 25/Apr/18 00:03
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on a change in pull request #4977: [BEAM-3914]
Deduplicate Unzipped Flattens after Pipeline Fusion

 File path: runners/core-construction-java/src/test/java/org/apache/beam/runners/core/construction/graph/
 @@ -0,0 +1,438 @@
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import static;
+import static org.hamcrest.Matchers.containsInAnyOrder;
+import static org.hamcrest.Matchers.empty;
+import static org.hamcrest.Matchers.equalTo;
+import static org.hamcrest.Matchers.hasEntry;
+import static org.hamcrest.Matchers.hasItems;
+import static org.hamcrest.Matchers.hasSize;
+import static org.junit.Assert.assertThat;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+import org.apache.beam.model.pipeline.v1.RunnerApi;
+import org.apache.beam.model.pipeline.v1.RunnerApi.Components;
+import org.apache.beam.model.pipeline.v1.RunnerApi.Environment;
+import org.apache.beam.model.pipeline.v1.RunnerApi.PCollection;
+import org.apache.beam.model.pipeline.v1.RunnerApi.PTransform;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
+/** Tests for {@link OutputDeduplicator}. */
+public class OutputDeduplicatorTest {
+  @Test
+  public void unchangedWithNoDuplicates() {
+    /* When all the PCollections are produced by only one transform or stage, the result
should be
+     * empty//identical to the input.
 Review comment:
   single slash

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:

Issue Time Tracking

    Worklog Id:     (was: 94877)
    Time Spent: 2h 20m  (was: 2h 10m)

> 'Unzip' flattens before performing fusion
> -----------------------------------------
>                 Key: BEAM-3914
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-core
>            Reporter: Thomas Groh
>            Assignee: Thomas Groh
>            Priority: Major
>              Labels: portability
>          Time Spent: 2h 20m
>  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

View raw message