You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/12/28 20:57:55 UTC

[GitHub] [kafka] mjsax commented on a diff in pull request #12608: Enable KStream to be merged with itself

mjsax commented on code in PR #12608:
URL: https://github.com/apache/kafka/pull/12608#discussion_r1058585746


##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/KStreamImplTest.java:
##########
@@ -1694,6 +1694,28 @@ public void shouldMergeMultipleStreams() {
             processorSupplier.theCapturedProcessor().processed());
     }
 
+    @Test
+    public void shouldMergeSameStreams() {
+        final String topic1 = "topic-1";
+
+        final KStream<String, String> source = builder.stream(topic1);
+        final KStream<String, String> merged = source.merge(source);
+
+        merged.process(processorSupplier);
+
+        System.out.println(builder.build().describe());

Review Comment:
   We should not have `println` calls inside tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org