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

   ## Purpose
   
   Support streaming initial bulk load for `LocalKvDb` without materializing 
all input entries.
   
   ## Changes
   
   - Add a `BulkLoadWriter` API that writes sorted entries directly into 
bounded-size SST files.
   - Publish generated SST files atomically only after `finish()`.
   - Require keys to be strictly increasing, so duplicate keys are rejected 
consistently with RocksDB SST ingestion.
   - Clean up all generated files when validation or writing fails.
   - Keep the existing iterator API as a checked wrapper around the streaming 
writer.
   
   ## Verification
   
   - `mvn -q -pl paimon-common -Pfast-build -DwildcardSuites=none 
'-Dtest=LocalKvDbTest#testBulkLoad+testBulkLoadMultipleSstFiles+testBulkLoadEmptyIterator+testStreamingBulkLoad+testStreamingBulkLoadRejectsDuplicateKeysAndCleansFiles+testBulkLoadValidatesEntryCount+testBulkLoadFailsOnUnsortedEntries+testBulkLoadFailsOnUnorderedSstRanges+testBulkLoadOrderCheckUsesConfiguredComparator'
 test`
   - `mvn -q -pl paimon-common spotless:check -DskipTests`
   - `mvn -q -pl paimon-common -DskipTests compile`
   


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