You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/09/12 23:44:28 UTC

[I] [Bug] ARRAY row types fail binary serialization with "type VECTOR not support" [paimon]

LuciferYang opened a new issue, #9772:
URL: https://github.com/apache/paimon/issues/9772

   ### 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).


-- 
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: issues-unsubscribe@paimon.apache.org.apache.org

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


Re: [I] [Bug] ARRAY row types fail binary serialization with "type VECTOR not support" [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi closed issue #9772: [Bug] ARRAY<VECTOR> row types fail binary serialization with "type VECTOR not support"
URL: https://github.com/apache/paimon/issues/9772


-- 
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: issues-unsubscribe@paimon.apache.org

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