branch-4.1: [feature](paimon) Paimon write support via JNI#65868
Open
suxiaogang223 wants to merge 3 commits into
Open
branch-4.1: [feature](paimon) Paimon write support via JNI#65868suxiaogang223 wants to merge 3 commits into
suxiaogang223 wants to merge 3 commits into
Conversation
### What problem does this PR solve? Issue Number: None Related PR: apache#65381 Problem Summary: Doris 4.1 can read Paimon external tables but does not have a write path. This backport adds INSERT INTO and INSERT OVERWRITE through a JNI bridge to the Paimon Java SDK, including planner and transaction integration, type conversion, partitioned writes, commit and abort handling, outcome reconciliation, and Doris-managed spill paths. The backport preserves the branch-4.1 JDBC-specific sink and FileSystemProvider APIs while adapting the Paimon sink plan copies to the branch-4.1 Nereids interfaces. ### Release note Add Paimon external table write support through JNI. ### Check List (For Author) - Test: Unit Test - `./build.sh --fe --be-java-extensions` - `./run-fe-ut.sh --run org.apache.doris.datasource.paimon.PaimonTransactionTest,org.apache.doris.paimon.PaimonJniWriterTest,org.apache.doris.nereids.parser.ParseInsertPartitionSpecTest` - `JAVA_TOOL_OPTIONS="--add-opens=java.base/java.nio=ALL-UNNAMED" ./run-fe-ut.sh --run org.apache.doris.paimon.PaimonJniWriterTest` - Behavior changed: Yes, Paimon external tables support INSERT INTO and INSERT OVERWRITE - Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
suxiaogang223
marked this pull request as ready for review
July 22, 2026 03:35
Member
Author
|
run buildall |
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement Paimon table write support (INSERT INTO / INSERT OVERWRITE) for Doris via JNI, bridging to the Paimon Java SDK. The architecture uses a single-writer model (analogous to Iceberg) with partition and bucket routing delegated to the Paimon SDK.
Architecture
Changes
Not Included