Jungtaek Lim created SPARK-61349:
------------------------------------
Summary: Ignore constant-only bounds in stream-stream join state
eviction
Key: SPARK-61349
URL: https://issues.apache.org/jira/browse/SPARK-61349
Project: Spark
Issue Type: Bug
Components: Structured Streaming
Affects Versions: 5.0.0
Reporter: Jungtaek Lim
When a stream-stream join condition contains a conjunct that only compares a
state column with a constant, the eviction-bound inference treats that constant
as a bound.
Example: for {{lt > rt - INTERVAL 5 SECONDS AND CAST(lt AS BIGINT) > 10}}, the
constant cutoff 10 caps eviction forever. At right watermark 39, the valid
range cutoff is 34, so an unmatched left row with {{lt = 20}} must be
finalized. Instead, the left outer join keeps the row and never emits its outer
row.
A constant-only conjunct cannot advance with the watermark. It should be
ignored, while the range bound from the opposite input in the same conjunction
is kept.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]