Commit Graph
94 Commits
Author SHA1 Message Date
Nikita TaranovandClaude Opus 4.7 06739aa854 Convert std containers in src/Compression to *WithMemoryTracking aliases
Swap std::vector, std::map, std::set, std::unordered_map, std::list to the
corresponding *WithMemoryTracking aliases in src/Compression. Mark a few
spots as STYLE_CHECK_ALLOW_STD_CONTAINERS where the type is bound to
IFactoryWithAliases::InnerMap covariance or referenced in a documentation
comment block. Add src/Compression to the directories linted by
check_cpp.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-21 13:56:16 +00:00
Raúl MarínandClaude Opus 4.6 5aba172381 Move getAllRegisteredNames to .cpp files, fix value sub-expression handling, add corner case tests
- Move `getAllRegisteredNames` implementations from headers to .cpp files
  for `CompressionCodecFactory`, `MergeTreeIndexFactory`,
  `DictionaryFactory`, and `DictionarySourceFactory`.
- Fix double-counting of opening parenthesis when a dictionary value
  is a function call — the deferred bareword handler now emits the
  paren and continues instead of falling through.
- Add test cases for function calls in dict values, nested parens,
  and dict keywords outside dictionary context.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-11 18:26:51 +01:00
Nazarii Piontkoandrienath 62a16fe6c4 Revert "Revert "Add ALP Codec"" 2026-03-03 18:25:43 +00:00
Alexey MilovidovandGitHub 19aacee54e Revert "Add ALP Codec" 2026-03-02 23:57:36 +01:00
rienath e78d8d14c9 Merge remote-tracking branch 'origin/master' into feature/alp 2026-02-05 12:55:00 +00:00
Nikolai Kochetov f4aa968b13 Use intrusive ptr for AST 2026-01-11 13:36:32 +01:00
Nazarii Piontko af7ae3b452 merge: master into feature/alp 2025-12-28 21:43:51 +01:00
Robert Schulze 034e9714a6 Remove QPL and QAT 2025-12-15 11:45:50 +00:00
Nazarii Piontko 3fd07de605 feat: initial ALP codec implementation 2025-12-01 00:06:52 +01:00
Raúl Marín 1e4c727dc0 Revert "Revert "Revert "Add SZ3 compression codec"""
This reverts commit 29032aedc2.
2025-07-24 11:53:40 +02:00
Konstantin VedernikovandGitHub 29032aedc2 Revert "Revert "Add SZ3 compression codec"" 2025-07-02 16:18:31 +02:00
Alexander TokmakovandGitHub ddddf0c043 Revert "Add SZ3 compression codec" 2025-07-02 15:31:10 +02:00
Robert Schulze c976f4efe2 Merge remote-tracking branch 'ClickHouse/master' into sz_attempt_2 2025-06-26 12:24:06 +00:00
Jimmy Aguilar Mena cc56c6e6c2 CR3 @rschu1ze
Remove `is_delta_compression`
2025-06-12 19:55:55 +02:00
Jimmy Aguilar Mena cdc81d8129 CR2 @rschu1ze
(getNotes -> getDescription): Function renamed
Fix some typos
Re-expose the `method_byte` as suggested by @alexey-milovidov
2025-06-12 00:08:02 +02:00
Jimmy Aguilar Mena 1edf0087fb CR suggestions from @rschu1ze and @novikd 2025-06-12 00:08:02 +02:00
Jimmy Aguilar Mena d294cc910d Add documentation column "notes" to the system.codecs table
Add a new virtual function getNotes that returns documentation for the codec taken from:
https://kb.altinity.com/altinity-kb-schema-design/codecs/

* src/Compression/ICompressionCodec.h (getData) : New interface function. And update in all derived classes.
2025-06-12 00:08:02 +02:00
Jimmy Aguilar Mena 59ff306706 Introspect the list of codecs and their properties.
* src/Storages/System/StorageSystemCodecs.{h,cpp} : New files with the new table class.
* src/Storages/System/StorageSystemCodecs.{h,cpp} (getMutableColumns) : New function to get columns information accessing the private members in CompressionCodecFactory
* src/Storages/System/attachSystemTables.cpp : Attach the new table to system.
2025-06-12 00:08:02 +02:00
Robert SchulzeandKonstantin Vedernikov 7c3844aec3 Some fixups 2025-05-28 20:26:21 +00:00
Konstantin Vedernikov 53c85446fb first version 2025-05-28 20:25:54 +00:00
Nikita Mikhailov 2fb8de68af Better 2025-03-14 20:04:45 +01:00
Nikita Mikhailov b600314abb Rename method and add another one 2025-03-14 19:57:10 +01:00
Nikita Mikhailov 050135d5c9 Remove queryToString 2025-03-14 19:57:10 +01:00
Robert SchulzeandKonstantin Bogdanov 012f6cd9da Revert "Remove idxd-config library which has an incompatible license"
This reverts commit 92a44372b3.
2025-02-17 04:44:02 +01:00
Alexey Milovidov 10e0219250 Remove idxd-config library which has incompatible license 2024-10-23 21:45:39 +02:00
Konstantin Bogdanov 67c1e89d90 Apply linter changes 2024-10-06 12:29:20 +02:00
Robert Schulze eec5fe087c Fix CMake for QATlib 2024-08-09 08:50:52 +00:00
Robert Schulze a497a23914 Fix CMake for QPL 2024-08-09 08:44:22 +00:00
Antonio Andelic 4a9daa202d Remove Keeper standalone build 2024-07-01 11:24:45 +02:00
Maksim Kita ec6c276a92 Temporary data use temporary_files_codec setting 2024-03-19 19:07:45 +03:00
Robert Schulze 0f51e32bb5 Rename from ZSTDQPL to ZSTD_QPL 2024-01-07 17:47:31 +00:00
jinjunzh 5e1b048e52 refine ZSTDQAT code name 2023-12-13 11:02:06 -05:00
jinjunzh f302ba0e31 Implement hardware-assisted(QAT) ZSTD compression 2023-12-05 17:47:18 -05:00
seshWCS b0a229592f Cosmetic 2023-09-05 12:37:31 +00:00
seshWCS 4a1d67dd3c Qpl 2023-09-05 12:35:39 +00:00
Александр НамandGitHub 9a71bce1f5 Merge branch 'ClickHouse:master' into gcddelta-codec 2023-09-02 00:51:49 +03:00
kssenii 3f20d1f578 Rename 2023-09-01 12:55:58 +02:00
Александр Нам f533eeaf95 Moved registerCodecGCD to ifndef 2023-08-08 17:26:01 +00:00
Александр Нам 0a4c3f1dac Fix 2023-08-08 15:16:31 +00:00
Александр Нам 90d0c48108 Edited codec-files 2023-08-07 16:43:46 +00:00
kssenii ecfbf1e304 Remove dependency from DB::Context in readers 2023-05-02 21:45:27 +02:00
Suzy WangandGitHub 64313d7020 Merge branch 'master' into z-build-0120 2023-02-09 14:49:22 -05:00
Robert Schulze 84b9ff450f Fix terribly broken, fragile and potentially cyclic linking
Sorry for the clickbaity title. This is about static method
ConnectionTimeouts::getHTTPTimeouts(). It was be declared in header
IO/ConnectionTimeouts.h, and defined in header
IO/ConnectionTimeoutsContext.h (!). This is weird and caused issues with
linking on s390x (##45520). There was an attempt to fix some
inconsistencies (#45848) but neither did @Algunenano nor me at first
really understand why the definition is in the header.

Turns out that ConnectionTimeoutsContext.h is only #include'd from
source files which are part of the normal server build BUT NOT part of
the keeper standalone build (which must be enabled via CMake
-DBUILD_STANDALONE_KEEPER=1). This dependency was not documented and as
a result, some misguided workarounds were introduced earlier, e.g.
https://github.com/ClickHouse/ClickHouse/pull/38475/commits/0341c6c54bd7ac77200b4ca123208b195514ef20

The deeper cause was that getHTTPTimeouts() is passed a "Context". This
class is part of the "dbms" libary which is deliberately not linked by
the standalone build of clickhouse-keeper. The context is only used to
read the settings and the "Settings" class is part of the
clickhouse_common library which is linked by clickhouse-keeper already.

To resolve this mess, this PR

- creates source file IO/ConnectionTimeouts.cpp and moves all
  ConnectionTimeouts definitions into it, including getHTTPTimeouts().

- breaks the wrong dependency by passing "Settings" instead of "Context"
  into getHTTPTimeouts().

- resolves the previous hacks
2023-02-05 20:49:34 +00:00
Boris Kuschel 1d4cf4fe69 Add encryption support with openssl 2023-02-04 14:59:34 -05:00
Suzy WangandGitHub 1176260b3c Merge branch 'master' into z-build-0120 2023-01-24 01:14:42 -05:00
Alexander TokmakovandGitHub 70d1adfe4b Better formatting for exception messages (#45449)
* save format string for NetException

* format exceptions

* format exceptions 2

* format exceptions 3

* format exceptions 4

* format exceptions 5

* format exceptions 6

* fix

* format exceptions 7

* format exceptions 8

* Update MergeTreeIndexGin.cpp

* Update AggregateFunctionMap.cpp

* Update AggregateFunctionMap.cpp

* fix
2023-01-24 00:13:58 +03:00
Suzy Wang 19d26828a0 s390x build support 2023-01-20 21:16:55 +00:00
Robert Schulze da5a2e2db0 Merge remote-tracking branch 'origin/master' into generated-file-cleanup
Physical merge conflicts:
- src/Common/ZooKeeper/ZooKeeperImpl.cpp
- src/Core/config_core.h.in
- src/Functions/FunctionsAES.h
- src/Functions/config_functions.h.in
- src/configure_config.cmake

Logical merge conflicts:
- Functions/tryDecrypt.cpp
2022-10-06 08:43:25 +00:00
Robert Schulze fd86829824 Consolidate config_core.h into config.h
Less duplication, less confusion ...
2022-09-28 13:31:57 +00:00
Meena Renganathan 51d6611b96 Committing the ClickHouse core changes and other libraries to support OpenSSL. BoringSSL is still set as default 2022-09-12 09:05:38 -07:00