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
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
Michael Stetsyuk
3a9c7df8d2
Join threads from global thread pool before exiting from main
2026-06-11 21:45:31 +00:00
Alexey Milovidov and GitHub
842b133f8d
Merge pull request #100399 from ClickHouse/clang-tidy-init-variables
...
Enable clang-tidy check for uninitialized variables
2026-05-31 21:56:29 -07:00
Alexey Milovidov
9567f0d9ba
Merge remote-tracking branch 'origin/master' into clang-tidy-init-variables
...
# Conflicts:
# src/Processors/QueryPlan/Optimizations/Optimizations.h
# src/Storages/MaterializedView/RefreshTask.cpp
2026-05-08 03:15:33 +00:00
Alexey Milovidov
7d54e33c7c
Merge remote-tracking branch 'origin/master' into fix-compiler-warnings
...
# Conflicts:
# programs/main.cpp
2026-05-06 03:18:15 +00:00
Alexey Milovidov and Claude Opus 4.6
8b47d200d5
Enable -Wmissing-prototypes compiler warning
...
Add `static` to file-local functions and forward declarations
for cross-TU functions to satisfy `-Wmissing-prototypes`.
This ensures all functions have visible prototypes before their
definitions, improving code quality and catching accidental
linkage issues.
Reference: https://github.com/ClickHouse/ClickHouse/issues/76944
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2026-03-27 20:11:07 +00:00
Alexey Milovidov and Claude Opus 4.6
d249cd3f9d
Fix clang-tidy cppcoreguidelines-init-variables and hicpp-member-init after merge with master
...
New code from master introduced uninitialized variables and struct
members that trigger the newly enabled clang-tidy checks. Fix all 368
errors by adding default initializers (`{}`, `= 0`, `= nullptr`) to
local variables and struct/class member declarations.
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100399&sha=78a76ff56fc5747009e8c34795b8a3cb2432eeae&name_0=PR
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected] >
2026-03-24 11:25:35 +00:00
Alexey Milovidov and GitHub
85164c93d4
Revert "Revert "Improve help output for ClickHouse applications""
2026-02-27 00:49:00 +01:00
Alexey Milovidov and GitHub
e8654c51eb
Revert "Improve help output for ClickHouse applications"
2026-02-26 07:51:17 +01:00
Raúl Marín and Claude Opus 4.6
9aa8e4ed27
Move ErrnoException from Exception.h to its own header
...
Extract `ErrnoException` into `Common/ErrnoException.h` to reduce the
include footprint of `Exception.h`. This removes `<base/errnoToString.h>`
and `<cerrno>` from `Exception.h`, which is included by ~95% of all
translation units.
All files referencing `ErrnoException` now include the new header
directly. Files that used `errnoToString` without `ErrnoException`
got an explicit `<base/errnoToString.h>` include.
Co-Authored-By: Claude Opus 4.6 <[email protected] >
2026-02-20 13:47:23 +01:00
Alexey Milovidov and Claude Opus 4.5
62ccfbd3aa
Improve help output for ClickHouse applications
...
This commit improves the help output for all ClickHouse applications:
- Add `clickhouse help` command that lists all available subcommands
- Return exit code 0 for all help messages (previously some returned 1)
- Output help messages to stdout instead of stderr
- Use "clickhouse <cmd>" format instead of argv[0] in help messages
- Add dynamic `app_name` detection for `clickhouse client` and `clickhouse local`
to show correct invocation name based on how the binary was called
- Add `--no-sudo` option for `clickhouse start` and `clickhouse restart`
for environments without sudo (e.g., Docker containers)
- Add detailed help headers and footers for client and local with usage examples
Closes #58244
Co-Authored-By: Claude Opus 4.5 <[email protected] >
2026-02-05 07:12:44 +01:00
Antonio Andelic
dc3d47d689
Enable implicit-int-float-conversion check
2026-01-20 09:35:57 +01:00
Antonio Andelic
340be5a496
Enable implicit-int-conversion check
2026-01-07 16:30:57 +01:00
Antonio Andelic and GitHub
5940b268ba
Merge branch 'master' into replace-stringref-stringview
2025-11-17 08:51:12 +01:00
Azat Khuzhin
9cb6ad6d2e
Forward declaration of AggregatedZooKeeperLog in Context.h
2025-11-14 14:54:31 +01:00
Konstantin Bogdanov
48d2f3b145
Fix readability-container-contains
2025-11-04 23:40:04 +01:00
Antonio Andelic
3ebf86dce9
Fix builds
2025-09-10 09:21:18 +02:00
Antonio Andelic
df2da99d49
Fix std::string_view usage
2025-09-08 16:40:19 +02:00
Antonio Andelic
157321ad3d
Replace StringRef with std::string_view
2025-09-08 14:26:35 +02:00
Raúl Marín
d87ee15b4b
Extend the use of SharedHeader across the codebase
2025-07-10 00:08:25 +02:00
Raúl Marín
df9ebc8c45
Make a few example binaries smaller
2025-03-14 18:22:03 +01:00
Raúl Marín
5eac8346b9
Remove deps on Port.h
2025-02-12 17:15:21 +01:00
Raúl Marín
6294bb2c41
Remove dependencies on CompressionFactory.h
2025-02-04 22:10:01 +01:00
Konstantin Bogdanov
b2c81981fb
Use clang-19
2024-11-20 23:08:47 +01:00
Sema Checherinda
f1ab911910
cancel or finalize write buffer
2024-11-11 11:37:12 +01:00
Alexey Milovidov
c8104cb2ee
Correct and unify exit codes
2024-11-07 21:31:07 +01:00
Konstantin Bogdanov
67c1e89d90
Apply linter changes
2024-10-06 12:29:20 +02:00
yariks5s
a751719a33
fixes due to review
2024-07-10 17:44:06 +00:00
yariks5s
942f7d7532
fixes after review
2024-07-05 12:44:31 +00:00
Robert Schulze
2909e6451b
Move StringUtils.h/cpp back to Common/
2024-05-19 09:39:36 +00:00
Alexey Milovidov
0d14a2c67e
Useless changes
2024-05-09 03:11:02 +02:00
Robert Schulze
81b2a1f621
Fix build
2024-03-11 15:34:02 +00:00
Robert Schulze
802bae9661
GCC --> clang pragmas
2024-03-11 12:55:56 +00:00
avogar
617cc514b7
Try to detect file format automatically during schema inference if it's unknown
2024-01-23 18:59:39 +00:00
Raúl Marín
b269f87f4c
Better text_log with ErrnoException
2023-12-15 19:27:56 +01:00
Robert Schulze
8896134531
Cleanup IDataType convenience functions
2023-11-06 13:25:32 +00:00
avogar
7f9e81d504
Clean up
2023-08-22 12:55:00 +00:00
kothiga
f33c585bc5
Addressing feedback.
2023-08-18 13:50:31 -07:00
kothiga
b905703909
Correct to-from pairing for transformEndianness.
2023-08-18 11:25:08 -07:00
Austin Kothig
6b42975d33
Change BE-UUID to work the same as LE-UUID. Included high and low getters to provide cleaner code when accessing undertype.
2023-08-18 08:19:46 -07:00
ltrk2
967be3e13c
Correct a line commented out by mistake
2023-07-19 10:01:58 -07:00
ltrk2
51e2c58a53
Implement endianness-independent SipHash and MergeTree checksum serialization
2023-07-19 10:01:55 -07:00
zvonand
8338d54c34
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz
2023-05-05 15:50:26 +02:00
Alexey Milovidov and GitHub
98ae9be734
Revert "Added tests for ClickHouse apps help and fixed help issues"
2023-04-21 01:54:34 +03:00
Andrey Zvonov and GitHub
984e8fde41
Merge branch 'master' into zvonand-implicit-tz
2023-04-20 23:13:17 +02:00
zvonand
2a9f28b73b
resolve
2023-04-12 12:54:39 +02:00
zvonand
a9499eed79
moved getting server TZ DateLUT to separate place, upd tests and fix
2023-04-12 12:47:05 +02:00
Yatsishin Ilya
b5b65d2149
Merge remote-tracking branch 'origin' into clickhouse-help
2023-04-11 11:24:48 +00:00