Commit Graph
754 Commits
Author SHA1 Message Date
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 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
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
Alexey MilovidovandGitHub c90c1d1a90 Merge branch 'master' into compression-logs-profile-events 2025-07-01 02:39:02 +03:00
Azat Khuzhin 74093a763c Properly initialize QueryScope/ThreadStatus in the client apps
This time I was fixing it for session_timezone, but there are other
reasons to have it properly configured.
2025-06-30 11:27:13 +02:00
Azat Khuzhin 9c0963c0a8 Do not use global context as main context for the client
The problem is that clietn calls setSettings() in the global settings,
but this produce a data-race with accessing global settings all over the
places [1]:

- ThreadStatus::finalizePerformanceCounters()
- ThreadStatus::initGlobalProfiler()

  [1]: https://github.com/ClickHouse/ClickHouse/issues/81893#issuecomment-2997271137

v2: Initialize query_id in a proper context
v3: Fix apply settings from config on the client
v4 + v5: Fix other settings adjustments
2025-06-30 11:27:13 +02:00
Alexey Milovidov bfc7cf3b8e Fix error 2025-06-25 01:50:56 +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 c36b0241f9 Get back MainThreadStatus into client for memory tracking 2025-06-14 09:33:09 +02:00
Azat Khuzhin aca7fb829c Remove ThreadStatus from the client
It seems that it was required only for DateLUT, to obtain global context
via ThreadStatus, but we can do better, simply use
Context::getGlobalContextInstance() instead.
2025-06-13 14:50:42 +02:00
Miсhael StetsyukandGitHub b216edf8d7 Merge pull request #81271 from ClickHouse/mark-exceptions-as-logged
mark exceptions as logged
2025-06-09 21:29:36 +00:00
Alexey MilovidovandGitHub 7f5f37cf06 Merge pull request #79429 from aaaengel/issue_63093
Support query parameters with dashes
2025-06-07 20:20:11 -07:00
Michael Stetsyuk d195c257b7 mark exceptions as logged 2025-06-06 13:40:27 +00:00
Azat KhuzhinandGitHub 39dbf88b64 Merge pull request #81252 from azat/connections-fix-no_secure
Fix handling secure=false in connections credentials
2025-06-04 09:21:50 +00:00
Azat Khuzhin ad5eae02c1 Fix handling secure=false in connections credentials 2025-06-03 22:59:04 +02:00
Raúl MarínandGitHub 51620392b1 Update Client.cpp 2025-06-02 21:43:29 +02:00
Raúl Marín 3cd4ad0d16 Remove usage of settings.h 2025-06-02 18:00:25 +02:00
Azat KhuzhinandGitHub b59e216926 Merge pull request #80388 from azat/context-fwd-decl
Context forward declaration
2025-05-20 16:11:31 +00:00
Azat Khuzhin 5e4232089e Context forward declaration 2025-05-17 17:40:02 +02:00
János Benjamin Antal c2038a812d Remove format_alter_commands_with_parentheses server setting
The setting was introduced and set false by default in 24.2. It was enabled by default in 25.2. As there are no LTS versions that doesn't support the new format, we can remove the setting.
2025-05-08 13:26:11 +00:00
Nikita Mikhailov 8d80ccde93 Merge branch 'master' of github.com:ClickHouse/ClickHouse into issue_63093 2025-05-07 23:56:03 +02:00
Engel Danila b373482f99 Added test & fixed miss 2025-04-23 08:50:16 +03:00
Engel Danila 779d72c0c8 now it works with dash 2025-04-22 20:31:35 +03:00
Azat KhuzhinandGitHub 94264b1193 Merge pull request #77578 from azat/fix-applying-async_insert-from-server
Fix applying async_insert from server (via apply_settings_from_server)
2025-04-14 08:32:05 +00:00