Commit Graph
775 Commits
Author SHA1 Message Date
Alexey MilovidovandGitHub eebc7db1bb Merge pull request #96197 from AVMusorin/add-missed-client-option
Add missed `--external` argument in client help message
2026-02-07 07:58:53 +01:00
Aleksandr Musorin 9bf31f1961 Add external argument in client help message 2026-02-06 14:42:33 +01:00
Alexey MilovidovandClaude Opus 4.6 f31adb4a49 Fix CI failures: wrap long help text lines and fix git-import --help abort
- Wrap long lines in `getHelpHeader` and `getHelpFooter` for `clickhouse client`
  and `clickhouse local` to keep lines within reasonable width,
  fixing the 00910_client_window_size_detection test
- Use `createOptionsDescription` instead of raw `po::options_description` constructor
  in `git-import` and `static-files-disk-uploader` to handle zero terminal width
  properly, fixing the `git-import --help` abort in debug builds
  (03823_clickhouse_help_return_codes test)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-05 22:21:04 +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
vdimir 312fa82006 Merge branch 'master' into vdimir/totp 2026-01-29 13:29:20 +00:00
vdimir ddcf7b97cd Add client option --one-time-password 2026-01-29 10:31:46 +00:00
vdimir c735499cd4 Update password promt retry in client/Client.cpp, fix clang-tidy 2026-01-28 11:07:49 +00:00
vdimir cd54631479 Rename AUTHENTICATION_FAILED_SECOND_FACTOR -> REQUIRED_SECOND_FACTOR 2026-01-27 17:18:21 +00:00
vdimir c42eb803e6 totp as second factor 2026-01-27 16:49:38 +00:00
Sema Checherinda 7dfe727452 quorum with async inserts 2026-01-23 16:39:23 +01:00
Raúl MarínandGitHub a6597b3294 Revert "Don't try to authenticate twice when using ssh" 2026-01-20 21:05:38 +01:00
Isak EllmerandAlexey Milovidov 5eab9e5d24 Don't try to authenticate twice when using ssh 2026-01-19 20:15:39 +01:00
Bharat Nallan Chakravarthy ae119119a6 Merge 'master' into client-warnings-xml-option 2026-01-17 11:59:26 +05:30
Krishna Mannem e99c7f8e11 skip cloud endpoint autologin stuff if uri contains user/pass 2026-01-12 16:17:48 -05:00
Bharat Nallan Chakravarthy 0764b531ae Merge 'master' into client-warnings-xml-option 2026-01-06 06:59:30 +05:30
Krishna Mannem e0481761a5 do not use oauth login when username + password is in connection string 2026-01-05 16:55:01 -05:00
Cole Smith e7f9d16029 require spaces on both sides
nit
2025-12-29 20:49:07 -05:00
Cole Smith c31dec09f9 allow spaces around equal sign
add tests

nit
2025-12-29 14:04:06 -05:00
Ladislav Snizek ca76f6e363 Merge branch 'master' into client-warnings-xml-option 2025-12-29 14:09:57 +01:00
Alexey MilovidovandGitHub d7740f3bd6 Merge branch 'master' into tls-sni 2025-12-25 17:03:34 +01:00
Alexey Milovidov 61139cdeab Merge branch 'master' into prevent-calling-to-string-on-field 2025-12-17 02:21:06 +01:00
Krishna Mannem 284c8ba0a1 add tests 2025-12-11 12:48:34 -05:00
Krishna Mannem 4249c2f46f respect client configuration 2025-12-11 10:04:58 -05:00
Krishna Mannem 969d9fd8c7 Revert "Revert "Idp login cli support""
This reverts commit 73a81cb3c2.
2025-12-11 10:04:58 -05:00
Alexey Milovidov 0e6a4bbaa7 Prevent implicit conversions to Field when calling toString 2025-12-06 20:48:34 -08:00
Matt Klein 435455d89e client: allow TLS SNI override
When connecting to Clickhouse Cloud (or any similar proxied
setup) over a tunnel it is required to correctly specify SNI
on the TLS connection. This allows overriding SNI if the DNS
is something else.

Signed-off-by: Matt Klein <[email protected]>
2025-11-08 09:32:44 -07:00
Pavel KruglovandGitHub f5eb8467b4 Merge branch 'master' into client-version-message-option 2025-11-05 14:01:48 +01:00
Konstantin Bogdanov 48d2f3b145 Fix readability-container-contains 2025-11-04 23:40:04 +01:00
Azat Khuzhin d9354e135f Fix ~ expansion in history file override
Simply checking for `~/` should be enough, since we do not support
anything except expanding current's user `$HOME` (i.e. we do not support
`~another_user` syntax).
2025-10-29 17:08:54 +01:00
Ladislav Snizek 5015f81b89 Merge branch 'master' into client-warnings-xml-option 2025-10-21 13:39:08 +02:00
Ladislav Snizek 94c368b7a2 Add --no-server-client-version-message and <server_client_version_message/> client option (clean console startup) 2025-10-21 13:17:15 +02:00
Konstantin Bogdanov e747fec21f Fix tidy 2025-10-16 19:33:13 +02:00
Konstantin Bogdanov bb1f1c889c Remove redundant include 2025-10-16 19:33:11 +02:00
Konstantin Bogdanov d87478b7c2 Lint 2025-10-16 19:33:10 +02:00
Konstantin Bogdanov 9b5f4308bb Draft implementation 2025-10-16 19:33:08 +02:00
Alexey Milovidov b75dc907fb Merge with master 2025-10-14 16:17:16 +02:00
Alexey MilovidovandGitHub 889c9d90c6 Merge branch 'master' into revert-83490-revert-82535-compression-logs-profile-events 2025-10-14 16:14:27 +02:00
Alexey Milovidov 8333d54e2b Merge branch 'master' into revert-83490-revert-82535-compression-logs-profile-events 2025-10-13 22:37:24 +02:00
Nikita FomichevandGitHub 73a81cb3c2 Revert "Idp login cli support" 2025-10-12 23:32:09 +02:00
Krishna Mannem dfd4b4df29 feedback 2025-10-01 16:03:08 -04:00
Krishna Mannem b22cd99683 catch errors when query arg fails being parsed as a POCO::URI 2025-10-01 16:03:08 -04:00
Krishna Mannem a388b1cac6 add --login flag to authenticate to clickhouse via idp 2025-10-01 16:03:08 -04:00
Ladislav Snizek e3289a9734 Add <warnings/> client option as alternative to --no-warnings 2025-09-28 17:14:05 +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
Alexey MilovidovandGitHub f2208e887c Merge branch 'master' into revert-83490-revert-82535-compression-logs-profile-events 2025-07-18 07:19:38 +02: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
Alexey MilovidovandGitHub 5aa8947b18 Revert "Revert "Compress logs and profile events in the native protocol"" 2025-07-10 14:37:42 +02:00
Alexander TokmakovandGitHub 08ea35aca4 Revert "Compress logs and profile events in the native protocol" 2025-07-08 20:47:54 +02:00