andishgar commented on issue #46485:
URL: https://github.com/apache/arrow/issues/46485#issuecomment-2893733972

   > > Hmm. The important part is that `fixed_size_list(int32(), 2)` -view-> 
`list_view(int32())` -view-> `fixed_size_list(int32(), 2)` doesn't work, right? 
[@pitrou](https://github.com/pitrou) What do you think about this behavior?
   > 
   > I don't know how it would be possible to view a fixed-size list as a 
variable-size list, even though there is no offsets or views buffer available. 
It should probably return a TypeError.
   
   @pitrou As I mentioned 
[here](https://github.com/apache/arrow/issues/46485#issuecomment-2893193246), 
no type error is emitted during the conversion from` 
list_view(fixed_size_list(int32, 2))` to `list_view(int32),` even when the 
array is built with only half the expected number of values (0..8). This 
happens because `fixed_size_list` uses a single bitmap layout. Consequently, 
the` int32 `bitmap layout is ignored in the code, and only one data layout 
remains — which coincidentally matches the layout of int32.
   
   
https://github.com/apache/arrow/blob/a1707dba7c9ec4265c048586c485c526048cf162/cpp/src/arrow/array/data.cc#L873-L880


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to