Commit Graph
112 Commits
Author SHA1 Message Date
8ebae42772 Update programs/main.cpp
Co-authored-by: Alexander Gololobov <[email protected]>
2025-02-03 17:44:16 +01:00
Antonio Andelic a34e7815bb Ignore some jemalloc messages 2025-02-03 16:22:48 +01:00
Nikita Mikhaylov 9c094a9959 Fixed FreeBSD build 2024-12-09 21:35:31 +00:00
Nikita Mikhaylov 5514403584 Better CMake 2024-12-09 21:35:31 +00:00
Nikita Mikhaylov 6024e34bef Return order to clickhouse-applications 2024-12-09 21:35:31 +00:00
Nikita Mikhaylov ec5830c857 Fix fasttest 2024-12-09 21:35:31 +00:00
Nikita Mikhaylov dc7bc42223 Moved some of utils to programs 2024-12-09 21:35:31 +00:00
Raúl Marín e50265bae5 Optimize includes of Exception.h 2024-12-02 22:26:41 +01:00
Raúl Marín 4fb38411c1 Only accept regular files 2024-11-07 19:06:36 +01:00
Raúl Marín 07b480c1e4 Implicitly treat a file argument as --queries-file 2024-11-07 14:44:31 +01:00
Antonio Andelic 5875694669 Fix includes 2024-07-03 18:48:32 +02:00
Antonio Andelic 07f51e02ed Reuse some checks 2024-07-03 16:54:09 +02:00
Alexey Milovidov 54c0bdee09 Fix style 2024-06-21 16:00:20 +02:00
Alexey Milovidov 5c541af995 Do not print jemalloc message at startup 2024-06-21 15:15:13 +02:00
Robert Schulze 18d432f44c Reapply "Remove some unnecessary UNREACHABLEs"
This reverts commit 5a868304c0.
2024-05-29 13:37:47 +00:00
Alexander TokmakovandGitHub 5a868304c0 Revert "Remove some unnecessary UNREACHABLEs" 2024-05-27 11:38:22 +02:00
Robert Schulze 0d3aeddc93 Merge remote-tracking branch 'rschu1ze/master' into unreachable-unreachable 2024-05-22 07:25:00 +00:00
Robert Schulze 2909e6451b Move StringUtils.h/cpp back to Common/ 2024-05-19 09:39:36 +00:00
Robert Schulze 53e992af4f Remove some unnecessary UNREACHABLEs 2024-05-17 11:46:07 +00:00
Alexey Milovidov 95f12ef274 Useless changes 2024-05-09 01:08:33 +02:00
Alexey Milovidov d7d38b14e8 Fix tests 2024-04-30 04:21:44 +02:00
Alexey Milovidov fae8080130 Allow using clickhouse-local with a positional argument 2024-04-28 04:39:56 +02:00
Azat Khuzhin 5caa89a2b3 Fix completion of available ClickHouse tools
Now clickhouse --help/ch --help will print --help for clickhouse-local,
let's use just "clickhouse help" to get help with list of available
tools in clickhouse binary itself.

Signed-off-by: Azat Khuzhin <[email protected]>
2024-04-09 15:37:56 +02:00
Alexey Milovidov 1a61da1bae Replace getFuzzerData with query text fuzzer in clickhouse-local 2024-03-18 02:17:24 +01:00
Alexey Milovidov 44e918bc67 Revive getFuzzerData 2024-03-17 16:22:33 +01:00
Nikita Mikhaylov 2bc4d27ac6 Bye bye 2024-03-07 19:24:39 +00:00
Azat Khuzhin 7fb31fe160 Remove ability to disable generic clickhouse components
Components like client/server/... are very generic, and there is no
point in disabling them, since it does not reduce amount of compiled
code a lot anyway (just a few modules for entrypoints, everything else
is already included in the clickhouse binary), and eventually they are
just symlinks to the clickhouse binary.

But there are few, that requires extra libraries, like ODBC bridge or
keeper components (and there is also standalone keeper binary compiled
with musl), those had been kept.

Also add some descriptions for some utils and change exit code to 0 for
--help.

Signed-off-by: Azat Khuzhin <[email protected]>
2024-02-12 11:10:00 +01:00
Alexey Milovidov 1caef19143 Maybe better 2024-01-16 09:44:52 +01:00
Alexey Milovidov e13ca48bce Better dump on exit 2024-01-15 05:13:43 +01:00
Alexey Milovidov 30c3629090 An option to dump coverage to a file at exit 2024-01-15 00:36:44 +01:00
Azat Khuzhin d899384ea1 Interpret binary without name as clickhouse-local
By "without name" I mean either of this:
- without arguments (except for the argv[0])
- or with arguments starts with dash

This should improve usability, and better ad of the clickhouse-local.

v2: clarify with comment
Signed-off-by: Azat Khuzhin <[email protected]>
2023-12-29 13:23:19 +01:00
Azat Khuzhin 9e6cfaf7d1 Interpret ch as clickhouse (instead of clickhouse-local)
Signed-off-by: Azat Khuzhin <[email protected]>
2023-12-29 12:38:52 +01:00
Alexey Milovidov d2560f2197 Make clickhouse-local and clickhouse-client available under short names for usability 2023-11-12 02:42:51 +01:00
Yakov Olkhovskiy 361b21b416 fix fuzzers, cmake refactor, add target fuzzers 2023-09-01 14:20:50 +00:00
Yakov Olkhovskiy bb1e3aaa29 fix 2023-08-24 23:21:37 +00:00
Alexey Milovidov e4384e104b Add a test that clickhouse-client or local do not throw/catch on startup 2023-07-17 00:06:58 +02:00
pufitandNikita Mikhaylov c93202cca4 Keeper Client MVP 2023-03-31 12:41:22 +00:00
Han Fei 4971358de5 fix init 2023-01-30 17:07:01 +01:00
Han Fei f5e736e240 introduce llvm/gwp-asan 2023-01-12 15:00:26 +01:00
Robert Schulze cfb6feffde What happens if I remove these 139 lines of code? 2023-01-03 18:35:31 +00:00
Alexander Tokmakov 4175f8cde6 abort instead of __builtin_unreachable in debug builds 2022-10-07 21:49:08 +02:00
Alexey Milovidov 8e4531d135 Preparation for Musl build, part 4 2022-10-01 16:29:41 +02:00
Alexey Milovidov 515972f459 Merge branch 'master' into forbid-dlopen-2 2022-09-18 02:20:22 +02:00
Alexey Milovidov d9d1b558e9 Fix clang-tidy 2022-09-17 18:40:22 +02:00
Alexey Milovidov ecd4c29c2a Forbid invocations of dlopen 2022-09-17 03:55:39 +02:00
Alexey Milovidov 35cce03125 Remove dlopen 2022-09-17 03:02:34 +02:00
Robert Schulze e8b3f56733 Limit suppression to a specific warning 2022-08-21 18:24:17 +00:00
Alexey Milovidov 74e1f4dc61 Fix clang-tidy 2022-08-20 17:09:20 +02:00
Robert Schulze dcc8751685 Disable harmful env var check to workaround failure to start the server 2022-07-31 08:55:07 +00:00
Robert Schulze bc46cef63c Minor follow-up
- change ELF section name to ".clickhouse.hash" (lowercase seems
  standard)

- more expressive/concise integrity check messages at startup
2022-06-14 08:52:13 +00:00