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

   > [!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.
   
   - **Union of windows with different lengths (P2).** Fixed in 
[11638546d59](https://github.com/apache/spark/pull/60283/commits/11638546d5997f303277c62edcdf73bf67a4a34f).
 A union's column keeps the window length only when every child records the 
same one, so a whole-window comparison against such a union gives no cutoff, in 
the analysis check and in eviction.
   - **Findings of P3 severity.** All four are fixed in 
[11638546d59](https://github.com/apache/spark/pull/60283/commits/11638546d5997f303277c62edcdf73bf67a4a34f):
 the downstream effects in both guides, the `baseAdmissionRules` doc, the 
disabled-check numeric test, and a test for the window branch of 
`canTakeRangeCutoff`.
   - **Decision challenge: left semi joins whose only left bound is numeric, 
DATE or TIMESTAMP_NTZ.** We keep the rejection. A left semi join whose bound 
never finalizes the left state is already rejected in other cases, such as one 
without a time constraint, or with an inexact bound on a column without its own 
watermark. A numeric, DATE or TIMESTAMP_NTZ bound is the same kind of case: the 
left state grows without bound. Failing at analysis tells the user so. Users 
who accept that can set `spark.sql.streaming.join.checkFinalization.enabled` to 
`false` and get the earlier behavior, with a warning. Others can move the bound 
onto a TIMESTAMP column computed before the join and start a new checkpoint.
   - **Decision challenge: stored windows shorter than the other input's get no 
cutoff.** Thanks, the lowered cutoff is safe, and we agree it would keep less 
state. We keep the current rule in this PR, because today's rule never loses a 
match, and the change touches the cutoff solver that both the analysis check 
and eviction use, as well as the error message, both guides and the window 
tests. That is better reviewed on its own. We will file a follow-up JIRA for 
it: SPARK-61510.
   - **PR description.** Updated as suggested. The runtime-change paragraph now 
says that an append-mode aggregation over those windows fails at start, and 
that other stateful operators keep those rows and do not emit results that wait 
for the watermark, while update-mode aggregations and deduplication still emit 
rows.
   
   <!-- sp2k-review3 toplevel 60283 -->
   


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