Bug description
ARRAY<VECTOR(n)> is accepted by schema validation and readable via ColumnarArray.getVector, but the binary data path rejects it:
InternalArray.createElementGetter has no VECTOR case, and InternalArraySerializer builds its element getter eagerly in the constructor, so building a serializer over such a row type throws IllegalArgumentException("type VECTOR not support in ...").
BinaryArray.calculateFixLengthPartSize and BinaryRow-style getDataClass (InternalRow.getDataClass) also lack VECTOR, so even past construction, serializing/copying such an array throws Unsupported type: VECTOR<...>.
BinaryArray.getVector is an unconditional throw.
Concrete failing flow: a primary-key table with an ARRAY<VECTOR(3)> column — the local merge (SortBufferLocalMerger → InternalRowSerializer.toBinaryRow) serializes the row and crashes.
Expected behavior
Nested VECTOR should flow through the same binary accessors as ARRAY/MAP/ROW (the row-level getVector and BinaryWriter.writeVector/InternalVectorSerializer already support it).
Bug description
ARRAY<VECTOR(n)>is accepted by schema validation and readable viaColumnarArray.getVector, but the binary data path rejects it:InternalArray.createElementGetterhas noVECTORcase, andInternalArraySerializerbuilds its element getter eagerly in the constructor, so building a serializer over such a row type throwsIllegalArgumentException("type VECTOR not support in ...").BinaryArray.calculateFixLengthPartSizeandBinaryRow-stylegetDataClass(InternalRow.getDataClass) also lack VECTOR, so even past construction, serializing/copying such an array throwsUnsupported type: VECTOR<...>.BinaryArray.getVectoris an unconditional throw.Concrete failing flow: a primary-key table with an
ARRAY<VECTOR(3)>column — the local merge (SortBufferLocalMerger→InternalRowSerializer.toBinaryRow) serializes the row and crashes.Expected behavior
Nested VECTOR should flow through the same binary accessors as ARRAY/MAP/ROW (the row-level
getVectorandBinaryWriter.writeVector/InternalVectorSerializeralready support it).