Repository navigation
Bump arrow to 25.0.0, orc to 2.3.1 and xsimd to 14.2.0 - #112604
Merged
Merged
Conversation
`xsimd` is tracked directly against upstream and carries no ClickHouse patches, so this is a plain pointer move. Required by `arrow` 25, which pins 14.2.0: `arrow/util/cpu_info.cc` uses `xsimd::cpu_features`, `xsimd::x86_cpu_features_backend_default`, `xsimd::x86_cpuid_leaf7` and `xsimd::x86_manufacturer`, none of which exist in 14.0.0.
The pinned fork was 2.1.2 plus 8 ClickHouse commits. Rebased onto `rel/release-2.3.1`; the resulting fork history is 5 commits plus a vendored schema update. `Reject out-of-range union tags instead of reading out of bounds` was dropped: upstream added `getCheckedUnionTag` and applies it at all three call sites (`UnionColumnReader::skip` and both branches of `UnionColumnReader::next`), so it is at least as complete as the local patch and checks at the point of use rather than in a pre-pass. The other hardening patches are still absent upstream and were kept: bounding type-tree nesting depth when reading the footer, rejecting an out-of-range column id in `StripeInformationImpl::getColumnEncoding`, and the `ColumnReader` heap-use-after-free fix. ORC does not ship its format definition in-tree; it reads `orc_proto.proto` from an `orc-format` `ExternalProject` download, and we vendor the file in the fork instead. The vendored copy still matched 2.1.2, so it had to be updated to `orc-format` 1.1.1, which 2.3.1 pins - 2.3 added the geospatial types and the C++ sources reference `proto::GeospatialStatistics`, `Type::crs`, `Type::algorithm` and `Type_Kind_GEOMETRY`/`GEOGRAPHY`. `add_custom_command` for `orc_proto.pb.h` had no `DEPENDS`, so the generated sources were never regenerated when the schema or `protoc` changed and a stale header was compiled instead. Adding the dependency is what makes the schema update above take effect. `Dictionary.cc`, `DictionaryLoader.cc` and `Geospatial.cc` are new upstream sources that have to be compiled (`SortedStringDictionary`, `loadStringDictionary`, `geospatial::WKBGeometryBounder`). `BpackingAvx512.cc` is deliberately not added: upstream only builds it under `BUILD_ENABLE_AVX512`, which we do not set. 2.3 also adds `GEOMETRY` and `GEOGRAPHY` to `orc::TypeKind`, so the exhaustive switch in `orcUnionBranchMatchesType` has to handle them. We do not read those types, so no target type can match such a union branch.
The pinned fork was 23.0.1 plus 11 ClickHouse commits. Rebased onto `apache-arrow-25.0.0`; two patches were dropped as obsolete: - `Fix deadlock with msan` and `Fix undefined symbol: pthread_atfork on PowerPC64` both target `AfterForkState`/`GlobalForkSafeMutex` in `util/mutex.cc`, which upstream removed outright - fork handling now lives in `util/atfork_internal.cc`. `Dont abort in ~CerrLog` was kept but re-applied on top of upstream`s refactoring, which now buffers into an `std::ostringstream buffer_` and prints under a mutex. We keep the local behaviour (buffer, no `std::cerr` output, throw instead of `PrintBackTrace` + `std::abort`) while adopting upstream`s member name so the next rebase is smaller. Upstream renamed the bit-packing SIMD sources: `bpacking_simd_default.cc` -> `bpacking_simd_128.cc` and `bpacking_simd_avx2.cc` -> `bpacking_simd_256.cc`. `util/ulp_distance.cc` (`internal::WithinUlp`) is new and has to be compiled. Parquet Variant support moved out of `parquet/arrow/variant_internal.cc` into the Arrow extension type `arrow/extension/parquet_variant.cc`, which upstream builds unconditionally alongside the other extension types we already list. `parquet/bloom_filter_avx2.cc` has to be built when AVX2 is available because the Bloom filter dispatch table references `FindHashBlockAvx2`. Unlike `level_comparison_avx2.cc`, which we list unconditionally, it instantiates `xsimd::batch<uint32_t, xsimd::avx2>` and so is x86-only. `arrow::decimal` was removed. It is deliberately not replaced with `arrow::smallest_decimal`: Arrow gained `Decimal32` and `Decimal64`, so that function would narrow small decimals and change the schema we write. The explicit `Decimal256` above precision 38, `Decimal128` otherwise rule reproduces what `arrow::decimal` did. Requires `xsimd` 14.2.0, which Arrow 25 pins - `util/cpu_info.cc` uses `xsimd::cpu_features`, `x86_cpu_features_backend_default`, `x86_cpuid_leaf7` and `x86_manufacturer`, none of which exist in 14.0.0.
Contributor
|
Workflow [PR], commit [799ac10] Summary: ❌
AI ReviewSummaryThis PR bumps the vendored Final Verdict✅ No actionable review findings in the current version of this PR. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 8/12 (66.67%) · Uncovered code |
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 8/12 (66.67%) · Uncovered code |
rschu1ze
reviewed
Aug 3, 2026
rschu1ze
reviewed
Aug 3, 2026
thevar1able
dismissed
rschu1ze’s stale review
August 3, 2026 14:03
There are no unrelated changed files in this PR
rschu1ze
approved these changes
Aug 3, 2026
This was referenced Aug 3, 2026
robot-clickhouse
added a commit
that referenced
this pull request
Aug 5, 2026
Cherry pick #112604 to 26.3: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
robot-clickhouse
added a commit
that referenced
this pull request
Aug 5, 2026
Cherry pick #112604 to 26.5: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
robot-clickhouse
added a commit
that referenced
this pull request
Aug 5, 2026
Cherry pick #112604 to 26.6: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
robot-clickhouse
added a commit
that referenced
this pull request
Aug 5, 2026
Cherry pick #112604 to 26.7: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
clickhouse-gh Bot
added a commit
that referenced
this pull request
Aug 5, 2026
Backport #112604 to 26.7: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
thevar1able
added a commit
that referenced
this pull request
Aug 7, 2026
Backport #112604 to 26.5: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
thevar1able
added a commit
that referenced
this pull request
Aug 7, 2026
Backport #112604 to 26.6: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
thevar1able
added a commit
that referenced
this pull request
Aug 7, 2026
Backport #112604 to 26.3: Bump `arrow` to 25.0.0, `orc` to 2.3.1 and `xsimd` to 14.2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps three contribs that cannot be split apart:
arrow23.0.1 -> 25.0.0orc2.1.2 -> 2.3.1xsimd14.0.0 -> 14.2.0Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update Apache Arrow to 25.0.0 and Apache ORC to 2.3.1.
Version info
26.8.1.701(included in26.8and later)26.7.3.18,26.6.3.14,26.5.7.15,26.3.18.7