You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "thswlsqls (via GitHub)" <gi...@apache.org> on 2026/07/16 03:01:07 UTC

[PR] [vortex] Reject unsupported element types nested in ARRAY [paimon]

thswlsqls opened a new pull request, #8690:
URL: https://github.com/apache/paimon/pull/8690

   
   ### Purpose
   
   fix #8688
   
   - `VortexRowTypeVisitor.visit(ArrayType)` returned without checking the element type, so unsupported types (`MAP`/`MULTISET`/`VARIANT`/`BLOB`) nested inside an `ARRAY` passed `validateDataFields` even though they are rejected at the top level and inside `ROW`.
   - Recurse into the element type via `arrayType.getElementType().accept(this)`, matching `visit(RowType)`. `ARRAY` of supported types stays valid.
   
   ### Tests
   
   - Added `VortexFileFormatTest#testValidateDataFields_UnsupportedTypeNestedInArray` (`ARRAY<MAP<STRING,INT>>` is rejected) and `#testValidateDataFields_SupportedTypeNestedInArray` (`ARRAY<ARRAY<INT>>` is accepted).
   - `mvn -pl paimon-vortex/paimon-vortex-format test` — 11 tests passed (JDK 11). Native round-trip tests (`*ReadWriteTest`, converter semantic tests) are covered by CI (fork Actions).
   
   


-- 
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


Re: [PR] [vortex] Reject unsupported element types nested in ARRAY [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #8690:
URL: https://github.com/apache/paimon/pull/8690#issuecomment-4988438142

   +1


-- 
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


Re: [PR] [vortex] Reject unsupported element types nested in ARRAY [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #8690:
URL: https://github.com/apache/paimon/pull/8690


-- 
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