Hi Nicolas,
sorry for the late reply...
The problem you are facing is related to Kafka Streams left- (and
outer-)window-join semantics. It's not SQL...
If we have a left-join and we get the first input from for the left
side, the window of the right input is empty, and we just emit
<key:join(v-left, null)> because we do not know if there will be any
input for the right side later on (if we do not emit, we might miss this
result).
However, if we later get an input for the right input, we also emit
<key:join(v-left,v-right)> what is the correct result -- the previous
result record is "wrong" with respect to SQL semantics. But we cannot
undo it. We do this, because if we start to delay this first output to
see if we get an actual join result or not later on, we open Pandora's
Box of what-if cases... (also with respect to late arriving, ie,
out-of-order, records).
One thing you could do, is to make sure (would be best effort only) that
the right input in a left join is processed first, ie, windows are fully
populated, before left input is processed. You could try to manipulate
timestamps to achieve this. This would at least minimize the probability
to get "wrong" <key:join(v-left:null)> record in the output.
-Matthias
> <
https://groups.google.com/forum/#!topic/confluent-platform/rn8CJu7Wfcw>)
>
> --
> You received this message because you are subscribed to the
> Google Groups "Confluent Platform" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to
>
confluent-platf...@googlegroups.com <javascript:>.
> To post to this group, send email to
>
confluent...@googlegroups.com <javascript:>.
> <
https://groups.google.com/d/msgid/confluent-platform/04a1bcee-f697-40f5-92ef-78b5f3e9d179%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <
https://groups.google.com/d/optout>.
>
>
>
>
> --
> *Michael G. Noll*
> Product Manager | Confluent
>
+1 650 453 5860 | @miguno <
https://twitter.com/miguno>
> Follow us: Twitter <
https://twitter.com/ConfluentInc> | Blog
> <
http://www.confluent.io/blog>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Confluent Platform" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
confluent-platf...@googlegroups.com
> <mailto:
confluent-platf...@googlegroups.com>.
> <mailto:
confluent...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/confluent-platform/1a78056b-8981-4592-816d-ac307432ab2c%40googlegroups.com
> <
https://groups.google.com/d/msgid/confluent-platform/1a78056b-8981-4592-816d-ac307432ab2c%40googlegroups.com?utm_medium=email&utm_source=footer>.