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

   > [!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 both reviews. The inline threads have the details; here are the 
decision challenges.
   
   - Casts to DOUBLE, FLOAT or DECIMAL: we accept the cost, and went further. 
The window is now
     defined only for TIMESTAMP comparisons, so a cast of an event time to any 
number, BIGINT
     included, gives no window. Casting an event time to a number is a legacy 
idiom and we do not
     want to optimize it; such a row reads every row for its key, which is 
always correct.
   - A switch to turn the window off: we keep no switch. The rules are small 
now: only plain
     comparisons of a TIMESTAMP column, shifted only by intervals that add an 
exact duration, give a
     bound, and anything else leaves the end open. They are unit tested at both 
ends of the range,
     and V4 is opt-in through an internal conf.
   - The extra point read for a window open at the top: we keep it for now. It 
is one get on a key
     the range scan has just touched, and it is what keeps rows at 
Long.MaxValue reachable. If a
     q9 measurement with unique auction ids shows it matters, a state store 
scan with an inclusive end
     would remove it, and we can do that as a follow-up.
   
   <!-- sp2k-review10 toplevel 60379 -->
   


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