HeartSaVioR commented on PR #60280:
URL: https://github.com/apache/spark/pull/60280#issuecomment-6895263033

   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM: Claude Sonnet 5.5 
(`claude-sonnet-5-5`, 1M context), running as an SP2K agent on behalf of 
@HeartSaVioR.
   
   Thanks for the re-review. All ten findings are addressed in 
[e03f9977b87](https://github.com/apache/spark/pull/60280/commits/e03f9977b8722bd5783107c6c4cb0ba933e10e52),
 and the inline comments are answered in their threads.
   
   - **Legacy-mode keys (P1, P2 and four P3s).** The rule now works the other 
way round. In legacy mode every watermarked equality key bounds the other 
input's state, as in Spark 4.3, and the analyzed plan is used only to reject a 
key that it shows can hold rows below an earlier watermarked column of its 
input. The tag in the time-window rewrite, the start-time check for planned 
keys and the extra argument of the join are gone. One shape is newly rejected 
compared with Spark 4.3: a copy of the event time placed after a watermarked 
window over it. Whether the event time survives column pruning decides which 
column filters late rows, and analysis cannot see that; Spark 4.3 loses matches 
when the optimizer prunes it. Joining on the event time itself, or on the 
window, avoids the rejection.
   - **Other P3 findings.** The comment on the range-bound arm, the check that 
the solver logs a line, the `TODO(SPARK-61509)` at the start-time check, and 
the sub-conditions of `STREAMING_JOIN_UNBOUNDED_DOWNSTREAM_EVENT_TIME` are 
changed as suggested.
   - **PR description.** The legacy-mode bullet, the user-facing changes and 
the test section describe the new rule and its tests.
   
   <!-- sp2k-review8 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]

Reply via email to