Uh oh!
There was an error while loading. Please reload this page.
[opt](paimon) support read paimon variant type using jni reader - #66334
Conversation
hello-stephen
commented
Jul 31, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zhangstar333
commented
Jul 31, 2026
/review |
There was a problem hiding this comment.
Request changes.
Correctness and configuration:
- The default Paimon path still sends raw-convertible Variant files to the native reader, which cannot materialize Paimon's physical Variant group into the new compute-v2 destination.
- Disabling FileScannerV2 selects the separate legacy JNI implementation, where Variant is unsupported and a SQL-NULL row can write its null marker through address zero.
Compatibility:
- In a BE-first rolling upgrade, an old FE can still describe Paimon Variant with the legacy physical type, while the new generic bridge dispatches solely on TYPE_VARIANT and unconditionally casts to ColumnVariantV2.
ABI and lifecycle:
- For a confirmed Variant V2 type, the Java buffer capacities, offset domains, metadata IDs, null placeholder, reset/reuse, nested-column handling, synchronous C++ copy, and release/error cleanup are internally consistent; no additional ownership defect was found.
Tests and coverage:
- The added unit and regression coverage exercises only the forced-JNI V2 route. It does not cover the default native selection, enable_file_scanner_v2=false, or a legacy physical Variant descriptor.
Performance and security:
- No independent performance, authorization, or data-exposure issue was found. The address-zero SQL-NULL write is a memory-safety concern covered inline.
Validation and focus:
- Static review only; no builds or tests were run. The complete PR was reviewed, and no additional user-provided focus was supplied. The repository review skill and required AGENTS.md files were not present in this worktree.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
79d290d to
9f5736dComparezhangstar333
commented
Aug 3, 2026
run buildall |
hello-stephen
commented
Aug 3, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Aug 3, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Aug 3, 2026
FE Regression Coverage ReportIncrement line coverage |
zhangstar333
commented
Aug 4, 2026
run buildall |
hello-stephen
commented
Aug 4, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Aug 4, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Aug 4, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Aug 4, 2026
FE Regression Coverage ReportIncrement line coverage |
zhangstar333
commented
Aug 4, 2026
run buildall |
hello-stephen
commented
Aug 4, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Aug 4, 2026
FE Regression Coverage ReportIncrement line coverage |
hello-stephen
commented
Aug 4, 2026
FE UT Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
### What problem does this PR solve? Issue Number: closeapache#65086 Related PR: apache#66334, apache#66547, apache#66626 Problem Summary: Forward-port Variant V2 decoding across the Paimon Java scanner and native JNI bridge. The reader propagates nested access paths, materializes encoded Variant bytes into ColumnVariantV2, and accepts Paimon required-value leaves for fallback-only Variant arrays. ### Release note Improve Paimon Variant reads with nested projection and native Variant V2 materialization. ### Check List (For Author) - Test: Unit Test - Added Java vector/projection and BE Parquet schema/reader coverage; BE format/check, header hygiene, and FE checkstyle passed. Final compilation and test execution are deferred until all forward-port picks are complete. - Behavior changed: Yes, Paimon Variant reads support nested projection and fallback-array schemas. - Does this need documentation: No
What problem does this PR solve?
Problem Summary:
support read paimon variant type using jni reader
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)