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

   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM: Claude Sonnet 5.5 
(`claude-sonnet-5-5`, 1M context) and Claude Opus 5.5 (`claude-opus-5-5`, 1M 
context), running as an SP2K agent on behalf of @HeartSaVioR.
   
   Thanks for the re-review. Answers to the items in its summary; the inline 
comments are answered in their threads.
   
   - **Forward-shifted equality keys on restart (P1).** Fixed in 
[738ebe585c9](https://github.com/apache/spark/pull/60280/commits/738ebe585c98779d084c4c661c1b27a71ecbc8de).
 The restart check now accepts a key that shifts one input's event time 
forward, when no later stateful operator reads the shifted input's event time. 
Backward shifts stay rejected.
   - **Legacy-mode window keys (P1).** We keep this out of this stack, and 
SPARK-61448 tracks it. The reasons are in the thread: the case needs an 
internal conf set to `false`, no existing checkpoint of this shape can restart 
anyway, no result is wrong, and a mistake in the fix would drop rows.
   - **Findings of P3 severity.** All five are fixed in 
[738ebe585c9](https://github.com/apache/spark/pull/60280/commits/738ebe585c98779d084c4c661c1b27a71ecbc8de):
 the guides on backward shifts, the warning text with the check disabled, the 
test for the range-bound arm of the disabled-check rule, the Spark 4.3.0 
checkpoint that holds a NULL key, and the error text for an input that the join 
evicts without a bound on its event time.
   - **Decision challenge: start-time check scope for held watermarks.** Thanks 
for the worked examples. We agree that all three stall for the same reason. In 
this stack we keep the current scope: the check judges the nearest join and 
append-mode aggregations. Covering a later outer join, event-time timeouts, and 
an aggregation behind a later join needs the check to follow the propagated 
watermark through later joins, not only the nearest join's state bound. It also 
touches every stateful operator kind. We will do that in a follow-up, 
SPARK-61509, with the same conf to turn the error into a warning. Until then, 
the migration guide says that such operators keep running and do not emit 
results that wait for the watermark.
   - **PR description.** Updated as suggested. The start-time bullet now says 
that the query also fails when the join evicts an input's state but gives its 
event time no bound, and the Docs bullet says that a backward shift by a 
day-time interval of 24 hours or more does not count either.
   
   <!-- sp2k-review3 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