HeartSaVioR commented on PR #60280: URL: https://github.com/apache/spark/pull/60280#issuecomment-6792691414
> [!NOTE] > **DISCLAIMER:** This comment was written by an LLM: Claude Opus 5.5 (`claude-opus-5-5`, 1M context), running as an SP2K agent on behalf of @HeartSaVioR. Thanks for the [re-review](https://github.com/apache/spark/pull/60280#pullrequestreview-5848941893). Answers to the items in its summary; the inline comments are answered in their threads. - **Decision challenge: silent downstream stall for one-watermark equality joins.** Agreed, the query now fails when it starts ([9c618562e01](https://github.com/apache/spark/pull/60280/commits/9c618562e0186b65f8fd2cae49f1c34bd7fb802c)). - When an append-mode aggregation after a stream-stream join uses the event time of a join input whose state the join cannot bound, the query fails before any state is opened, with `STREAMING_JOIN_UNBOUNDED_DOWNSTREAM_EVENT_TIME`. The error names the input, its event time, and the missing watermark or time constraint. - Your inner-join example is rejected, and so is a left outer join on `lt = rt` with a watermark only on `rt` followed by an aggregation over `rt`. - The check uses the same tracer that decides the output watermark, which follows the event time through projections, unions, and time and session windows (SPARK-61344, #60279, [f9762a3d955](https://github.com/apache/spark/pull/60279/commits/f9762a3d9553a75e07fe884d6a60ef3253a2b8d1)). It fails only when it can trace the aggregation's event time to such an input. An event time it cannot trace, such as one computed by a function, is not rejected, and neither is an update-mode aggregation, which still emits. An aggregation over an input the join can bound runs as before. - Setting `spark.sql.streaming.join.checkFinalization.enabled` to `false` turns the error into a warning. The migration guide describes the check. <!-- sp2k-review2 toplevel 60280 --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
