dependabot[bot] opened a new pull request, #2944: URL: https://github.com/apache/datafusion-ballista/pull/2944
Bumps [datasketches](https://github.com/apache/datasketches-rust) from 0.6.0 to 0.7.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/apache/datasketches-rust/blob/main/CHANGELOG.md">datasketches's changelog</a>.</em></p> <blockquote> <h2>v0.7.0 (2026-11-19)</h2> <h3>Breaking changes</h3> <ul> <li><code>BloomFilterBuilder::with_accuracy</code> now sizes the filter for its integer hash count, correcting false-positive targets that previously produced undersized filters. Capacity and hash count can differ from earlier versions; to combine with an existing filter, use <code>with_size(existing.capacity(), existing.num_hashes())</code> and the same seed.</li> <li><code>BloomFilter::capacity</code> now returns <code>u64</code> instead of <code>usize</code>; update callers expecting <code>usize</code> to use <code>u64</code> or convert explicitly.</li> <li><code>BloomFilter::contains</code> and <code>BloomFilter::contains_and_insert</code> now take <code>item: T</code> (<code>T: Hash</code>) by value instead of <code>&T</code>, matching <code>BloomFilter::insert</code>. Pass <code>&item</code> to retain owned values such as <code>String</code> or <code>Vec<u8></code> without cloning, and remove explicit turbofish type arguments (or change <code>T</code> to <code>&T</code>) on borrowed calls such as <code>contains::<u64>(&value)</code>.</li> <li>Fix 32-bit (<code>wasm32</code>) double hashing in <code>BloomFilter</code> to use the full 64-bit hash consistently with 64-bit targets, Java, C++, and Go. 64-bit targets and serialized formats are unchanged; rebuild or re-ingest filters created on 32-bit targets instead of mixing them across versions.</li> <li>Remove <code>BloomFilter::is_compatible</code>; handle <code>InvalidArgument</code> from <code>union</code>, <code>intersect</code>, or <code>difference</code>, or compare <code>capacity()</code>, <code>num_hashes()</code>, and <code>seed()</code> directly.</li> <li><code>CountMinSketch::new</code> and <code>CountMinSketch::with_seed</code> now create serial version 2 sketches, require <code>num_hashes</code> in <code>1..=127</code>, and emit images that require a version 2 reader. Version 2 enables cross-language interchange when using <code>i64</code> counters and the documented input encodings, while existing version 1 images remain readable, updatable, and serializable as version 1. <code>CountMinSketch::merge</code> rejects mixing version 1 and version 2 sketches; upgrade readers before writers and rebuild persisted version 1 data from source items to merge it with new sketches.</li> <li><code>CountMinSketch::decay</code> now returns <code>Result<(), Error></code>, returning <code>InvalidArgument</code> without modifying the sketch when <code>decay</code> is NaN or outside <code>(0.0, 1.0]</code>.</li> <li><code>CpcSketch::max_serialized_bytes</code> and <code>ReqSketch::serialized_size_bytes</code> are removed; serialize the sketch and inspect <code>len()</code> on the returned byte buffer when the encoded size is needed.</li> <li><code>FrequentItemsSketch::update_with_count</code> and <code>FrequentItemsSketch::update_with_count_ref</code> are renamed to <code>update_with_weight</code> and <code>update_with_weight_ref</code> to match weighted update naming across the crate.</li> <li><code>FrequentItemsSketch::num_active_items</code> is renamed to <code>num_retained</code> to match retained-entry naming across the crate; update callers of <code>num_active_items()</code> to call <code>num_retained()</code>.</li> <li><code>KllSketch::n</code> and <code>ReqSketch::n</code> are renamed to <code>total_weight</code> to match stream-weight naming across the crate; update callers of <code>n()</code> to call <code>total_weight()</code>.</li> <li><code>KllSketch::merge</code> now returns <code>()</code> instead of <code>Result<(), Error></code> and panics without modifying the sketch if the combined stream weight exceeds <code>u64::MAX</code>.</li> <li><code>ReqSketch::num_retained</code> now returns <code>usize</code> instead of <code>u32</code>, matching <code>KllSketch</code>, <code>ThetaSketch</code>, and <code>TupleSketch</code>.</li> <li><code>ReqSketch::rank_lower_bound</code> and <code>ReqSketch::rank_upper_bound</code> now return <code>Result<f64, Error></code>, returning <code>InvalidArgument</code> when <code>rank</code> is NaN or outside <code>[0.0, 1.0]</code> even on empty or exact-mode sketches.</li> <li><code>ThetaJaccardSimilarity::compute</code> and <code>TupleJaccardSimilarity::compute</code> now return <code>datasketches::common::JaccardSimilarity</code> instead of <code>datasketches::thetacommon::JaccardSimilarity</code>, and <code>datasketches::thetacommon</code> is no longer part of the public API.</li> <li>Remove <code>PartialEq</code> from <code>BloomFilter</code>, <code>CountMinSketch</code>, <code>HllSketch</code>, <code>JaccardSimilarity</code>, and <code>KllSketch</code>.</li> <li><code>SketchSlice::advance</code> now takes <code>n: usize</code> instead of <code>u64</code> and panics if <code>n > self.remaining().len()</code>.</li> </ul> <h3>New features</h3> <ul> <li>Add <code>XorFilter</code>, <code>XorFilterBuilder</code>, and <code>XorFilterType</code> behind the <code>xor</code> feature for immutable membership queries on values or precomputed hashes. Filters support 8-, 16-, and 32-bit fingerprints and can be serialized for later queries.</li> <li>Add <code>CpcUnion::serialize</code>, <code>HllUnion::serialize</code>, <code>ThetaUnion::serialize</code>, <code>ThetaUnion::serialize_compressed</code>, and <code>TupleUnion::serialize</code> to encode union results without calling <code>to_sketch</code>. Direct serialization avoids intermediate sketch allocations for <code>HllUnion</code> and <code>CpcUnion</code>, lets <code>HllUnion::serialize</code> target any <code>HllType</code> (<code>Hll4</code>, <code>Hll6</code>, or <code>Hll8</code>) at the union's effective <code>lg_k</code>, supports v4 compressed output via <code>ThetaUnion::serialize_compressed</code>, and encodes <code>TupleUnion</code> summaries without requiring <code>Clone</code> or cloning heap-backed summaries.</li> <li>Add <code>KllSketch::estimated_size</code> and <code>ReqSketch::estimated_size</code> to estimate sketch memory usage in bytes.</li> <li>Add <code>TDigest::num_retained</code> and <code>TDigestMut::num_retained</code> to report the number of retained entries or centroids in a t-digest.</li> </ul> <h3>Improvements</h3> <ul> <li>Implement <code>Clone</code> for <code>SketchBytes</code>, <code>SketchSlice</code>, <code>TDigest</code>, <code>ThetaSketchBuilder</code>, <code>TupleSketchBuilder</code>, and <code>TupleUnionBuilder</code>; <code>Default</code> for <code>SketchBytes</code>; <code>Eq</code> and <code>Hash</code> for <code>NumStdDev</code>, <code>ResizeFactor</code>, and <code>SearchCriteria</code>; and <code>Hash</code> for <code>ErrorType</code>, <code>HllType</code>, and <code>RankAccuracy</code>.</li> <li>Improve the readability of <code>Debug</code> output across sketches, filters, views, and stateful set operators, and implement <code>Debug</code> for <code>ReqSketchIterator</code>, <code>SketchBytes</code>, <code>SketchSlice</code>, and <code>TDigest</code>.</li> </ul> <h3>Performance improvements</h3> <ul> <li>Speed up <code>BloomFilter::contains</code>, <code>BloomFilter::insert</code>, and <code>BloomFilter::contains_and_insert</code> across filter saturation levels, particularly for primitive and scalar-wrapped integer inputs and multi-hash configurations; longer byte-slice inputs on CPUs with fast hardware dividers see smaller gains. For <code>contains_and_insert</code>, gains are larger on streams containing new keys than on repeated-key streams.</li> <li>Reduce <code>FrequentItemsSketch</code> update cost on streams of distinct items while growing toward <code>max_map_size</code>, particularly for keys such as strings or byte slices whose comparisons cost more than integers; updates once at capacity are unchanged.</li> <li>Speed up <code>HllUnion::update</code> when adopting a high-cardinality <code>HllType::Hll8</code> sketch within <code>lg_max_k</code> or merging multiple high-cardinality sketches before querying or serializing the union; workloads that query after every merge are roughly unchanged.</li> <li>Speed up <code>KllSketch::rank</code> in estimation mode while keeping exact-mode query latency unchanged.</li> <li>Speed up <code>TDigest</code> and <code>TDigestMut</code> queries for dense <code>cdf</code> and <code>pmf</code> split-point batches and scalar <code>rank</code> lookups, particularly on digests with repeated values, with roughly unchanged performance on sparse split-point batches.</li> <li>Speed up <code>CompactThetaSketch::serialize_compressed</code> and <code>CompactThetaSketch::deserialize</code> for compressed images while preserving the serialized format.</li> <li>Speed up <code>CompactTupleSketch</code> and <code>TupleUnion</code> serialization and <code>CompactTupleSketch</code> deserialization for primitive summaries and custom <code>TupleSummaryValue</code> implementations built on <code>SketchBytes</code> and <code>SketchSlice</code>.</li> <li>Speed up <code>ThetaSketch::compact</code> and <code>TupleSketch::compact</code> on populated sketches, along with ordered result generation across <code>ThetaUnion</code>, <code>TupleUnion</code>, <code>ThetaIntersection</code>, <code>TupleIntersection</code>, <code>ThetaANotB</code>, and <code>TupleANotB</code> for larger retained entry counts; sketches with very few retained entries are unchanged.</li> <li>Speed up <code>ThetaANotB::compute</code> and <code>TupleANotB::compute</code> when either input is unordered, while avoiding intermediate allocations when subtracting a mutable <code>ThetaSketch</code> or <code>TupleSketch</code> directly; pairs of ordered compact inputs are unchanged.</li> </ul> <h3>Bug fixes</h3> <ul> <li><code>FrequentItemsSketch::deserialize</code> now returns <code>InvalidData</code> when an active item weight is zero or when the sum of active item weights and maximum error exceeds the declared stream weight.</li> <li><code>ReqSketch::merge</code> now cascades compaction across newly grown levels when a merged sketch overflows the top compactor's nominal capacity.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apache/datasketches-rust/commit/175e20ea2fe215a4b7a45f2a73d767934d1cda34"><code>175e20e</code></a> chore: prepare 0.7.0 release (<a href="https://redirect.github.com/apache/datasketches-rust/issues/379">#379</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/9a90f385f25e72eb038a4bf779a0901be1a01ef4"><code>9a90f38</code></a> test(cpc): add generation and verification tests for static lookup tables (<a href="https://redirect.github.com/apache/datasketches-rust/issues/355">#355</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/446a7c24549de7405955796012868bd98d5a6edd"><code>446a7c2</code></a> refactor!: align decay and KLL merge error contracts and harden frequency des...</li> <li><a href="https://github.com/apache/datasketches-rust/commit/fe962f9a48548668791b1bbeec97b61127ee6d31"><code>fe962f9</code></a> refactor!: align stream-weight and retained-entry getters across sketches (<a href="https://redirect.github.com/apache/datasketches-rust/issues/375">#375</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/1eb271ee86a37a641c34359d4776c6fa23279bb1"><code>1eb271e</code></a> chore: move examples into a standalone workspace crate (<a href="https://redirect.github.com/apache/datasketches-rust/issues/374">#374</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/7ce0afbcffe86db3c56f9f6babe2c2bc9678e1ba"><code>7ce0afb</code></a> feat!: validate REQ rank bounds, add KLL/REQ estimated_size, and refine trait...</li> <li><a href="https://github.com/apache/datasketches-rust/commit/498742694821984cccadd97c3acff451afdf3e9c"><code>4987426</code></a> feat(hll,theta): support target HllType in HllUnion::serialize and add ThetaU...</li> <li><a href="https://github.com/apache/datasketches-rust/commit/694513b0c5cbb83356ff922f115602d5406f8b9f"><code>694513b</code></a> fix(kll): validate m compatibility before empty check in KllSketch::merge (<a href="https://redirect.github.com/apache/datasketches-rust/issues/371">#371</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/50a95efaf1c54211b7c84bb9fb768e8ec95e50b9"><code>50a95ef</code></a> refactor!: tighten multi-sketch compatibility checks and diagnostics (<a href="https://redirect.github.com/apache/datasketches-rust/issues/373">#373</a>)</li> <li><a href="https://github.com/apache/datasketches-rust/commit/6043d16fd526e023090794a2f0908ef0be4ee78a"><code>6043d16</code></a> feat(xor): polish builder chaining and fix duplicate-hash detection (<a href="https://redirect.github.com/apache/datasketches-rust/issues/362">#362</a>)</li> <li>Additional commits viewable in <a href="https://github.com/apache/datasketches-rust/compare/0.6.0...0.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
