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

   > [!NOTE]
   > **DISCLAIMER:** This comment was written by an LLM: Claude Opus 5.5 
(`claude-opus-5-5`, 1M context) and 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 three findings are answered in their threads, 
with the changes in 
[d38d50da16e](https://github.com/apache/spark/pull/60284/commits/d38d50da16ec25724332de6ccdf965e7fc6d16dd).
   
   - **Admission rejects bounds that the solver reads only after optimization 
(P1).** The admission check now solves the condition in the form the optimizer 
gives eviction: foldable expressions become literals and a NOT over a 
comparison becomes the opposite comparison. Bounds such as `lt > rt - INTERVAL 
1 SECOND * 5` beside `CAST(lt AS BIGINT) > 10` count at start again, and the 
admission rule of earlier versions still reads the analyzed condition.
   - **Constant cap dropped beside a negated watermark term (P1, still 
raised).** Fixed in this PR. We had answered that #60286 closes it, which is 
wrong for a build with this PR and without #60286. The rule that gives a bound 
with a negated term on the other input's event time, or a sum of both event 
times, no cutoff now lives here, and #60286 keeps the end-to-end tests.
   - **Nit (P3).** The `baseAdmissionRules` doc names the TIMESTAMP-or-window 
rule, the watermark-term rules and both callers.
   - **Cross-cutting observation.** We checked the fixes against bounds that 
the solver over-estimates or reads only after optimization. The constant cap is 
gone for bounds with an exact term, the negated and summed forms give no 
cutoff, and the optimized form is solved at admission, so none of them depends 
on the optimizer folding the condition.
   
   <!-- sp2k-review11 toplevel 60284 -->
   


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