Commit Graph
134 Commits
Author SHA1 Message Date
Alexey MilovidovandClaude Opus 4.7 0bb3c50f8e Replace --multiquery flag with --queries-format
Address review feedback on PR #99972: rename the previously added
`-m`, `--multiquery` flag to `--queries-format` with two possible
values:

- `tsv` (default) - one tab-escaped query per line (existing behavior)
- `script`        - parse stdin as a script of queries separated by `;`

The new name better reflects that `clickhouse-benchmark` already
supports multiple queries by default, and only the input *format*
changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-17 12:10:59 +00:00
Aleksandr Musorin df17eea84f Rename multiline to multiquery 2026-04-11 20:08:46 +02:00
Aleksandr Musorin b11cc5e63c Allow multiline queries in clickhouse-benchmarks 2026-03-18 20:10:58 +01:00
Azat Khuzhin 8ef1fb986f benchmark: enable --secure by default for cloud 2026-03-02 09:41:10 +01:00
Alexey MilovidovandGitHub e8654c51eb Revert "Improve help output for ClickHouse applications" 2026-02-26 07:51:17 +01:00
Raúl MarínandClaude 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 MilovidovandClaude 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
d94922841d Update --proto-caps description in ch benchmark
Co-authored-by: Sergei Trifonov <[email protected]>
2025-10-13 22:46:13 +03:00
0xgouda 86aa628bde add proto_caps to clickhouse-benchmark option. 2025-10-12 13:50:58 +03:00
0xgouda 694cf7274e Check positional arguments separately
- allow for `-- -k v` even if not recognised by the parser
2025-10-03 17:34:04 +03:00
0xgouda 82d30eafa8 catch all exceptions in catch(...) block
- no need for special handling for `DB::Exception`
2025-10-02 03:12:01 +03:00
0xgouda 1b46fa6f50 Fix mainEntryClickhouseBenchmark() exception handler
- default to false in `print_stacktrace`
- add custom handlers for `DB::Exception` and `po::error`
2025-09-30 23:50:59 +03:00
0xgouda 671da93637 Add exception handlers to main() 2025-09-30 23:43:39 +03:00
Vladimir CherkasovandGitHub c38a48e190 Merge pull request #87251 from 0xgouda/fix-clickhouse-benchmark-cli-parser
Align CLI options for `clickhouse-benchmark` with `clickhouse-client`
2025-09-30 07:56:48 +00:00
0xgouda cd7d5dd16c Rename ClientBaseOptimizedParts.{h, cpp} to ClientApplicationBaseParser.{h, cpp}
The files only include the parsing logic for `ClientApplicationBase`.
2025-09-26 10:16:45 +03:00
Azat Khuzhin 199ad135c1 Add support for --accept-invalid-certificate into clickhouse-benchmark 2025-09-22 15:53:39 +02:00
Azat Khuzhin b9f0c6c9a9 Add --connection support for clickhouse-benchmarks
Support --connection in clickhouse-benchmarks. It is the same as
supported by clickhouse-client, you can specify predefined connections
in client config.xml/config.yaml under connections_credentials path, to
avoid explicitly specifying user/password via command line arguments.
2025-09-22 12:15:41 +02:00
0xgouda 3b9795999e fix style errors 2025-09-20 15:20:26 +03:00
0xgouda 179af7ac01 use OptionsAliasParser in clickhouse-benchmark 2025-09-17 21:46:18 +03:00
serxa 085ee872a9 fix: do not print not closed intervals 2025-09-16 15:38:00 +00:00
serxa 0b3d388e54 Merge branch 'benchmark-precise-mode' of github.com:ClickHouse/ClickHouse into benchmark-precise-mode 2025-09-09 17:16:02 +00:00
serxa 6d615800cf Fix --roundrobin mode 2025-09-09 17:15:27 +00:00
e7b4080291 Update programs/benchmark/Benchmark.cpp
Co-authored-by: Bharat Nallan <[email protected]>
2025-09-08 09:07:18 +01:00
2f6e2fbecb Update programs/benchmark/Benchmark.cpp
Co-authored-by: Bharat Nallan <[email protected]>
2025-09-08 09:07:11 +01:00
5072bf24d2 Update Benchmark.cpp
Co-authored-by: Bharat Nallan <[email protected]>
2025-09-05 02:53:11 +01:00
serxa e2f68be998 do not print concurrency in the final report 2025-09-04 20:31:38 +00:00
serxa c53e63e1bf report number of finished queries 2025-09-04 14:24:09 +00:00
serxa 4638525eea fix --cumulative flag 2025-09-04 14:02:45 +00:00
serxa ea01853c2c add clickhouse-benchmark --precise flag for better per-interval statistics 2025-09-04 13:38:54 +00:00
serxa 477414a98c Increasing concurrency mode for benchmark 2025-08-14 10:42:46 +00:00
Raúl Marín 5987eadc98 Merge remote-tracking branch 'blessed/master' into reduce_port_header_memcpy_cont 2025-07-14 15:17:12 +02:00
Raúl Marín 6accf5522e Remove Block operator bool 2025-07-14 15:06:38 +02:00
ddavid 6030a3a38c Support CLICKHOUSE_HOST environment variable 2025-07-12 22:24:39 +03:00
Raúl Marín d87ee15b4b Extend the use of SharedHeader across the codebase 2025-07-10 00:08:25 +02:00
Alexey Milovidov 66bc4660c7 Merge branch 'master' into benchmark-reconnect 2025-07-01 02:00:29 +02:00
Alexey Milovidov b307445d5b Fix the wrong default value for the --reconnect option in clickhouse-benchmark 2025-06-26 18:40:31 +02:00
Raúl Marín d6ac63c8d2 Style: Forbid the use of quotes for includes (partial) 2025-06-24 13:20:10 +02:00
Azat Khuzhin 31f3fb1a99 Hide settings under --verbose for clickhouse-benchmark (same as for client/local)
This will also fix completion for clickhouse-benchmark
2025-06-08 22:38:51 +02:00
Bharat Nallan Chakravarthy 9e0ec8960f few small fixes 2025-04-28 12:59:27 -07:00
Bharat Nallan Chakravarthy 9fe1de3b83 fix incorrect type 2025-04-27 13:11:08 -07:00
Bharat Nallan Chakravarthy eef9126f33 minor fix to mutex initialization 2025-04-24 19:56:50 -07:00
Sachin Singh 26fba5d1d7 Thread safe queries_per_connection 2025-04-24 17:23:03 +05:30
Sachin Singh 67059d47b7 Add docs 2025-04-23 18:25:04 +05:30
Sachin Singh cb431a3c30 Add an option to reconnect every N queries in clickhouse-benchmark 2025-04-23 17:58:46 +05:30
Alexey Milovidov 77176a8c29 clickhouse-benchmark will display percentage based on the max iterations if specified 2025-04-19 21:25:14 +02:00
Konstantin Bogdanov 678acbafdc Fix OpenSSL early init 2025-04-10 21:33:00 +02:00
Todd Yocum b376b7a13b Remove some draft only comments. 2025-02-28 10:38:53 -05:00
Todd YocumandGitHub 1032d30b70 Merge branch 'ClickHouse:master' into tyocum/add-bind_host-remote-servers-setting 2025-02-26 16:13:40 -05:00
Shaun Struwig 76d00ad1af docs/en -> /docs 2025-02-22 21:41:35 +01:00