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

   > [!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/60282#pullrequestreview-5850492687).
 Answers to the items in its summary; the inline comments are answered in their 
threads.
   
   - **The output-watermark narrowing cuts both ways.** Agreed, and both sides 
are fixed in SPARK-61344 (#60279, 
[f9762a3d955](https://github.com/apache/spark/pull/60279/commits/f9762a3d9553a75e07fe884d6a60ef3253a2b8d1)).
 The tracer now follows unions, sliding windows, session windows and more 
consumer kinds. On the first batch after restoring a checkpoint pinned to an 
older generation, every join scans its V4 eviction index from the start, as on 
a query's first batch. That fix applies to every join, so it also protects the 
plans that the wider tracer now narrows.
   - **The first-batch generation check decides each join on its own.** Both 
separate fixes landed in SPARK-61344 (#60279, 
[f9762a3d955](https://github.com/apache/spark/pull/60279/commits/f9762a3d9553a75e07fe884d6a60ef3253a2b8d1)).
 The check now asks the output-watermark tracer whether a stateful operator 
after the join reads the event time of an input that neither version bounds, 
and accepts the checkpoint when none does; this covers key-only joins. The 
first scan after accepting an older checkpoint starts at the beginning of the 
V4 index, so a chained V4 join no longer skips rows.
   - **Shared repair plan 1.** Done as planned, with a pair of tests for each 
recognized path and consumer kind; see the replies on the tracer and test 
threads 
([f9762a3d955](https://github.com/apache/spark/pull/60279/commits/f9762a3d9553a75e07fe884d6a60ef3253a2b8d1)).
 One difference: a window computed after a union is pushed into each union 
input by the optimizer, and the copy in the inputs after the first loses the 
window marker, so a join there still holds back for both inputs. That keeps 
results correct.
   - **PR description.** Updated. The description now says that a column 
without its own watermark gets no cutoff from an interval of a day or more, 
such as `INTERVAL 1 DAY` or `INTERVAL 48 HOURS`, or from a truncating cast, in 
every session time zone, including UTC 
([0ad26f2a1fa](https://github.com/apache/spark/pull/60282/commits/0ad26f2a1fadc24b49703e6d3d849eaf80f650e1)).
 The rule no longer depends on the zone; see the reply on the V4 layout thread.
   
   <!-- sp2k-review2 toplevel 60282 -->
   


-- 
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