Fall back to the CPU instead of failing or misreading Delta tables on unsupported Delta runtimes #17155
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 454 lines diff across 5 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.366
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17155"
general
weight: 0.35
thirtiseven
Fixes #16876.
Fixes #17004.
Fixes #17045.
Description
Ports #16877 from
release/26.10tomain, and additionally validatesmain-specific planning hooks (getScansandisPushDVPredicateDownEnabled) and ensures Delta 4.4+ versions do not fall through to pre-4.2 shims.Spark plans queries through the Delta provider probe when a Delta Lake JAR is installed. An unsupported Spark and Delta combination or a shim linkage failure can break unrelated queries. Return
NoDeltaProviderfor unsupported combinations and recoverable loading or planning-hook linkage failures so non-Delta operations continue to use the GPU, while fatal errors still propagate.A scan over an unclaimed Parquet subclass must use Spark's scan implementation. The shared guard in
ExternalSource.tagUnclaimedParquetSubclassapplies to open-source Spark builds and the Databricks 17.3/18.3 scan shim (spark400db173) so Delta column mapping retains its semantics when the probe cannot supply a compatible provider, while formats claimed by an active provider continue to plan on the GPU.Validation (Java 17)
main(buildver=401, Scala 2.13, GPU): built and installed modules throughtests;DeltaProbeImplSuite,DeltaRuntimeShimSuite, andParquetScanSuitepassed 51 tests under default Delta 4.2.0 (11 Delta 4.3-specific cases canceled), andDeltaProbeImplSuite+DeltaRuntimeShimSuitepassed 26 tests under-Pdelta43-testswith Delta 4.3.0 (1 Spark 4.1-specific case canceled). Covers unsupported-shimNoneselection (including Delta 4.4+/5.0), post-constructiongetScans/planning-hookLinkageErrorfallback, fatal error propagation, unclaimedParquetFileFormatsubclass CPU fallback, and claimed subclass GPU scan eligibility.main(buildver=356, Scala 2.12): built and installed 17 modules throughtests;Delta33RuntimeShimSuitepassed 1/1 on104406fef(verifies the Spark 3.5.3+getShimClassNamedispatch branch directly).base=939b63acd,head=47e4e9806; follow-upsd27ed39ffand104406fefonly touchdelta-lakeandtests):reviewreturnedPASSacross 34sql-pluginbuildvers (including400db173and410db183, 4,442 checked requirements, 0 new findings).advisoryflagged open PR #17137 as overlappingDeltaRuntimeShim.scala/DeltaRuntimeShimSuite.scala(merge-conflict coordination only) and foundNO_NEW_INTERACTION_FINDINGSon #17099 and #17106.Scala 2.12) confirmed ordinary Parquet stays on GPU while Delta 3.2.1 column-mapping/DV scans stay on CPU with matching results, and Delta 3.3.3 scans run on GPU with matching results.AI assistance from Claude Code, Codex, and Devin was used to prepare and validate this port.
Checklists
Documentation
Testing
Performance
The guard and provider probe run only during query planning and one-time provider initialization. Supported formats keep their existing GPU execution paths, and unclaimed Parquet subclasses use Spark's CPU scan to preserve format-specific semantics.