Jungtaek Lim created SPARK-61989:
------------------------------------

             Summary: Stream-stream join evicts equality-key state by a key 
that the opposite watermark does not bound
                 Key: SPARK-61989
                 URL: https://issues.apache.org/jira/browse/SPARK-61989
             Project: Spark
          Issue Type: Bug
          Components: Structured Streaming
    Affects Versions: 5.0.0
            Reporter: Jungtaek Lim


With watermarks on different equality keys ({{la = ra AND lb = rb}}, watermarks 
on
{{la}} and {{rb}}), both inputs' state is evicted by {{la}}. Future right rows 
are bounded only on
{{rb}}, so left rows are evicted while they can still match. Full outer join: 
left {{(5, 50)}} is
emitted as {{(5, 50, null, null)}} at watermark 40 s, and the later right {{(5, 
50)}} as
{{(null, null, 5, 50)}}, instead of one match. Fix: evict each side by the 
opposite input's
watermarked key.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to