Make the Parquet decimal scale boundary test write two files deterministically [databricks] #17105
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 281 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.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17105"
general
weight: 0.35
gerashegalov
Fixes #17080.
Description
The Parquet decimal scale boundary test expects two nonempty files with the same schema. On Spark 3.3.0,
repartition(2)seeds each input partition's round-robin start with its partition ID. For the small partition IDs in this fixture, the seeds pick the same starting bucket. When each nonempty input partition holds one row, all rows go to one output partition and the Parquet writer skips the empty one. Spark 3.3.1 changed the seeding to address this behavior. SPARK-40660Use
num_slices=2to generate the same rows directly in two nonempty input partitions. This removes the shuffle and preserves the two-file assertion, CPU/GPU result comparison, and single coalesced GPU scan batch assertion. The change is limited to the integration test fixture.Validation
local[8], Gera confirmed during review that the CPU write produced one file with the original fixture and two with the updated fixture. Review reproductionspark.default.parallelism=8reproduced the failure at the two-file assertion in all four original integration cases. The Spark 3.3.0 build and all 78 targeted Parquet decimal integration cases passed with the fix, including all four affected cases. The explicit setting was used for local reproduction. For the reported CI failure, parallelism came from the executor cores.local[4,1], where the original fixture already writes two files. The higher-parallelism reproduction exercises the failure that premerge misses.AI assistance was used for implementation and validation. The author reviewed and approved the complete changes before posting the PR.
Checklists
Documentation
Testing
Performance