Repository navigation
Bump croaring to v5.2.2 - #119464
Bump croaring to v5.2.2#119464
croaring to v5.2.2#119464Conversation
Upstream changes between `v5.1.1` and `v5.2.0`: - Fix a data race in `shared_container_extract_copy`: it now uses the new `croaring_refcount_is_unique` helper instead of decrementing the refcount and racing with a concurrent reader, and it releases the shared container properly on the copy path (RoaringBitmap/CRoaring#877). - Add set-cardinality methods (`and_cardinality`, `or_cardinality`, `andnot_cardinality`, `xor_cardinality`, `intersect`) to `Roaring64Map` (RoaringBitmap/CRoaring#875). Purely additive C++ API. - Documentation updates and CI action bumps. No ClickHouse-side adaptation is needed: the source file set is unchanged, so `contrib/croaring-cmake/CMakeLists.txt` stays as is, and the C/C++ API changes are additive. Verified that `groupBitmapState` serialization and the bitmap functions produce byte-identical results against the previous binary over `UInt8`/`UInt16`/`UInt32`/`UInt64` and the signed types, including cross-version deserialization of `AggregateFunction(groupBitmap, UInt32)` states in both directions. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Workflow [PR], commit [fd726a3] Summary: ✅
AI ReviewSummaryThis PR updates Missing context / blind spots
Findings💡 Nits
Tests
Final Verdict
LLVM Coverage ReportMeasured on commit fd726a3.
Changed lines: Changed C/C++ lines covered: 8/8 (100.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units94 translation units recompiled, 801 s compile time in total, 94 of them have a recent master baseline. |
Upstream renamed the inline-asm helper macros in `utilasm.h` from `ASM_*` to `CROARING_ASM_*`; `AggregateFunctionGroupNumericIndexedVectorDataBSI.h` uses `ASM_SHIFT_RIGHT` in its `__BMI2__` path, so it follows the rename. The remaining v5.2.1/v5.2.2 changes are internal: AVX2 `_mm256_lddqu_si256` replaced by `_mm256_loadu_si256`, an ARM32 `vmaxvq_u16` fallback in `array_container_contains`, a `sys/endian.h` include for FreeBSD, and renames of the `*_OR_BITSET_CONVERSION_*` build knobs (not set by ClickHouse). No bitmap serialization changes; `SRCS` in `contrib/croaring-cmake/CMakeLists.txt` still matches upstream `src/` (22 files). Co-Authored-By: Claude Code <[email protected]>
croaring from v5.1.1 to v5.2.0croaring to v5.2.2
| @@ -1 +1 @@ | |||
| Subproject commit 342463b31b909737bd6295c69b2f8e0ed9497424 | |||
| Subproject commit 6ef0aaad28eb6298db5a7022695b290a8fe47e66 | |||
There was a problem hiding this comment.
This gitlink moves croaring from 342463b (v5.1.1) to 6ef0aaa (v5.2.2), but the PR body still says "from v5.2.0 to v5.2.2." That understates the review surface: the v5.2.0 hop is part of this diff too, so the PR description should cover the full v5.1.1 -> v5.2.2 delta.
c5c0149
Bump
croaringfrom v5.1.1 to v5.2.2, keeping ClickHouse on the current upstream line.ClickHouse-side changes
contrib/croaring— submodule pointer to v5.1.1.src/AggregateFunctions/AggregateFunctionGroupNumericIndexedVectorDataBSI.h— two BMI2 call sites renamedASM_SHIFT_RIGHT->CROARING_ASM_SHIFT_RIGHT; the x86 BMI2 build fails to compile otherwise.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
croaringto v5.2.2.Workflow [PR]
Sync PR [sync-upstream/pr/119464]
Version info
26.10.1.952-master(included in26.10and later)