From: Kai Moritz Date: Sat, 6 Jul 2024 07:21:45 +0000 (+0200) Subject: Switched from an inner to a left join X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=43c1ffbf29f53e9a2a560f3fcd666f420d21dc4e;p=demos%2Fkafka%2Fwordcount Switched from an inner to a left join --- diff --git a/pom.xml b/pom.xml index 6063371..4e264b6 100644 --- a/pom.xml +++ b/pom.xml @@ -12,10 +12,10 @@ de.juplo.kafka.streams.demos - stream-stream--inner-join + stream-stream--left-join 1.0.0-SNAPSHOT - Outcome of an Inner Stream/Stream-Join + Outcome of a Left Stream/Stream-Join 21 diff --git a/src/test/java/de/juplo/kafka/streams/join/stream/stream/StreamStreamLeftJoinTest.java b/src/test/java/de/juplo/kafka/streams/join/stream/stream/StreamStreamLeftJoinTest.java index 09410b4..93cc03d 100644 --- a/src/test/java/de/juplo/kafka/streams/join/stream/stream/StreamStreamLeftJoinTest.java +++ b/src/test/java/de/juplo/kafka/streams/join/stream/stream/StreamStreamLeftJoinTest.java @@ -33,7 +33,7 @@ public class StreamStreamLeftJoinTest KStream right = builder.stream(RIGHT); left - .join( + .leftJoin( right, (valueLeft, valueRight) -> valueLeft + "-" + valueRight, WINDOWS) @@ -90,10 +90,10 @@ public class StreamStreamLeftJoinTest assertThatOutcomeIs(); sendLeftAt("F", 120); - assertThatOutcomeIs(); + assertThatOutcomeIs("E-null"); sendRightAt("f", 140); - assertThatOutcomeIs(); + assertThatOutcomeIs("F-null"); sendLeftAt("G", 160); assertThatOutcomeIs();