Skip to content

Split FunctionsMiscellaneous.h - #564

Merged
alexey-milovidov merged 7 commits into
ClickHouse:masterfrom
proller:func
Mar 7, 2017
Merged

alexey-milovidov merged 7 commits into
ClickHouse:masterfrom
proller:func

Conversation

@proller

@proller proller commented Mar 7, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@alexey-milovidov
alexey-milovidov merged commit b3ea06a into ClickHouse:master Mar 7, 2017
zvonand pushed a commit to zvonand/ClickHouse that referenced this pull request May 6, 2025
zvonand pushed a commit to zvonand/ClickHouse that referenced this pull request May 6, 2025
eoger-ant pushed a commit to eoger-ant/ClickHouse that referenced this pull request Nov 13, 2026
Upstream release notes: https://github.com/hellobertrand/zxc/blob/v1.0.0/CHANGELOG

Notable upstream changes:

* Wire format v9 (upstream ClickHouse#452, introduced in 0.15.0) replaces v8. `zxc`
  accepts only its own format version, so data written by the previous pin
  (format v8) is rejected with `ZXC_ERROR_BAD_VERSION` (-5), and v9 data is
  rejected by 0.14.0 in turn. This is a backward-incompatible change for
  existing `ZXC`-compressed data - acceptable only because the `ZXC` codec is
  experimental and off by default behind `enable_zxc_codec`.
* The option structs are gone (upstream ClickHouse#545, ClickHouse#546): `zxc_compress_opts_t` and
  `zxc_decompress_opts_t` are replaced by per-context parameters set one at a
  time. The one-shot `zxc_compress(src, n, dst, cap, level)` and
  `zxc_decompress(src, n, dst, cap)` forms default to no checksum
  (`ZXC_C_CHECKSUM` / `ZXC_D_CHECKSUM` are 0), which is what the codec asked
  for with `checksum_enabled = 0`, so `CompressionCodecZXC` keeps its
  behaviour and only drops the struct handling. Levels 1..7, `zxc_min_level`,
  `zxc_max_level`, `ZXC_PAD_SIZE` (32) and the destination slack the codec
  reserves through `getAdditionalSizeAtTheEndOfBuffer` are unchanged.
* The per-ISA variant set is unchanged: `_default`, `_avx2`, `_avx512` and
  `_neon32`, with the same flag sets and the same `ZXC_FUNCTION_SUFFIX`
  mechanism, and `ZXC_DISABLE_SIMD` still forces the scalar core. Upstream's
  block types are renamed GLO/GHI to SPL/PAK (upstream ClickHouse#538), which is
  internal. `contrib/zxc-cmake/CMakeLists.txt` therefore needs no change.
* `ZXC_DECOMPRESS_TAIL_PAD` drops from 2112 to 2084 bytes (upstream ClickHouse#564); it
  sizes zxc's internal work buffer, not the caller's destination, so the codec
  is unaffected.

Verified locally on AArch64: `_zxc` and `clickhouse` build clean, a round-trip
through `CODEC(ZXC(n))` for every level 1..7 plus the default level reproduces
the input byte for byte, and both directions of the format break are confirmed
(v8 data read by the new binary and v9 data read by the old one fail with
`ZXC_ERROR_BAD_VERSION`). The x86-64 AVX2/AVX512 variants, the x86-64 core and
the `ZXC_DISABLE_SIMD` scalar builds were cross-compiled against the sysroot to
cover the configurations this host cannot build.

Co-Authored-By: Claude Code <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants