holdenk opened a new pull request, #58639:
URL: https://github.com/apache/spark/pull/58639

   ### What changes were proposed in this pull request?
   Validate and fast fail invalid prefix lengths while reading parquet data
   
   ### Why are the changes needed?
   The prefix length in a DELTA_BYTE_ARRAY page is read from the file and was 
used to copy bytes out of the previous value without validation. Reject 
negative prefix lengths and prefix lengths larger than the previous value with 
a ParquetDecodingException, so corrupt pages fail the read deterministically 
instead of producing malformed values or hard-to-diagnose low-level exceptions.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   New unit test
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Yes, claude and cursor


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