n-young-db opened a new pull request, #44191:
URL: https://github.com/apache/spark/pull/44191

   ### What changes were proposed in this pull request?
   
   Range operator's `computeStats()` function unsafely casts from `BigInt` to 
`Long` and causes issues downstream with statistics estimation. Adds bounds 
checking to avoid crashing.
   
   ### Why are the changes needed?
   
   Downstream statistics estimation will crash and fail loudly; to avoid this 
and help maintain clean code we should fix this.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   UT
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


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