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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to