When attempting to CombineChunks() on an arrow::Table containing a FixedSizeList type Array, the child arrays of the FixedSizeLists are not properly concatenated. The lengths of the child array being set incorrectly. I ran into this when trying to ToString() the combined RecordBatch.
This seems to be because this function in :
... used to calculate offsets and slice lengths before actual concatenation doesn't take the list lengths into account.
The bug can be reproduced by adding the following unit test to:
One possible approach to fix this would be to add another ChildData overload to ConcatenateImpl with a multiplier parameter, and multiply the offset and length of the slice by the multiplier. This function can be called by the FixedSizeList Visitor and be supplied with the list length as multiplier.
I have this fix ready but would like to know if this would be the right approach.