deps: upgrade datasketches to 0.6.0 and drop the HLL decode workarounds #7402
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 430 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.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7402"
general
weight: 0.35
sunchao
Which issue does this PR close?
Closes #7395.
Rationale for this change
datasketches0.3.0 had two HLL decode defects, andhll_sketch.rscarried a workaround for each:hll_sketch_estimate,hll_unionandhll_union_aggonce it held enough distinct values.The crate's changelog lists fixes for both. I checked rather than trusted it, see below. 0.6.0 was released on 2026-10-29.
What changes are included in this PR?
datasketches=0.3.0to=0.6.0.Cargo.lockchanges only that crate and has no new dependencies.hll_sketch.rs:hash_valueis nowhash::value, andHllSketch::new/HllUnion::newreturnResult.SparkHllSketch::newandSparkHllUnion::newstay infallible with anexpect, as the old constructors panicked on the same out-of-rangelgConfigK, which the serdes already validate.normalize_compact_hll_array,reject_undecodable_hll4and the preamble constants only they used.getIncompatibleReasonsinCometHllSketchEstimate,CometHllUnionandCometHllUnionAgg, since that input is now read correctly.native/Cargo.tomlis rewritten for the new reason to pin exactly.Left alone: the
layoutmodule that sizes accumulators.estimated_size()now exists, but the changelog calls it implementation-dependent, so that is part of the HLL audit in #7396.How are these changes tested?
cargo test -p datafusion-comet-spark-expr --lib hll(38 pass), andcargo clippy --workspace --all-targets -- -D warningsis clean.CometExpressionSuiteHLL tests (5) on the default Spark 4.1 profile, with alibcometbuilt from this tree. I did not run the other Spark profiles locally;run-all-spark-profilescovers 4.0 and 4.2.Not covered: Spark 4.0 ships DataSketches-Java 6.1.1, and I only generated fixtures with 6.2.0. #7396 includes doing both.