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

[PR] [core] Allow first-row merge engine for primary-key managed BLOB tables. [paimon]

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

   ## Summary
   
   Allow `merge-engine=first-row` on primary-key tables with managed `blob-field`.
   
   ## Purpose
   
   Primary-key tables with managed `blob-field` (`BLOB`, `ARRAY<BLOB>`, `MAP<K, BLOB>`) were previously restricted to `deduplicate` and `partial-update` in `SchemaValidation`.
   
   The standard MergeTree write path already supports `first-row` (`PrimaryKeyBlobExternalizer` → `KeyValueDataFileWriter` → `.blobref` sidecar). This PR:
   
   - removes the unnecessary schema restriction
   - adds tests for `first-row` + managed BLOB behavior
   - documents the supported configuration in `blob-storage.md`
   
   ## Tests
   
   - [x] `SchemaValidationTest#testPrimaryKeyManagedBlobAllowsFirstRow`
     - schema accepts `first-row` + `blob-field` + `changelog-producer=none`
   - [x] `PrimaryKeyManagedBlobStoreTest#testFirstRowManagedBlobKeepsFirstValue`
     - two commits on the same PK with different managed BLOB payloads
     - read path keeps the first payload (`first-row` semantics)
     - compaction keeps only the first `.blobref` reference, not the second


-- 
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] Allow first-row merge engine for primary-key managed BLOB tables. [paimon]

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


-- 
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] Allow first-row merge engine for primary-key managed BLOB tables. [paimon]

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

   +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