From: Kai Moritz Date: Fri, 5 Jul 2024 22:06:14 +0000 (+0200) Subject: Outer Join! X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=db612b6c79c01dbde03eb85d2ebe6454e3c91bd0;p=demos%2Fkafka%2Fwordcount Outer Join! --- diff --git a/pom.xml b/pom.xml index 4e264b6..c7173ed 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ de.juplo.kafka.streams.demos - stream-stream--left-join + stream-stream--outer-join 1.0.0-SNAPSHOT Outcome of a Left Stream/Stream-Join diff --git a/src/test/java/de/juplo/kafka/wordcount/counter/StreamStreamJoinTopologyTest.java b/src/test/java/de/juplo/kafka/wordcount/counter/StreamStreamJoinTopologyTest.java index 1d39a00..66ce22a 100644 --- a/src/test/java/de/juplo/kafka/wordcount/counter/StreamStreamJoinTopologyTest.java +++ b/src/test/java/de/juplo/kafka/wordcount/counter/StreamStreamJoinTopologyTest.java @@ -31,7 +31,7 @@ public class StreamStreamJoinTopologyTest KStream right = builder.stream(RIGHT); left - .leftJoin( + .outerJoin( right, (valueLeft, valueRight) -> valueLeft + "-" + valueRight, JoinWindows.ofTimeDifferenceAndGrace( @@ -96,7 +96,7 @@ public class StreamStreamJoinTopologyTest assertThatOutcomeIs("F-null"); sendLeftAt("G", 100); - assertThatOutcomeIs(); + assertThatOutcomeIs("null-f"); }