clbarnes commented on PR #5222:
URL: https://github.com/apache/arrow-rs/pull/5222#issuecomment-1876917336

   Would it be possible to allow the workflows on this PR to run without 
approval? As the failing tests are dependent on complex and possibly secret CI 
setup.
   
   > Which would imply that the logic in this PR is still overly strict
   
   I think it's OK to be more strict than the HTTP spec on this check, because 
`as_range` is only used to compare that we got the range that we requested, as 
a user is likely to want to then act on the data as if it were the range that 
they requested. If they request a 100-byte range, and then the server returns a 
50-byte range, the user will want to know about it up front even if it's 
technically permissible. If the user didn't care how long the response was, 
they could use an offset. We already treat `get_range` in a rust-y way rather 
than an HTTP-y way (using a right-exclusive range object); the rust behaviour 
is to error if the right bound is beyond the end of the indexed object.


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

Reply via email to