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-3193) CoGroupByKey doesn't work in streaming mode
Date Mon, 03 Sep 2018 08:01:00 GMT


ASF GitHub Bot logged work on BEAM-3193:

                Author: ASF GitHub Bot
            Created on: 03/Sep/18 08:00
            Start Date: 03/Sep/18 08:00
    Worklog Time Spent: 10m 
      Work Description: echauchot commented on a change in pull request #5945: [BEAM-3193]
Add SparkCoGroupByKeyStreaming validates runner to test CoGroupByKay bahavior in streaming
mode on spark runner

 File path: runners/spark/src/test/java/org/apache/beam/runners/spark/translation/streaming/
 @@ -0,0 +1,150 @@
+ * 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.
+ */
+package org.apache.beam.runners.spark.translation.streaming;
+import static org.hamcrest.Matchers.containsInAnyOrder;
+import static org.junit.Assert.assertThat;
+import org.apache.beam.runners.spark.ReuseSparkContextRule;
+import org.apache.beam.runners.spark.SparkPipelineOptions;
+import org.apache.beam.runners.spark.StreamingTest;
+import org.apache.beam.sdk.coders.KvCoder;
+import org.apache.beam.sdk.coders.VarIntCoder;
+import org.apache.beam.sdk.testing.PAssert;
+import org.apache.beam.sdk.testing.TestPipeline;
+import org.apache.beam.sdk.transforms.SerializableFunction;
+import org.apache.beam.sdk.transforms.join.CoGbkResult;
+import org.apache.beam.sdk.transforms.join.CoGroupByKey;
+import org.apache.beam.sdk.transforms.join.KeyedPCollectionTuple;
+import org.apache.beam.sdk.transforms.windowing.FixedWindows;
+import org.apache.beam.sdk.transforms.windowing.Window;
+import org.apache.beam.sdk.values.KV;
+import org.apache.beam.sdk.values.PCollection;
+import org.apache.beam.sdk.values.TimestampedValue;
+import org.apache.beam.sdk.values.TupleTag;
+import org.joda.time.Duration;
+import org.joda.time.Instant;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+/** A test that verifies that CoGroupByKey works in streaming mode in spark runner. */
+public class SparkCoGroupByKeyStreamingTest {
+  private static final Logger LOG = LoggerFactory.getLogger(SparkCoGroupByKeyStreamingTest.class);
 Review comment:

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: 140490)
    Time Spent: 1.5h  (was: 1h 20m)

> CoGroupByKey doesn't work in streaming mode
> -------------------------------------------
>                 Key: BEAM-3193
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-spark
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Etienne Chauchot
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
> The CoGroupByKey PTransform doesn't throw an exception but doesn't actually perform the
grouping when used in streaming mode. I will attach a test pipeline.

This message was sent by Atlassian JIRA

View raw message