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/08/10 10:38:58 UTC

[PR] [lance] Reject unsupported VARIANT and BLOB types in LanceFileFormat schema validation [paimon]

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

   ### Purpose
   
   fix #9149
   
   - `LanceRowTypeVisitor` accepted VARIANT and BLOB, but the `paimon-arrow` bridge supports neither.
   - VARIANT writes succeed today, but `SELECT *` fails with a message-less `UnsupportedOperationException` in `Arrow2PaimonVectorConverter#visit(VariantType)` — the written column can never be read back. Rejecting it blocks silent data loss, not a working path.
   - BLOB reaches this visitor only through `blob-descriptor-field` / `blob-view-field`, which require `data-evolution.enabled = true`; those inline BLOBs already fail at INSERT. Managed BLOB columns in dedicated blob files are unaffected.
   - Matches `VortexFileFormat` and `MosaicFileFormat`, which reject both types, and follows #8678 (MULTISET).
   - Related: #9102 (ARRAY element types, merged) — a different method in the same visitor.
   
   ### Tests
   
   - Added `LanceFileFormatTest#testValidateDataFields_UnsupportedVariantType` and `#testValidateDataFields_UnsupportedBlobType`.
   - `mvn -pl paimon-lance -DfailIfNoTests=false clean install` (JDK 11) — 89 tests, 0 failures, 0 errors, 6 skipped. checkstyle, spotless and enforcer passed.
   


-- 
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] [lance] Reject unsupported VARIANT and BLOB types in LanceFileFormat schema validation [paimon]

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

   +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] [lance] Reject unsupported VARIANT and BLOB types in LanceFileFormat schema validation [paimon]

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


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