andishgar commented on issue #46485: URL: https://github.com/apache/arrow/issues/46485#issuecomment-2893719092
> > 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, even when the array is built with only half the expected number of values (0..8). This is because fixed_size_list uses a single bitmap layout. As a result, the int32() bitmap layout is ignored in the code below, and only one data layout remains — which happens to match the int32 layout. 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