Commit Graph
677 Commits
Author SHA1 Message Date
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 Milovidov 223e53c76d Revert "Merge pull request #89750 from grantholly-clickhouse/parquet_footer_cache"
This reverts commit 5243ef786e, reversing
changes made to 6e3a5ad955.
2026-02-13 01:03:02 +01:00
divanik 5c33f119b5 Merge branch 'master' of github.com:ClickHouse/ClickHouse into parquet_footer_cache 2026-02-09 13:28:20 +01:00
Grant Holly d4179cbd85 merging in upstream master 2026-02-07 13:16:29 -08:00
Alexey MilovidovandClaude Opus 4.6 9412039119 Read access_control_improvements from config in clickhouse-local
Allow overriding the default access control improvements via an
explicitly provided config file, instead of unconditionally hardcoding
them to true.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-07 01:07:40 +01:00
Alexey Milovidov 77c13f8916 Merge branch 'master' into embedded-server-sql-access-storage 2026-02-07 00:49:43 +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
divanik e52b0adfd1 Merge branch 'master' into parquet_footer_cache 2026-02-05 11:42:17 +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
Yakov OlkhovskiyandGitHub dd53f068fc fix 2026-02-03 19:32:47 -05:00
Alexey Milovidov 80b735a2f7 I think 1 Gi is enough 2026-02-04 00:44:03 +01:00
Alexey MilovidovandClaude Opus 4.5 73802adf52 Enable all access control improvements in embedded server and clickhouse-local
Set all `access_control_improvements` options to true for stricter
access control behavior in the embedded server config and clickhouse-local.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-29 03:37:32 +01:00
Grant Holly 1fcac4d2ab Merge branch 'master' into parquet_footer_cache 2026-01-28 13:47:14 -08:00
Antonio Andelic dc3d47d689 Enable implicit-int-float-conversion check 2026-01-20 09:35:57 +01:00
Grant Holly 7d51bbf3fc bringing in upstream 2026-01-19 12:12:50 -08:00
Robert Schulze c6486aa334 Minor readability improvements for client options 2026-01-18 14:27:09 +00:00
Alexey Milovidov 7f33341c50 Continuation 2026-01-17 23:13:01 +01:00
Alexey MilovidovandClaude Opus 4.5 caf664f3e9 Enable access management for default user in clickhouse-local
The default user in clickhouse-local was missing the access_management
privilege, which caused operations like DROP ROW POLICY IF EXISTS to
fail with ACCESS_DENIED error, even though the user should be unrestricted.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-17 21:49:30 +01:00
Grant Holly adaa6273ab bringing in upstream master 2026-01-04 12:16:24 -08:00
Cole Smith 91fa9c52d0 nit: comments
nit: comments
2025-12-31 11:00:23 -05:00
Cole Smith ba515bfbad no longer print time on initial query
whitespace
2025-12-30 23:10:54 -05:00
Grant Holly e8b2af6311 removing references to v2 Arrow cache 2025-12-13 19:59:09 -08:00
Grant Holly 8dd831c781 Merge branch 'master' into parquet_footer_cache 2025-11-29 17:34:07 -08:00
Kirill Nikiforov 3d297c7dea cleanup: a bit better handling of database data/store/metadata paths 2025-11-21 09:54:50 +04:00
Grant Holly 3e11b555fb bringing in upstream 2025-11-14 15:36:49 -08:00
Grant Holly 396e53ae3b more cleanup 2025-11-07 15:00:35 -08:00
Grant Holly d334c8bfe0 more cleanup 2025-11-07 14:52:10 -08:00
Grant Holly bc81218d1b moving all settings under parquet_metadata_cache_* and no longer having separate options for v3 caches 2025-11-07 14:49:15 -08:00
Grant Holly 4f007ae6a8 fixing copy paste error 2025-11-07 14:35:25 -08:00
Grant Holly 1a68168b0e adding server settings and docs for drop cache statement 2025-11-07 14:08:14 -08:00
Elmi Ahmadov d32724e76b Merge remote-tracking branch 'origin/master' into ahmadov/text-index-posting-list-cache 2025-11-06 12:39:36 +01:00
Elmi AhmadovandGitHub bcacae904b Merge pull request #89513 from ClickHouse/ahmadov/text-index-header-cache
Text index: introduce cache for the deserialized header
2025-11-06 10:05:14 +00:00
Elmi Ahmadov b37cd0b167 Text index: introduce cache for deserialized posting lists
Since posting lists are the largest by the data size, caching them would
reduce I/O and improve the quer performance in consecutive runs.

The cache can be configured via new server settings:
- `text_index_postings_cache_policy`
- `text_index_postings_cache_size`
- `text_index_postings_cache_max_entries`
- `text_index_postings_cache_size_ratio`

and enabled using `use_text_index_postings_cache` setting (disabled by
default).
2025-11-06 02:03:18 +01:00
Konstantin Bogdanov 48d2f3b145 Fix readability-container-contains 2025-11-04 23:40:04 +01:00
Elmi Ahmadov 208eb6a35f Text index: introduce cache for the deserialized header
The header of the text index contains the number of tokens, bloom filter
and sparse index.
Since both bloom filter and sparse index can be relatively large,
caching them would reduce I/O and improve the query performance.

Make the cache configurable by the new server settings:
- `text_index_header_cache_policy`
- `text_index_header_cache_size`
- `text_index_header_cache_max_entries`
- `text_index_header_cache_size_ratio`

Additionally, the header cache can be enabled via a new setting
`use_text_index_header_cache`. By default, cache is disabled.
2025-11-04 18:17:06 +01:00
Elmi Ahmadov 80e55777c8 make text index dictionary block cache configurable
Also, remove the singleton approach and move text index dictionary block
cache into `Context`.
2025-10-21 00:12:56 +02:00
Alexey Milovidov 0cdf109c3f Allow clickhouse-local to start from the clickhouse-server directory 2025-10-11 18:28:28 +02:00
Antonio Andelic 77a5734091 Small fixes for jemalloc profiler 2025-09-25 10:55:07 +02:00
scanhex12andGitHub b1e70d5dcf Revert "Revert "Iceberg + delta lake local and s3 disks"" 2025-09-12 19:53:27 +02:00
Alexander TokmakovandGitHub 928ad2dca6 Revert "Iceberg + delta lake local and s3 disks" 2025-09-12 18:00:58 +02:00
Konstantin Vedernikov d93b649c2c fixes 2025-09-09 12:14:10 +00:00
Konstantin Vedernikov f836ef5dfb fixups 2025-09-09 10:44:17 +00:00
Azat Khuzhin 56b4d9eeb7 local: create data directory prio to setting up data for temporary storage
Previously this code relies on that fact that setupTmpPath() will create
the directory recursively, found it because
03321_clickhouse_local_initialization_not_too_slow_even_under_sanitizers
started to fail.
2025-08-01 11:44:25 +02:00
Michael Kolupaev 5199cd863f Merge remote-tracking branch 'origin/master' into shp2 2025-07-04 21:16:48 +00:00
Raúl Marín b85de2e694 Less header dependencies 2025-07-03 17:36:25 +02:00
Michael Kolupaev 88c8bc094b Merge remote-tracking branch 'origin/master' into shp2 2025-07-01 16:53:01 +00:00
Alexey Milovidov b2b72fbd4e Merge branch 'master' into rename-class 2025-07-01 01:58:51 +02:00
Michael Kolupaev 77fbb7b56b Revert "Revert "Refactor how IInputFormat deals with reading many files at once""
This reverts commit 1f28e8bbd0.
2025-06-30 16:53:52 +00:00
Azat KhuzhinandGitHub e90e5e14d4 Merge pull request #82444 from azat/client-fix-data-races
Fix data-races in client, session_timezone overrides and some data-races in some corner cases
2025-06-30 15:50:37 +00:00
Alexey MilovidovandGitHub 1f28e8bbd0 Revert "Refactor how IInputFormat deals with reading many files at once" 2025-06-30 17:34:05 +02:00