fix: allow large JSON strings in the kernel default reader #7943
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 267 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.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7943"
general
weight: 0.35
huan233usc
Which Delta project/connector is this regarding?
Description
When the default JSON handler runs with Jackson 2.15 or newer, a valid metadata action can fail with
StreamConstraintsExceptionif its decodedschemaStringexceeds Jackson's default string limit. Jackson 2.13 does not impose that limit.Raise the default engine's Jackson dependencies from 2.13.5 to 2.15.4 and use the constraint APIs directly. Set the default reader's maximum string length to
Integer.MAX_VALUE, preserving its other parser constraints and decimal handling. The constraint change is local to the reader's factory. Update the Kernel example's explicit Jackson dependency to match.How was this patch tested?
parseJsonandreadJsonFiles, plus malformed JSON cause preservation.git diff --check, handler ASCII and line-length checks, and example XML validation passed. The existing regression tests are unchanged.The full
DefaultJsonHandlerSuitecould not start locally: SBT could not resolve itssbt-assemblybuild-plugin dependency because Maven repository DNS was unavailable. Exact Jackson 2.15.4 dependency resolution and the suite still need CI validation:Does this PR introduce _any_ user-facing changes?
Yes. The default JSON handler can parse string values above Jackson's default limit. Accepting larger values can increase heap usage. The default engine's declared Jackson dependency moves from 2.13.5 to 2.15.4; the implementation now requires Jackson 2.15 or newer.