You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "zhuanshenbsj1 (via GitHub)" <gi...@apache.org> on 2026/10/19 04:11:02 UTC

[PR] [core] Validate upstream table row-tracking for BlobView [paimon]

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

   ### Purpose
   BlobView` references an upstream BLOB value by `(table, fieldId, rowId)`, which fundamentally requires the upstream table to enable `'row-tracking.enabled' = 'true'` so that rows have stable `_ROW_ID`s and can be resolved
     via `withRowRanges(...)`.
   
       Previously, when a `BlobView` referenced an upstream table without `row-tracking.enabled` (for example, a primary-key table with BLOB columns or an intermediate primary-key `blob-view` table):
       1. **Write / construction path**: `BlobViewStruct.of(...)`, `Blob.fromView(...)`, Flink `sys.blob_view(...)`, and Spark `sys.blob_view(...)` only checked column existence and `BLOB` type, allowing invalid references to be written silently.
       2. **Read path**: `BlobViewLookup.loadTableDescriptorChunk(...)` attempted to project `SpecialFields.ROW_ID` from `table.rowTypeWithRowId()`, which does not include `_ROW_ID` when row tracking is disabled, failing with a
     confusing internal error:
          `java.lang.IllegalArgumentException: Field _ROW_ID does not exist in table schema.`
   
       This PR adds explicit validation on both the write/construction path and the read path, throwing a clear error message:
       `Upstream table <db.table> referenced by blob view must enable 'row-tracking.enabled'.`
   
   ### Tests
       - BlobViewStructTest#testValidateUpstreamRowTracking
       - BlobTableTest#testBlobViewRejectsNonRowTrackingUpstreamTable (verifies both write-time construction rejection and read-time `BlobViewLookup` rejection)
       - BlobTableITCase#testBlobViewRejectsNonRowTrackingUpstreamTable
       - BlobTestBase` (`blob_view rejects upstream table without row tracking`)
   


-- 
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] [core] Validate upstream table row-tracking for BlobView [paimon]

Posted by "zhuanshenbsj1 (via GitHub)" <gi...@apache.org>.
zhuanshenbsj1 closed pull request #10646: [core] Validate upstream table row-tracking for BlobView
URL: https://github.com/apache/paimon/pull/10646


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