Using the Python interface as example. This creates a StructArray where the field types don't match the child array types:
The above works fine. I didn't find anything that errors (eg conversion to pandas, slicing), also validation passes, but the type actually has the inconsistent child types:
Shouldn't this be disallowed somehow? (it could be checked in the Python from_arrays method, but maybe also in StructArray::Make which already checks for the number of fields vs arrays and a consistent array length).
Similarly to discussion in
ARROW-6132, I would also expect that this the ValidateArray catches this.