[improvement](external) Refine external file splits in BE #70664
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #70664"
general
weight: 0.35
morrySnow
Background
FE assigns external-file byte ranges to BE scanners. Native Parquet and ORC readers select each range's row groups or stripes, whose physical layout determines the safe unit of parallel work.
What problem does this PR solve?
Issue Number: None
Related PR: #66802 (branch-4.2 source), #68143 (Iceberg missing-file policy in split planning), apache/doris-thirdparty#435 (merged ORC statistics sharing), apache/doris-thirdparty#436 (merged parsed-tail sharing), apache/doris-thirdparty#437 (merged prefix-initialization retry fix)
PR Type: Enhancement
Problem Summary:
This backport adds FE coarse ranges and BE row-group/stripe tasks for eligible native scans, preserving runtime filters, source completion and condition-cache publication. Eligible scans use dedicated FE/BE size targets after upgrading.
Original author: @Gabriel39
Details
file_split_size_on_fe=536870912andfile_split_size_on_be=67108864, both forwarded and changeable through SET. Nonpositive values keep legacy FE planning; they do not disable BE refinement.file_split_size(still the fallback). Load keeps FE boundaries. Optional Thrift field 17 matches 4.1/4.2; upgrade BE first because older BE cannot recover coarse-range parallelism. Connector API 35.0 requires rebuilt plugins. Results and delete semantics are preserved.Testing
The ASAN BE+FE build passed at
0430b14. Laterfeec288adds six comment lines, and the FEUT follow-up only updates existing Iceberg test reflection signatures and arguments; non-comment production source is unchanged.run-fe-ut.sh: 389 tests in 10 Iceberg manifest, planning, range and statement-scope classes passed, with zero failures, errors or skips. All 14IcebergManifestReadContextTestcases pass after adding the missing coarse split argument; the original cancellation and shared-budget assertions remain unchanged.run-be-ut.sh: 482 tests in 10 suites passed, covering Fluss, ORC/SDK, scanners and TableReader; zero failures, errors or skips. The driver began at0430b14and covered identical non-comment source.run-fe-ut.shatfeec288: 448 tests in 75 classes passed, including the complete 37-class SPI suite, both surface baselines/API35 and engine planning/path-partition tests; zero failures, errors or skips.Notes for Reviewers
Three narrow
NOLINTannotations coverDORIS_CHECK's intentional streaming-macroelse; the assertions are unchanged.API 35.0 extends master's existing 34.0 surface, preserving its path-partition-key API alongside the split-planning additions. The planning missing-file classifier follows normal Iceberg reads.
Children retain exact stripe-ID intervals and share parsed immutable file tails and lazy row prefixes. Merged apache/doris-thirdparty#435 shares lazy Metadata and evaluates owned stripes; streams, metrics and SARG appliers remain private. Metadata-only opens and no-SARG planning remain lazy.
OrcFileTailParses,OrcStripeDirectoryEntriesandOrcRowReaderStripeVisitstrack SDK tail/prefix/range setup.OrcStripeStatisticsParsesandOrcStripeStatisticsEvaluationsexpose parse attempts and explicit selection work, excluding RowReader PPD.The ORC pin moves from
5962bb0to merged apache/doris-thirdparty#437 commitd88650dcd09, whose complete source tree equals the tested SDK0ddc8c1bc34. The range includes parsed-tail sharing #436, shared statistics #435, canonical seek fix #431 (the old pin already has equivalent Reader.cc behavior), and Maven output ignore #434: eight files, +702/-100 lines. The incremental #437 change is three files, +61/-3: a C++ mutex keeps failed prefix construction retryable without unwinding throughpthread_once. Shared loaders publish only after success.Iceberg SDK offsets can override size targets. Small-range fixtures disable coarse FE planning; the new regression compares parallel scans with a single-scanner reference without handwritten output.
Release note
Native Parquet/ORC scans gain FE coarse splitting and BE physical refinement through
file_split_size_on_fe(512 MiB) andfile_split_size_on_be(64 MiB), replacingfile_split_size. Nonpositive sizes retain legacy FE sizing; BE can still refine. Upgrade BE first and rebuild API 35.0 plugins.Check List (For Author)
AI Disclosure