felipecrv commented on PR #37877:
URL: https://github.com/apache/arrow/pull/37877#issuecomment-1745170021

   > > Would it be enough to require that sizes[i] == 0 when i is null to call 
it a "valid empty list-view"
   > 
   > At least in Rust the rule is that a slice must have an end index less than 
or equal to the length of the data being sliced.
   > 
   > So in this case a slice would be valid iff `sizes[i] + offsets[i] <= 
child_data[0].length()`.
   > 
   > It has been a while since I worked in C++, but if I recall correctly this 
is consistent with the way iterators work as well.
   
   I will rewrite the text saying that non-empty nulls are allowed, then.


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