[core] Normalize Arrow layouts for upserts and data evolution updates #1144
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 278 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1144"
general
weight: 0.35
JeonDaehong
Purpose
Keep PyPaimon's existing large-string upserts on Native execution, including strings used as match keys, partition fields and nested values. PyPaimon currently falls back because core write normalization rejects
LargeUtf8for the canonicalUtf8STRING representation.PyPaimon integration: apache/paimon#10624. Its Native CI continues to build Rust main and requires this change first.
Testing this path also exposes a DE update failure for ROW/ARRAY/MAP types with required children: runtime read schemas relax nested nullability, while the partial-file writer uses the declared table schema. Interleaving against the runtime schema leaves incompatible child types in the output.
Brief change log
LargeUtf8toUtf8in the existing core write normalizer. This is an Arrow layout conversion for Java/Paimon's STRING values, with checked offset bounds; it does not introduce implicit numeric or binary casts.Tests
cargo +1.98.0 test --quiet --locked -p paimon --lib: 4151 passed, 6 ignored.cargo +1.98.0 clippy --quiet --locked -p paimon --lib --tests -- -D warnings.cargo +1.98.0 fmt --all --check.API and Format
No new public interfaces, options, dependencies or storage formats. Java STRING values and the existing declared write constraints remain authoritative.
Documentation
No documentation changes are required.