15 Commits
Author SHA1 Message Date
zooqueen 0f1e1b5143 merge: ClickHouse 26.6.1.1 into datastore — preserve debrand + ZAP + gRPC/gcloud removal
Merge upstream/changelog-26.6 (9593 commits) into our debranded fork.
- 190 conflicts resolved: 24 delete-side kept-removed (grpc/arrowflight/gcloud), submodules+version→26.6,
  contrib/CMakeLists keeps zap + new libpng, drops capnproto (zap provides kj), Server.cpp/CMakeLists
  re-apply the ZAP wiring + gRPC/arrowflight/gcloud removal.
- Full-tree debrand re-swept over the new 26.6 code (uniform Datastore naming; Azure fork Clickhouse*
  symbols preserved). 0 clickhouse in product src/programs/CMakeLists.
- Version now 26.6.1.1. gRPC/google-cloud/chdig stay removed; ZAP remains the transport.
2026-06-23 12:23:48 -07:00
zooqueen 12ee47043b datastore: eliminate ALL clickhouse references from the product (no clickhouse, period)
Comprehensive removal across the compiled-product surface (src/programs/base/cmake/configs,
excl contrib third-party + unit tests): URLs clickhouse.com/.tech/.cloud -> hanzo.ai and
github.com/ClickHouse/ClickHouse -> github.com/hanzoai/datastore; fs/zk paths /var/lib/clickhouse
-> /var/lib/datastore, /clickhouse/tables -> /datastore/tables; SQL dict-source keyword
"clickhouse" -> "datastore" (SOURCE(DATASTORE(...)), forwards-only); .clickhouse.hash ELF section
-> .datastore.hash (main.cpp + CMake); hasClickhouse/Clickhouse symbols -> Datastore; all remaining
lowercase clickhouse -> datastore. 175 files. contrib/ (upstream deps) untouched. Build-verify since
this changes the SQL keyword, default paths and the binary-hash section.
2026-06-22 16:33:18 -07:00
zooqueen 0357c7e3ff datastore rebrand: lowercase clickhouse -> datastore in commands/prose/help
Completes the user-facing branding: lowercase `clickhouse` command/symlink names
(clickhouse-server/-client/-local/...), `clickhouse <subcommand>` usage strings, and bare-word
prose in messages/comments -> datastore (~238 occurrences across 227 files).

Intentionally KEPT (not branding):
- SQL dict-source keyword "clickhouse" (SOURCE(CLICKHOUSE(...)) compat) - 4 sites
- external URLs (clickhouse.com / github.com/ClickHouse)
- filesystem / ZooKeeper path conventions (/var/lib/clickhouse fallback default, /clickhouse/tables/
  ReplicatedMergeTree ZK path) - deployment convention, overridden by our datastore-* config

String/comment-literal changes only; no identifiers touched (verified no bare lowercase clickhouse
C++ symbol exists). Build was already green; verifying this is still green.
2026-06-21 23:46:30 -07:00
zooqueen 06f45b6529 datastore rebrand: compound symbols + CMake targets/macros (clickhouse -> datastore)
The deep internal rebrand (user: "rename all compound symbols", "datastore_ good", "DB:: fine"):
- CamelCase symbols ClickHouse* -> Datastore* (358 distinct): mainEntryDatastoreServer,
  DatastoreDictionarySource, DatastoreRevision, DatastoreVersion, etc. URL/repo lines skipped.
- snake targets + macros clickhouse_* -> datastore_* (850 occ): datastore_common_io,
  datastore_add_executable, datastore_program_install, datastore_functions, etc. — uniform
  across src + cmake + all CMakeLists, and the contrib wrappers that link/use them
  (croaring, nuraft, corrosion, chdig, delta-kernel-rs, mongo-cxx).
- CLICKHOUSE_* macros -> DATASTORE_* (DATASTORE_OFFICIAL_BUILD, ENABLE_DATASTORE_*, etc.).
- project(ClickHouse) -> project(Datastore) so ${Datastore_SOURCE_DIR}/${Datastore_BINARY_DIR}
  (45 refs) resolve.

Replace (not drop) -> collision-free. DB:: namespace kept (per direction). lowercase SQL
`clickhouse` dictionary-source keyword + clickhouse.com / github.com/ClickHouse URLs kept.
NEEDS BUILD VERIFICATION on spark/CI — uniform + inspected-consistent but uncompiled here.
2026-06-21 20:38:05 -07:00
Alexey MilovidovandClaude Opus 4.7 02307d091e Address review: more narrowed pragmas and anonymous namespaces
- `arrayAggregation.cpp`, `distanceTransposed.cpp`, `randDistribution.cpp`,
  `toDecimalString.cpp`, `geohashesInBox.cpp`, `seriesPeriodDetectFFT.cpp`:
  drop the file-wide `-Wdouble-promotion` pragma in favor of explicit
  `static_cast` at the actual conversion sites or qualified `std::sqrt`.
- `KeeperDataDumper.cpp`, `LocalServer.cpp`,
  `ChecksumForCompressedBlock.cpp`, `tcp_protocol_fuzzer.cpp`,
  `Server.cpp`: replace `static` on free functions with anonymous
  namespaces, matching the project preference Algunenano flagged.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-06 20:06:41 +00:00
Alexey MilovidovandClaude Opus 4.6 16c01d8556 Fix build failures from new -Wmissing-prototypes and -Wdisabled-macro-expansion warnings
- Fix `io_destroy` prototype mismatch in `AIO.h` for FreeBSD (declared as
  `int io_destroy(void)` but defined as `int io_destroy(int ctx)`)
- Add forward declarations for `LLVMFuzzerInitialize` and
  `LLVMFuzzerTestOneInput` in fuzzer files, and make file-local helper
  functions `static` to fix `-Wmissing-prototypes` in arm_fuzzers build
- Add `extern "C"` forward declaration for `reallocarray` in `malloc.cpp`
  to fix `-Wmissing-prototypes` in ppc64le build
- Suppress `-Wdisabled-macro-expansion` in `FuzzLoop.cpp` because musl
  defines `stderr` as `(stderr)` which is a recursive macro

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-30 02:51:36 +00:00
Alexey Milovidov d07663d4d8 Merge remote-tracking branch 'origin/master' into HEAD 2026-02-21 05:11:39 +01:00
Yakov Olkhovskiy 5bf1128ee1 better isMerge() 2026-02-18 22:09:45 +00:00
Yakov Olkhovskiy 0dfd2529c3 fix tcp_protocol_fuzzer 2026-02-15 19:16:31 +00:00
Alexey MilovidovandClaude Opus 4.6 576b274046 Add style check for empty catch (...) blocks
Add a new `catch_all` check to the style checker that flags `catch (...)`
blocks with completely empty bodies outside of destructors and poco.
Empty catch-all blocks silently swallow all exceptions, hiding bugs and
making debugging difficult. A `// Ok` comment inside the body suppresses
the warning for intentional cases.

Annotate all existing empty catch-all blocks in fuzzers with `// Ok`
comments since fuzzers intentionally discard exceptions from fuzzed input.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-06 09:29:43 +01:00
Antonio Andelic e8f89fe9bc Fix build 2026-01-10 15:00:45 +01:00
Yakov Olkhovskiy 0fc14520c8 add server termination on exit 2024-07-13 23:06:37 +00:00
Yakov Olkhovskiy 361b21b416 fix fuzzers, cmake refactor, add target fuzzers 2023-09-01 14:20:50 +00:00
Yakov Olkhovskiy 7a1dc0fd4d ENABLE_FUZZING and some minor fixes 2022-10-24 03:43:14 +00:00
Yakov Olkhovskiy a0d023cf54 add tcp protocol fuzzer 2022-10-24 00:51:57 +00:00