Kruglov Pavel
f1bf3f1fc3
Merge pull request #56710 from Avogar/fix-abort-in-local
...
Fix 'mutex lock failed: Invalid argument' in clickhouse-local during insert into function
2023-11-16 14:45:18 +01:00
Robert Schulze
2931bbfe62
Merge pull request #56665 from rschu1ze/refactor-ast-hash-calculation
...
Small refactoring of AST hash calculation (follow-up to #56545 )
2023-11-14 11:24:30 +01:00
avogar
a09437c816
Fix possible 'uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument' in clickhouse-local
2023-11-13 22:23:38 +00:00
Alexey Milovidov
c81cc3f953
Merge pull request #56660 from ClickHouse/better-ccache-2
...
Better use of build cache
2023-11-13 19:28:33 +01:00
Robert Schulze
d6df7d8403
Merge remote-tracking branch 'rschu1ze/master' into refactor-ast-hash-calculation
2023-11-13 15:54:21 +00:00
Kruglov Pavel
abf08839ec
Merge pull request #55976 from Avogar/fix-client-insert-in-background
...
Fix 'Cannot read from file:' while running client in a background
2023-11-13 15:16:49 +00:00
Robert Schulze
b899270372
Remove default value for argument 'ignore_aliases' from IAST::updateTreeHash()
2023-11-13 13:18:35 +00:00
Alexey Milovidov
8e820185cb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into better-ccache-2
2023-11-13 11:17:18 +01:00
Alexey Milovidov
82c461031e
Fix build
2023-11-13 10:09:23 +01:00
Alexey Milovidov
9a7f5ab0a1
Better use of build cache
2023-11-13 08:54:24 +01:00
Pradeep Chhetri
be1e061764
Use SSL port for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-13 10:31:56 +08:00
Pradeep Chhetri
3cb41bf0f2
Enable --secure flag for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-12 15:00:10 +08:00
Pradeep Chhetri
ce668e4491
Enable --secure flag for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-12 14:45:17 +08:00
Alexey Milovidov
9317357873
Merge pull request #56546 from ClickHouse/remove-1
...
Remove useless using
2023-11-10 16:56:56 +01:00
Alexey Milovidov
3f5b94b8ca
Remove useless using
2023-11-09 23:37:39 +01:00
kssenii
9178fd4ad1
Fix case with replicated database
2023-11-07 16:02:51 +01:00
avogar
7c69dee5cd
Fix review comment
2023-11-02 18:05:02 +00:00
avogar
1078047fb5
Fix 'Cannot read from file:' while running client in a background
2023-11-02 17:46:34 +00:00
Alexey Milovidov
3631e476eb
Merge pull request #54947 from amosbird/minmax-combinator
...
Introduce -ArgMin/-ArgMax combinators.
2023-10-30 03:35:28 +01:00
Alexey Milovidov
9313b343e4
Merge pull request #55240 from aiven-sal/aiven-sal/client
...
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown
2023-10-26 13:52:53 +02:00
avogar
2516c2ea28
Fix clickhouse-local exit on bad send_logs_level setting
2023-10-24 20:46:44 +00:00
Salvatore Mesoraca
7e8dac6064
Fix logic
2023-10-24 15:36:17 +02:00
Salvatore Mesoraca
fdabea6158
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown
2023-10-24 15:36:14 +02:00
Alexey Milovidov
7ec4b99e94
Revert partial result
2023-10-21 03:14:22 +02:00
Alexey Milovidov
14c2900185
Merge pull request #55853 from ClickHouse/local-allow-drop-current-database
...
Allow querying inside a dropped database in clickhouse-local
2023-10-20 19:04:54 +02:00
Anton Popov
5819bcd07a
Support asynchronous inserts for native protocol ( #54730 )
...
* support async insert for native protocol
* use separate queue for async inserts via native protocol
* fix test
* better logging for async inserts and more tests
* disable mixed internal and external data in async inserts
* fix tests
* fix quota in async inserts
* disable async insert for secondary query of distributed
2023-10-20 18:39:48 +02:00
Alexey Milovidov
c6e998290d
Allow querying inside a dropped database in clickhouse-local
2023-10-20 05:14:09 +02:00
Michael Kolupaev
70711b0898
Remove temporary debug logging in MultiplexedConnections ( #55764 )
2023-10-18 23:05:03 -07:00
Azat Khuzhin
2fc858bfe1
Adjust output_format_pretty_max_rows if --pager is specified
2023-10-16 22:31:57 +02:00
Azat Khuzhin
4cb3de3110
Add pager property into ClientBase
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:31:55 +02:00
Azat Khuzhin
3257d5643d
Move adjusting input_format_values_allow_data_after_semicolon into the client base
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:31:55 +02:00
Azat Khuzhin
fc354d7fbf
Reset signals that is catched by clickhouse-client if pager is in use
...
We need to reset signals that had been installed in the
setupSignalHandler() (SIGINT/SIGQUIT), like other such tools dies (i.e.
less and open file in editor) since terminal will send signals to both
processes and so signals will be delivered to the
clickhouse-client/local as well, which will be terminated when signal
will be delivered second time.
So a simple `clickhouse-client --pager less` will be terminated on a
second C-C press. And it is really annoying when you are using this way
to analyze logs.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:03:36 +02:00
Alexey Milovidov
13ee46ed74
Merge pull request #55583 from azat/unittests-fix-context
...
Fix global context for tests with --gtest_filter
2023-10-14 00:27:30 +02:00
Alexander Tokmakov
e3e105d154
Merge pull request #55527 from azat/values-eof-check-fix
...
Fix checking of non handled data for Values format
2023-10-13 18:07:02 +02:00
Azat Khuzhin
f42cc282ec
Do not include headers from tests into client
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-13 13:44:30 +02:00
Azat Khuzhin
a5cced2b9e
Move comment into correct place
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 12:25:08 +02:00
JackyWoo
1f553f3d65
Merge branch 'master' into lb_nearest_host_name
2023-10-12 10:19:17 +08:00
Yakov Olkhovskiy
0738984edf
Merge pull request #42510 from ClibMouse/Kusto-phase2-oss-pr
...
Support Kusto Query Language dialect - phase 2
2023-10-11 08:35:26 -04:00
JackyWoo
784fe880eb
Merge branch 'master' into lb_nearest_host_name
2023-10-07 09:04:26 +08:00
Azat Khuzhin
b4eb05e1d7
Fix syntax highlight in client for spaceship operator
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-04 14:58:37 +02:00
Amos Bird
51f603bdfc
Rename as suggested.
2023-09-28 15:11:56 +08:00
Amos Bird
056b2693a3
Reorganize combinators into dedicated folder
2023-09-28 15:11:55 +08:00
Yong Wang
8c9da6bacf
Merge remote-tracking branch 'origin/master' into Kusto-phase2-oss-pr
2023-09-27 22:35:14 -07:00
Robert Schulze
1e1ce40228
Suppress a new finding
2023-09-27 12:18:26 +00:00
Robert Schulze
2d750e9e2f
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-27 12:15:29 +00:00
JackyWoo
5da03e8ba5
Add load balancing test_hostname_levenshtein_distance
2023-09-27 10:46:39 +08:00
Michael Kolupaev
1ac2247b3c
Add desperate instrumentation for debugging deadlock in MultiplexedConnections ( #54940 )
2023-09-26 13:24:06 -07:00
Robert Schulze
cde10fe7b5
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-26 18:59:41 +00:00
Robert Schulze
ab2b5cd5ca
More fixes
2023-09-26 18:55:10 +00:00
George Gamezardashvili
0ce30ab6d5
SSH keys authentication ( #41109 )
...
Added new type of authentication based on SSH keys. It works only for Native TCP protocol.
Co-authored-by: Nikita Mikhaylov <nikitamikhaylov@clickhouse.com>
Co-authored-by: Robert Schulze <robert@clickhouse.com>
2023-09-26 17:50:19 +02:00
Robert Schulze
9fff447716
Re-enable clang-tidy checks
2023-09-26 09:34:12 +00:00
robot-clickhouse-ci-2
d98234dc9d
Merge pull request #54803 from Avogar/ephemeral-columns-from-files
...
Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files
2023-09-22 23:24:42 +02:00
Robert Schulze
50c51c2854
Fix new clang-tidy-s
2023-09-20 22:17:39 +00:00
avogar
520c9e95a9
Fix
2023-09-20 16:25:55 +00:00
avogar
3e08800cb5
Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files
2023-09-20 16:25:55 +00:00
vdimir
77dd2a556a
Merge pull request #52870 from Avogar/fix-misleading-error
...
Fix misleading error message in OUTFILE with CapnProto/Protobuf
2023-09-13 11:30:04 +02:00
Nikolai Kochetov
59108f3d96
Merge pull request #54476 from ClickHouse/revert-54470-revert-48607-master
...
Revert "Revert "Add settings for real-time updates during query execution""
2023-09-11 14:59:13 +02:00
robot-ch-test-poll
6f3374d684
Merge pull request #54481 from ucasfl/hints
...
Refactor IHints
2023-09-10 15:46:36 +02:00
flynn
6ec783a746
Refactor IHints
2023-09-10 03:48:12 +00:00
Nikolai Kochetov
9b936c44db
Revert "Revert "Add settings for real-time updates during query execution""
2023-09-09 12:29:39 +02:00
Alexey Milovidov
03a755732a
Revert "Add settings for real-time updates during query execution"
2023-09-09 03:10:23 +03:00
Nikolai Kochetov
0095124791
Merge pull request #48607 from alexX512/master
...
Add settings for real-time updates during query execution
2023-09-08 09:05:33 +02:00
Robert Schulze
d03fba52f0
Merge remote-tracking branch 'rschu1ze/master' into multiple_query_arguments
2023-09-04 16:10:00 +00:00
Robert Schulze
11fea581bc
Fix tests
2023-09-04 15:34:42 +00:00
Raúl Marín
e192d4c624
Fix summary reporting with parallel replicas with LIMIT ( #53050 )
2023-09-04 15:53:06 +02:00
vdimir
fc7a8d0080
Merge pull request #54190 from azat/client/restart-pager
2023-09-04 13:47:07 +02:00
Robert Schulze
44994fe51b
Incorporate review feedback
2023-09-04 11:44:37 +00:00
Ziy1-Tan
fe7d636b93
Improve docs
...
Signed-off-by: Ziy1-Tan <ajb459684460@gmail.com>
2023-09-04 11:44:27 +00:00
Ziy1-Tan
5db1961129
Allow specifying --query
multiple times in the command line
2023-09-04 11:44:22 +00:00
Azat Khuzhin
a7cc4815e6
Fix pager in client/local interactive mode when not all data had been read
...
It is pretty general use case to use --pager=less and do not look
through all rows in the output.
Before this patch after first EPIPE the output of queries will not be
printed anymore, instead it will try to finalize the output format again
and again and obviously will fail:
Code: 75. DB::ErrnoException: Cannot write to file (fd = 16), errno: 32, strerror: Broken pipe. (CANNOT_WRITE_TO_FILE_DESCRIPTOR), Stack trace (when copying this message, always include the lines below):
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-04 10:49:06 +02:00
Igor Nikonov
d7076ab017
Revert "Revert "Fix: respect skip_unavailable_shards with parallel replicas""
2023-09-02 23:52:56 +02:00
Alexander Tokmakov
782c15330b
Revert "Fix: respect skip_unavailable_shards with parallel replicas ( #53904 )"
...
This reverts commit f2290d9a6f
.
2023-09-01 18:01:07 +02:00
Igor Nikonov
f2290d9a6f
Fix: respect skip_unavailable_shards with parallel replicas ( #53904 )
...
Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
2023-09-01 15:57:40 +02:00
alexX512
36b8932b37
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-31 21:40:50 +00:00
Sergei Trifonov
802579f3f1
Merge pull request #49618 from ClickHouse/concurrency-control-controllable
...
Make concurrency control controllable
2023-08-29 19:44:51 +02:00
alexX512
b3ba00f443
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-29 10:59:29 +00:00
alexX512
47a908dfa8
Add support for nested supqueries for AggregationPartialResult transform and more comments
2023-08-29 10:45:34 +00:00
Yong Wang
828f4a67b7
Kusto-phase2: use seperated path to parse kql query
2023-08-26 07:40:40 -07:00
Yong Wang
5cc3f4708c
Kusto-phase2: restore to kusto dialect only, fix some style issue
2023-08-26 07:40:39 -07:00
Yong Wang
6f6a103c5f
Kusto-phase2: remove dialect auto option. use table function instead of subquery for kql() function fix type.
2023-08-26 07:40:39 -07:00
Larry Luo
1105ac624b
Fixed style issues
2023-08-26 07:40:38 -07:00
HeenaBansal2009
bb4b8a9468
Fix bug in clickhouse-client for non-interactive mode
2023-08-26 07:40:27 -07:00
Yong Wang
5ec628a638
Kusto-phase2: Fixed the issue of conflict
2023-08-26 07:40:26 -07:00
Yong Wang
7a115d0ab2
Kusto-phase2: add kusto_auto dialect
2023-08-26 07:40:26 -07:00
Yong Wang
ae6e6b1c3b
Kusto-phase2: Changed dialect to use enumerate, Added subquery for in operator, fixed the multi query issue
2023-08-26 07:40:25 -07:00
Yong Wang
91e6d407cb
Kusto-phase 2: Add more string operators
2023-08-26 07:40:25 -07:00
Yong Wang
760fd6759e
Kusto-phase2: add kusto_auto dialect
2023-08-26 07:40:25 -07:00
Alexey Gerasimchuck
3140958132
Added client_info validation
2023-08-22 03:52:57 +00:00
Amos Bird
476f3cedc1
Various reactions when executable stderr has data
2023-08-18 15:38:45 +08:00
Robert Schulze
ec7daed52f
Merge pull request #50276 from ClibMouse/feature/mergetree-checksum-big-endian-support
...
MergeTree & SipHash checksum big-endian support
2023-08-17 13:27:18 +02:00
Alexander Tokmakov
08e4e2bb0b
fix
2023-08-16 22:35:45 +02:00
Alexander Tokmakov
3fc65a68c7
more parallel tests
2023-08-15 23:04:04 +02:00
Alexander Tokmakov
5ab82cc019
Merge pull request #53430 from ClickHouse/merging_53177
...
Merging #53177
2023-08-15 00:39:09 +03:00
Sergei Trifonov
771710b377
Merge branch 'master' into concurrency-control-controllable
2023-08-11 16:50:13 +02:00
ltrk2
1dc1b54c68
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-11 07:48:49 -04:00
Alexey Milovidov
aae35f3b1c
Merge pull request #53184 from ClickHouse/better-ccache
...
Better usage of ccache
2023-08-11 04:43:45 +03:00
ltrk2
a2054c04dd
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-10 10:21:34 -04:00
Alexey Gerasimchuck
26aded5062
Used main connections for suggestions
2023-08-10 04:11:07 +00:00
ltrk2
139e9433a8
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-09 09:48:00 -04:00
Alexey Milovidov
fa9abc5038
Better usage of ccache
2023-08-09 05:02:50 +02:00
Alexey Milovidov
aa757490bd
Ditch tons of garbage
2023-08-09 02:19:02 +02:00
alexX512
520a3c6eeb
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-07 16:52:51 +00:00
Sergei Trifonov
dcac12c8f9
Merge branch 'master' into concurrency-control-controllable
2023-08-07 13:43:02 +02:00
Antonio Andelic
cafa5ef2f3
Merge branch 'master' into add-reading-from-archives
2023-08-06 10:21:47 +00:00
pufit
e0576a4f59
Merge pull request #53029 from azat/clickhouse-keeper-client-completion-fix
...
Fix completion for clickhouse-keeper-client
2023-08-04 17:48:45 -04:00
Azat Khuzhin
eda396eb7c
Fix completion for clickhouse-keeper-client
...
Previously some symbols had been counted as word breakers, and this
breaks the completion since after such symbol the completion will start
from scratch.
One of the most annoying was the "-" sign.
But actually all those word breakers that is used for SQL completion is
not required for keeper client, so let's leave only necessary.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-08-04 09:24:32 +02:00
alexX512
0d84226914
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-02 19:18:59 +00:00
ltrk2
27a2d4d1c7
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-02 11:36:43 -04:00
Antonio Andelic
e366ca61f5
Merge branch 'master' into add-reading-from-archives
2023-08-01 15:33:20 +00:00
Kruglov Pavel
262d4c6316
Add try/catch in destructor
2023-08-01 16:44:46 +02:00
avogar
f9d7fe9ab9
Fix misleading error message in OUTFILE with CapnProto/Protobuf
2023-08-01 14:32:10 +00:00
Sergei Trifonov
01196ac41f
Merge branch 'master' into concurrency-control-controllable
2023-08-01 15:40:50 +02:00
avogar
f9a9b02439
Better comment
2023-08-01 12:45:56 +00:00
avogar
1cbd4ff2d6
Fix possible assert in ~PushingAsyncPipelineExecutor in clickhouse-local
2023-08-01 12:42:36 +00:00
ltrk2
e869adf645
Improve function naming
2023-07-31 06:48:50 -07:00
Antonio Andelic
9fb86f134b
Fix tests
2023-07-31 12:04:27 +00:00
Alexey Gerasimchuck
e58b3cfd32
Implemented max sessions for user
2023-07-30 22:09:03 +00:00
ltrk2
6c9a1b14ef
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-07-28 16:18:46 -04:00
Yakov Olkhovskiy
b95745d916
fix: check positional options
2023-07-27 17:52:44 +00:00
Yakov Olkhovskiy
d35c87c1bd
allow positional options for clickhouse-local and populate global udf settings
2023-07-27 05:06:16 +00:00
Dmitry Kardymon
62f9a953fe
Merge remote-tracking branch 'origin/master' into ADQM-940
2023-07-24 04:52:12 +00:00
alexX512
c403f56e09
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-07-21 17:56:53 +00:00
ltrk2
90a2c460c6
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-07-21 08:07:18 -04:00
Kruglov Pavel
921d25e4e4
Merge branch 'master' into hedged-requests-timeouts
2023-07-21 13:23:49 +02:00
Kruglov Pavel
227db5243f
Merge pull request #51934 from Avogar/async-connect-to-multiple-ips
...
Fix async connect to hosts with multiple ips
2023-07-20 13:42:11 +02:00
János Benjamin Antal
e74acda53e
PRQL integration ( #50686 )
...
* Added prql-lib
* Add PRQL parser
* Extend stateless tests
* Add unit tests for `ParserPRQL`
---------
Co-authored-by: Ubuntu <ubuntu@ip-172-31-37-24.eu-central-1.compute.internal>
Co-authored-by: Ubuntu <ubuntu@ip-10-10-10-195.eu-central-1.compute.internal>
Co-authored-by: Александр Нам <47687537+seshWCS@users.noreply.github.com>
2023-07-20 12:54:42 +02:00
Kruglov Pavel
b08c72b28d
Merge branch 'master' into async-connect-to-multiple-ips
2023-07-20 12:45:19 +02:00
ltrk2
51e2c58a53
Implement endianness-independent SipHash and MergeTree checksum serialization
2023-07-19 10:01:55 -07:00
Kruglov Pavel
06e366d7fb
Merge branch 'master' into fix-race-in-multiplexed-connections
2023-07-19 14:35:01 +02:00
Dmitry Kardymon
68a501a14e
Merge remote-tracking branch 'origin/master' into ADQM-940
2023-07-18 18:16:09 +00:00
Antonio Andelic
681bf10c93
Check nullptr in fuzzer
2023-07-18 13:06:02 +00:00
avogar
2abd69d921
Fix data race on Connection::setAsyncCallback
2023-07-17 15:14:54 +00:00
Kruglov Pavel
9ac1a9c556
Merge branch 'master' into async-connect-to-multiple-ips
2023-07-17 13:40:36 +02:00
Azat Khuzhin
4669951db5
Fix timeout for hedged requests
...
Reset the timeout for hedged requests after each packet (such as
Progress packets) to avoid triggering send_timeout/receive_timeout as a
total timeout for the query in some cases.
Here is a simple query that demonstrates the problem:
select * from remote('127.2', view(select sleep(3) from system.one)) settings receive_timeout=1
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-16 07:48:48 +02:00
Alexey Gerasimchuck
8f882b270e
Merge branch 'master' into ADQM-956
2023-07-11 16:02:14 +10:00
Dmitry Kardymon
09ba975ffc
Merge remote-tracking branch 'origin/master' into ADQM-940
2023-07-10 13:32:29 +00:00
Dmitry Kardymon
3fcfbb1038
Merge remote-tracking branch 'clickhouse/master' into ADQM-940
2023-07-07 15:09:41 +03:00
avogar
cd3080428e
Fix async connect to hosts with multiple ips
2023-07-07 10:58:01 +00:00
alekar
f37e08a945
Merge branch 'master' into fix-to-outfile
2023-07-05 21:25:21 -07:00
Alexey Milovidov
376c903da9
Merge pull request #51518 from ClickHouse/qemu-chroot-fixes
...
Allow running in a stripped chroot environment
2023-07-06 03:57:04 +03:00
alekar
df87b79f71
Merge branch 'master' into fix-to-outfile
2023-07-05 10:52:09 -07:00
Alexey Milovidov
6d0e6b58f3
Merge branch 'master' into remove-analyzer-setting-client
2023-07-05 02:30:17 +03:00
Alexey Milovidov
2c96580a77
Merge branch 'master' into concurrency-control-controllable
2023-07-04 23:16:04 +03:00
Alexey Milovidov
0eeb0b418b
Merge branch 'master' into qemu-chroot-fixes
2023-07-04 20:19:53 +03:00
Alexey Gerasimchuck
3218624461
Merge branch 'master' into ADQM-956
2023-07-04 11:47:24 +10:00
alekar
2236d848b6
Merge branch 'master' into fix-to-outfile
2023-07-03 15:02:46 -07:00
Manas Alekar
3c4491b706
Ignore APPEND and TRUNCATE modifiers if file does not exist.
2023-06-29 14:31:40 -07:00
Alexey Milovidov
0c697b920f
Remove the usage of Analyzer setting in the client
2023-06-29 06:58:53 +02:00
Alexey Milovidov
b6ca956480
Merge branch 'master' into qemu-chroot-fixes
2023-06-29 07:52:08 +03:00
Sema Checherinda
ecea5da70c
Merge branch 'master' into no-finalize-WriteBufferFromOStream
2023-06-28 17:04:25 +02:00
Nikita Mikhaylov
b8b0fd3abf
Slightly better code around packets for parallel replicas ( #51451 )
2023-06-28 12:30:15 +02:00
Alexey Milovidov
e3189e29f7
Allow running in a stripped chroot
2023-06-28 11:56:11 +02:00
Dmitry Kardymon
a2c9e26b23
Add peak memory usage (prototype)
2023-06-28 09:31:44 +00:00
Sema Checherinda
1596b09dc2
add missing finalize calls
2023-06-28 10:51:54 +02:00
Sema Checherinda
047f656980
add explicit finalize calls
2023-06-26 15:04:50 +02:00
Nikolay Degterinsky
4b02d83999
Merge pull request #50950 from alekar/improve-outfile
...
Address some usability issues with INTO OUTFILE usage.
2023-06-25 18:40:55 +02:00
Andrey Zvonov
d4316c7189
Merge branch 'master' into zvonand-implicit-tz
2023-06-22 17:23:20 +02:00
Sema Checherinda
01de36f1fa
Merge pull request #50395 from CheSema/better-log
...
require `finalize()` call before d-tor for all writes buffers
2023-06-21 21:12:02 +02:00
Andrey Zvonov
b4f2e4020d
Merge branch 'master' into zvonand-implicit-tz
2023-06-21 13:41:35 +02:00
alekar
c88c57d599
Merge branch 'master' into improve-outfile
2023-06-21 01:17:54 -07:00
Manas Alekar
44798971f9
Fix a test, add APPEND to suggest.
2023-06-20 22:10:39 -07:00
Sema Checherinda
9b0c3359cf
Merge branch 'master' into better-log
2023-06-20 20:37:36 +02:00
Robert Schulze
bc7df2baca
Merge branch 'master' into non-experimental-qpl-deflate
2023-06-20 20:06:01 +02:00
Andrey Zvonov
07191ce10d
Merge branch 'master' into zvonand-implicit-tz
2023-06-20 00:24:53 +02:00
Sema Checherinda
a2d5c91a28
cancel temp part with exception context when deduplication triggered
2023-06-19 12:52:20 +02:00
Alexey Gerasimchuck
25948cdd9e
Added ASK_PASSWORD client constant
2023-06-19 03:57:38 +00:00
Sema Checherinda
cf31fdb4d5
no finalize at d-tor in compression
2023-06-16 16:38:18 +02:00
Manas Alekar
508e4906c0
Avoid double-catching the exceptions.
2023-06-16 01:47:28 -07:00
Manas Alekar
f610645c07
Move outfile checks before query starts running.
2023-06-16 01:10:11 -07:00
alekar
b70803c71b
Merge branch 'master' into improve-outfile
2023-06-16 01:08:48 -07:00
zvonand
4155d13d69
merge master and resolve conflict
2023-06-16 02:20:32 +02:00
Kseniia Sumarokova
31e08635bf
Merge branch 'master' into unify-priorities-pools
2023-06-15 12:51:45 +02:00
Manas Alekar
0a1d0c4abd
Fix one stateless test.
2023-06-13 23:37:01 -07:00
Alexey Gerasimchuck
868c3bd45d
minor change
2023-06-14 04:29:08 +00:00
Alexey Gerasimchuck
f1b5d47ce2
corrections after second review iteration
2023-06-14 01:26:39 +00:00
Manas Alekar
bf69755ada
Address some usability issues with INTO OUTFILE usage.
2023-06-13 01:26:11 -07:00
Alexey Gerasimchuck
e3a13111ae
Merge branch 'master' into ADQM-871
2023-06-13 14:05:13 +10:00
Alexey Gerasimchuck
2395b25f9e
Changes after review
2023-06-13 01:55:34 +00:00
Robert Schulze
3617316026
Merge branch 'master' into non-experimental-qpl-deflate
2023-06-12 16:01:45 +02:00
Han Fei
d47cdd4eb6
Merge pull request #50605 from ClickHouse/revert-50467-revert-50430-hanfei/fix-crossjoin-filter-pushdown
...
Revert "Revert "make filter push down through cross join"" and supress a test
2023-06-12 15:12:58 +02:00
Robert Schulze
1aa158909e
enable_qpl_deflate_codec --> enable_deflate_qpl_codec
2023-06-09 12:43:33 +00:00
jinjunzh
f1192d59af
refine patch according to comments
2023-06-09 12:43:15 +00:00
jinjunzh
056ca4f555
Add extensive testing cases for deflate qpl codec
2023-06-09 12:42:59 +00:00
Alexey Gerasimchuck
b8fc25ab23
minor update
2023-06-09 06:51:34 +00:00
Alexey Gerasimchuck
d0938e95e6
prohibited to use --connection
2023-06-09 06:40:57 +00:00
Alexey Gerasimchuck
7578203b46
Changes after review
2023-06-09 03:44:43 +00:00
Andrey Zvonov
d95be4162f
Merge branch 'master' into zvonand-implicit-tz
2023-06-08 18:34:45 +03:00
Alexey Gerasimchuck
d3eb0805d4
clang-tidy run + changes in docs
2023-06-07 23:28:19 +00:00
serxa
2df0e0c669
Unify priorities for connections
2023-06-07 16:25:52 +00:00
Han Fei
3c80656aeb
Merge branch 'master' into revert-50467-revert-50430-hanfei/fix-crossjoin-filter-pushdown
2023-06-07 17:06:50 +02:00
Han Fei
ea1aa4bd9e
update comment
2023-06-07 16:02:16 +02:00
Alexey Gerasimchuck
aaa4d0367e
Minor improvement for connection string
2023-06-07 06:29:14 +00:00
Alexey Gerasimchuck
4a0ccc25d2
Minor improvement
2023-06-07 06:15:10 +00:00
Alexey Gerasimchuck
23a3026836
Implemented connection string
2023-06-07 03:16:29 +00:00
Kruglov Pavel
b83b057045
Merge branch 'master' into renamefile
2023-06-06 19:38:05 +02:00
Han Fei
6b41a02f7f
resolve tests
2023-06-06 13:14:52 +02:00
Nikolay Degterinsky
802df208a6
Merge branch 'master' into sigquit-handler
2023-06-05 08:19:04 +02:00
Alexey Milovidov
8c1091dc58
Merge branch 'master' into fix-secure-async-read-write
2023-06-04 05:06:59 +03:00
Nikita Mikhaylov
362055ce60
Merge branch 'master' into 46229-repl-clickhouse-keeper
2023-06-02 23:58:07 +02:00
Kruglov Pavel
9922053419
Merge pull request #49948 from Avogar/handshake-timeout
...
Add separate handshake_timeout for receiving Hello packet from replica
2023-06-02 14:07:27 +02:00
Andrey Zvonov
2e427ee028
Merge branch 'master' into zvonand-implicit-tz
2023-06-02 01:15:56 +03:00
Kruglov Pavel
e924aafdf6
Merge branch 'master' into fix-secure-async-read-write
2023-06-01 16:24:54 +02:00
Nikolay Degterinsky
d57ffec72f
Add signal handler for SIGQUIT
2023-06-01 13:45:00 +00:00
Kruglov Pavel
0beca0336d
Merge pull request #49112 from ClickHouse/Avogar-patch-3
...
Fix possible terminate called for uncaught exception in some places
2023-05-31 16:55:43 +02:00
Kruglov Pavel
4d1b5cc89f
Merge branch 'master' into renamefile
2023-05-31 13:25:11 +02:00
Kruglov Pavel
ec10415328
Merge branch 'master' into fix-secure-async-read-write
2023-05-31 13:16:52 +02:00
Nikita Mikhaylov
31829f7cfc
Merge branch 'master' into 46229-repl-clickhouse-keeper
2023-05-31 02:29:08 +02:00
Andrey Zvonov
c2b30f8903
Merge branch 'master' into zvonand-implicit-tz
2023-05-31 00:44:32 +03:00
Kruglov Pavel
7966fa2da6
Merge pull request #50034 from Avogar/fiber-local-var-2
...
Fix assert in SpanHolder::finish() with fibers attempt 2
2023-05-30 17:50:31 +02:00
Andrey Zvonov
87fc780c14
Merge branch 'master' into zvonand-implicit-tz
2023-05-30 13:13:46 +03:00
zvonand
d4cec1f0e0
fix client thread attachment + make better tests
2023-05-30 01:30:01 +02:00
alekseygolub
63225b37a2
Merge branch 'ClickHouse:master' into renamefile
2023-05-29 16:52:41 +03:00
Kruglov Pavel
18be731e30
Merge branch 'master' into fix-secure-async-read-write
2023-05-26 00:46:33 +02:00
avogar
42e1e3ae20
Fix working with secure socket after async connection
2023-05-25 20:24:03 +00:00
Nikita Mikhaylov
cf6ff7ab32
Merge branch 'master' of github.com:ClickHouse/ClickHouse into 46229-repl-clickhouse-keeper
2023-05-25 13:41:25 +00:00
Nikita Mikhaylov
1c3b6738f4
Fixes for parallel replicas ( #50195 )
2023-05-25 14:41:04 +02:00
alekseygolub
c37b420045
Merge branch 'ClickHouse:master' into renamefile
2023-05-24 09:51:07 +03:00
avogar
3c1aeaaa79
Change default value of handshake_timeout to 10 sec, fix possible use-after-free
2023-05-23 11:39:40 +00:00
Kruglov Pavel
136c3caf03
Merge branch 'master' into handshake-timeout
2023-05-23 11:53:54 +02:00
Alexey Gerasimchuk
df751f1bca
Merge branch 'master' into ADQM-808
2023-05-23 13:43:18 +10:00
Alexey Gerasimchuck
ab5e16a713
Changes after second review iteration
2023-05-23 00:27:17 +00:00
avogar
2541ad69d5
Fix bad conflicts resolving
2023-05-22 18:23:39 +00:00
avogar
17b639c612
Make better
2023-05-22 18:22:05 +00:00
serxa
c56e6a8b80
Add more profile events for distributconnections
2023-05-21 12:15:06 +00:00
zvonand
7dccb51bc0
fix conflict and update
2023-05-19 23:40:51 +02:00
serxa
d69c35fcdd
fix PoolWithFailover error_count
integer overflow
2023-05-19 17:57:00 +00:00
serxa
086888b285
fix ConnectionPoolWithFailover::getPriority
2023-05-19 17:54:29 +00:00
alekseygolub
c85c3afa1f
Added option to rename files, loaded via TableFunctionFile, after success processing
2023-05-19 16:03:22 +00:00
avogar
846804fed0
Add separate handshake_timeout for receiving Hello packet from replica
2023-05-17 11:39:04 +00:00
Alexey Gerasimchuck
29b10ae336
reordered options
2023-05-17 04:06:01 +00:00
Alexey Gerasimchuck
4a6c7254e8
--multiquery <sql> -> -n -q <sql> syntax sugar
2023-05-17 03:43:35 +00:00
serxa
abacf1f990
add missing quota_key
in operator== for connections
2023-05-16 19:14:54 +00:00
Alexey Milovidov
5a44dc26e7
Fixes for clang-17
2023-05-13 02:57:31 +02:00
Alexey Milovidov
146e3c391a
Merge pull request #49785 from evillique/local-query-parameters
...
Add query parameters to clickhouse-local
2023-05-13 01:07:53 +03:00
Nikolay Degterinsky
3160483c17
Add query parameters to clickhouse-local
2023-05-11 12:56:59 +00:00
zvonand
07630ef43f
upd
2023-05-11 01:10:34 +02:00
Andrey Zvonov
289ea8a662
Merge branch 'master' into zvonand-implicit-tz
2023-05-10 13:42:36 +02:00
Alexey Milovidov
6fddb5bad3
Simplification
2023-05-07 06:31:00 +02:00
Alexey Milovidov
a695d6227d
Make concurrency control controllable
2023-05-07 06:16:30 +02:00
alexX512
f3f9e29509
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-05-06 14:35:29 +00:00
zvonand
8338d54c34
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz
2023-05-05 15:50:26 +02:00
alexX512
e94285d468
Send partial result with the new architectuin the special pipeline
2023-05-01 09:25:15 +00:00
alekar
29d96afae8
Merge branch 'master' into 48716
2023-04-28 14:24:46 -07:00
pufit
7dde282027
Fix no case completion
2023-04-27 18:50:35 -04:00
pufit
9204e2e3de
Better completion
2023-04-26 20:11:45 -04:00
Manas Alekar
ab1646ab36
Expand tab.
2023-04-25 10:43:03 -07:00
Manas Alekar
0574f2b497
Fix style.
2023-04-25 09:01:27 -07:00
alekar
d717f007d7
Merge branch 'master' into 48716
2023-04-24 23:44:03 -07:00
Nikolay Degterinsky
2fe3a69ba1
Merge remote-tracking branch 'upstream/master' into add_default_password_type
2023-04-24 18:51:32 +00:00
Kruglov Pavel
57801b7a02
Fix
2023-04-24 19:06:45 +02:00
Nikolay Degterinsky
12ad5b710a
Separate AuthenticationData and AuthenticationType, small fixes
2023-04-24 15:12:45 +00:00
Kruglov Pavel
029c92344b
Fix possible terminate called for uncaught exception in Connection
2023-04-24 16:57:43 +02:00
Aleksei Golub
ac3b2e66ca
Replace unicode dashes on double-hypen
2023-04-23 00:47:58 +03:00
alekseygolub
e78f1220fb
Merge branch 'ClickHouse:master' into dashedsettings
2023-04-23 00:47:39 +03:00
Aleksei Golub
6d3813dfd8
Support for en-dash and mathematical minus + fix style
2023-04-22 17:28:35 +03:00
Kruglov Pavel
9749448eb0
Merge pull request #47229 from Avogar/non-blocking-connect
...
Improve async reading from socket
2023-04-21 10:38:50 +02:00
alekseygolub
c974dc0de6
Merge branch 'master' into dashedsettings
2023-04-21 11:25:42 +03:00
Andrey Zvonov
984e8fde41
Merge branch 'master' into zvonand-implicit-tz
2023-04-20 23:13:17 +02:00
alekar
e47134330e
Merge branch 'master' into 48716
2023-04-20 11:57:32 -07:00
Aleksei Golub
1ec5773dc6
Added dashed-settings and support for unicode dash in cli arguments
2023-04-20 20:11:28 +03:00
Andrey Zvonov
b81ce64fa2
Update src/Client/ClientBase.cpp
...
Co-authored-by: Vasily Nemkov <V.Nemkov@gmail.com>
2023-04-19 17:39:52 +03:00
zvonand
daae5025e8
small updates due to review
2023-04-19 14:45:51 +02:00
Kruglov Pavel
a23262bb77
Update src/Client/Connection.cpp
...
Co-authored-by: Nikita Taranov <nickita.taranov@gmail.com>
2023-04-19 13:40:40 +02:00
Kruglov Pavel
2ad161d2b7
Merge branch 'master' into non-blocking-connect
2023-04-19 13:39:40 +02:00
Manas Alekar
8cc425cd29
INTO OUTFILE enhancements
2023-04-18 00:20:55 -07:00
zvonand
22be85d976
renamed setting
2023-04-18 02:42:30 +02:00
Joanna Hulboj
1f271c2673
Client: disable indent_multiline mode for Replxx history
2023-04-17 20:14:00 +01:00
Dmitry Novik
5cc9b46f78
Merge remote-tracking branch 'origin/master' into optimize-compilation
2023-04-13 16:04:09 +02:00
zvonand
bac5fbc3d2
fix error on connection drop after 1st query
2023-04-13 13:26:09 +02:00
zvonand
1ec32d374d
update Timezone packet processing
2023-04-12 22:27:54 +02:00
zvonand
3f8956f854
remove additional logging
2023-04-12 17:45:11 +02:00
zvonand
2a9f28b73b
resolve
2023-04-12 12:54:39 +02:00
zvonand
a9499eed79
moved getting server TZ DateLUT to separate place, upd tests and fix
2023-04-12 12:47:05 +02:00
zvonand
5d18343fb8
fixed delay
2023-04-12 00:15:07 +02:00
Nikolay Degterinsky
7606336fd8
Merge remote-tracking branch 'upstream/master' into add_default_password_type
2023-04-11 11:59:45 +00:00
Vasily Nemkov
e36addb96a
Hackish way of setting up timezone on the client
...
Warning: lots of debug logging
2023-04-11 13:03:03 +02:00
alexX512
9754e4e9b3
Add supporting of partial result in LimitTransform
2023-04-11 09:20:12 +00:00
Nikolay Degterinsky
6f57a952d9
Improvements
2023-04-10 16:40:49 +00:00
Azat Khuzhin
79b83c4fd2
Remove superfluous includes of logger_userful.h from headers
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-10 17:59:30 +02:00
alexX512
a953a1f8c3
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-04-10 13:57:01 +00:00
alexX512
af66d44106
Add settings for real-time updates during query execution
2023-04-10 13:51:39 +00:00
Nikolay Degterinsky
7957752128
Merge remote-tracking branch 'upstream/master' into add_default_password_type
2023-04-10 02:25:46 +00:00
Nikolay Degterinsky
64dc60a8d1
Better version, introduce ASTAuthenticationData
2023-04-10 02:20:57 +00:00
Michael Kolupaev
b6261104e7
Fix bracketed-paste mode messing up password input in client reconnect
2023-04-07 18:10:33 +00:00
pufit
c93202cca4
Keeper Client MVP
2023-03-31 12:41:22 +00:00
Nikolai Kochetov
a8a28bdf3d
Merge branch 'master' into rename-setting-stop_reading_on_first_cancel
2023-03-30 16:07:14 +02:00
Nikolai Kochetov
f870e6f7a9
Rename setting stop_reading_on_first_cancel to partial_result_on_first_cancel.
2023-03-30 14:00:44 +00:00
Alexander Gololobov
98b3617ce2
Merge pull request #48150 from DimasKovas/fix_stdlib_compatibility
...
Fix stdlib compatibility issues
2023-03-29 21:29:33 +02:00
Dmitrii Kovalkov
71a6a02e88
fix stdlib compatibility issues
2023-03-29 12:20:27 +03:00
avogar
e63231700f
Fix tests
2023-03-28 16:00:00 +00:00
Igor Nikonov
259df04415
Merge remote-tracking branch 'origin/master' into decimal256-various
2023-03-28 13:36:53 +00:00
Kruglov Pavel
bc92e3184e
Merge branch 'master' into non-blocking-connect
2023-03-27 13:50:50 +02:00
Nikita Mikhaylov
2773e5c352
Fix test 02050_client_profile_events ( #47951 )
2023-03-27 13:50:09 +02:00
Alexey Milovidov
0f99df0f94
Merge pull request #47852 from ucasfl/fuzz
...
AST fuzzer support fuzzing SELECT query to EXPLAIN query randomly
2023-03-27 00:30:09 +03:00
Kruglov Pavel
7617599c20
Fix special builds
2023-03-25 23:01:32 +01:00
Kruglov Pavel
e784304dfb
Fix style
2023-03-25 13:32:29 +01:00
Kruglov Pavel
d76f7ecce2
Fix special build
2023-03-25 00:36:24 +01:00
Dmitry Novik
3488a4d84b
Improve file includes
2023-03-24 03:44:52 +01:00
Kruglov Pavel
3ee12e21fb
Merge branch 'master' into non-blocking-connect
2023-03-23 20:53:44 +01:00
avogar
bf7e62ff56
Refactor RemoteQueryExecutor, make it more thread safe
2023-03-23 19:52:37 +00:00
Nikolai Kochetov
0f01725d8b
Merge pull request #45689 from alexX512/master
...
Add an option to show the partial result on query cancellation
2023-03-23 17:34:15 +01:00
flynn
02c666d06d
fix
2023-03-23 11:14:12 +00:00
flynn
b5e17cc2c0
fix
2023-03-23 06:24:58 +00:00
flynn
e7afe0f60f
fix
2023-03-23 04:08:36 +00:00
flynn
dba352274c
fix
2023-03-22 08:05:00 +00:00
flynn
ef6b891f28
fix
2023-03-22 02:47:04 +00:00
flynn
db31af84c3
fix build
2023-03-21 15:09:10 +00:00
flynn
db7582e060
AST fuzzer support fuzzing SELECT query to EXPLAIN query randomly
2023-03-21 14:26:39 +00:00
flynn
7531840fd7
Support fuzz Explain query
2023-03-21 02:41:51 +00:00
Sergei Trifonov
273770519b
Merge branch 'master' into master
2023-03-20 18:28:10 +01:00
Kruglov Pavel
1d12e85d55
Merge branch 'master' into non-blocking-connect
2023-03-20 13:23:55 +01:00
Alexey Milovidov
4a44dafdee
Merge branch 'master' into decimal256-various
2023-03-20 03:30:14 +01:00
Robert Schulze
0e01e912fe
Preparation for libcxx(abi), llvm, clang-tidy 16
2023-03-19 17:25:41 +00:00
Sema Checherinda
0b641fcead
Merge pull request #47564 from CheSema/remove-redundant
...
remove counters for threads, fix negative counters
2023-03-18 02:23:52 +01:00
Alexey Milovidov
26d17fe560
Merge branch 'master' of github.com:ClickHouse/ClickHouse into decimal256-various
2023-03-17 22:15:16 +01:00
Robert Schulze
f72a337074
Remove cruft from build
...
No need to check compiler flags, clang >= 15 supports all of them.
2023-03-17 13:44:04 +00:00
avogar
4b46b5b748
Fix, make better
2023-03-17 13:02:20 +00:00
Sema Checherinda
3c6deddd1d
work with comments on PR
2023-03-16 19:55:58 +01:00
Kruglov Pavel
2f2d7133c5
Fix build
2023-03-16 16:27:35 +01:00
Sema Checherinda
67ac858a52
remove counters for threads, fix negative counters
2023-03-15 22:22:22 +01:00
Andrey Zvonov
4327d707e0
Merge branch 'master' into zvonand-implicit-tz
2023-03-15 22:18:52 +01:00
Alexey Perevyshin
1e9ef12f51
Merge branch 'master' into master
2023-03-15 22:21:02 +04:00
zvonand
bbb31cf891
added validation on setting modification
2023-03-15 18:37:23 +01:00
alexX512
cbbdb5aabc
Fix typos
2023-03-15 13:05:38 +00:00
avogar
9596c218d9
Merge with master
2023-03-15 12:58:56 +00:00
avogar
17f5356178
Improve async reading from socket
2023-03-15 12:18:08 +00:00
alexX512
d47e10484f
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-03-15 11:14:34 +00:00
alexX512
8590e4b459
Add tests fr stop_reading_on_first_cancel setting
2023-03-15 10:50:01 +00:00
Azat Khuzhin
bcf381c5ae
Reimplement interserver mode to avoid replay attacks
...
Prevous implementation (DBMS_MIN_REVISION_WITH_INTERSERVER_SECRET)
accepts the salt from the client, which make it useless.
Reimplement the protocol to send the salt by the server and use it in
the client instead.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-03-15 08:28:43 +01:00
alexX512
14a7c5a019
Add stop_reading_on_first_cancel setting
2023-03-15 06:06:55 +00:00
Alexey Milovidov
e952ecae8c
Add Decimal256 to a lot of places
2023-03-14 22:10:52 +01:00
Alexey Milovidov
a411ae10b5
Merge pull request #47486 from ClickHouse/revert_25674
...
Remove "asynchronous connection drain"
2023-03-13 21:40:39 +03:00
Vladimir C
9cb018545c
Merge pull request #47499 from FrankChen021/span_kind
2023-03-13 11:35:03 +01:00
Frank Chen
f5d5950a67
Set SpanKind for internal queries
2023-03-12 21:31:50 +08:00
Alexander Tokmakov
7b1b238d0b
Revert "Merge pull request #25674 from amosbird/distributedreturnconnection"
...
This reverts commit 5ffd99dfd4
, reversing
changes made to 2796aa333f
.
2023-03-11 19:09:47 +01:00
Alexander Tokmakov
52504cc2d0
Revert "Merge pull request #27774 from amosbird/distributed-fix"
...
This reverts commit 86af58f54f
, reversing
changes made to 34f5787f0a
.
2023-03-11 17:26:30 +01:00
Alexander Tokmakov
bd124a24ea
Revert "Merge pull request #31965 from azat/connection-drain-pull"
...
This reverts commit 6cb54b4092
, reversing
changes made to 42d938ffa0
.
2023-03-11 17:24:38 +01:00
Raúl Marín
7161bbeb88
More improvements based on PR review
2023-03-09 11:37:02 +01:00
Raúl Marín
ff6c9916e6
Improvements based on the PR
2023-03-08 12:32:14 +01:00
zvonand
1ce697d8c0
Revert "revert protocol changes, found better way"
...
This reverts commit 3a918ae66a
.
2023-03-07 16:05:23 +01:00
zvonand
1fd6e3f23b
Revert "fix style"
...
This reverts commit a7a3c9d1a6
.
2023-03-07 16:02:30 +01:00
zvonand
e92501d5dd
update tests + exception
2023-03-07 13:02:02 +01:00
Raúl Marín
951d65f2fd
Fix debug build
2023-03-07 08:36:11 +01:00
zvonand
a7a3c9d1a6
fix style
2023-03-07 02:52:42 +01:00
zvonand
c859478db3
upd
2023-03-07 02:36:02 +01:00
zvonand
3a918ae66a
revert protocol changes, found better way
2023-03-07 02:33:46 +01:00
zvonand
57c5a63721
fix receive of timezone update on processing
2023-03-06 16:39:47 +01:00
Raúl Marín
43da841e1e
Style
2023-03-06 14:53:32 +01:00
Raúl Marín
7c14059f3f
Update comments
2023-03-06 14:20:45 +01:00
Raúl Marín
13bda10470
Reimplement hints using the parser
2023-03-06 14:17:31 +01:00
Raúl Marín
eb2ed1b123
Add support for different expected errors
2023-03-06 12:31:54 +01:00
zvonand
f2fbf2d61e
tcp protocol modification (min revision to be updated)
2023-03-06 02:52:05 +01:00
Alexander Tokmakov
edd238273c
fix another bug in client
2023-03-02 19:51:05 +01:00
zvonand
a69425326d
upd
2023-02-27 01:40:00 +01:00
zvonand
49fb028498
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz
2023-02-26 17:20:09 +01:00
Azat Khuzhin
c8c8d4b42f
Always bind Ctrl-T to reverse search (not only when skim is available)
...
This will avoid exceptions for fast tests
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-26 13:33:43 +01:00
zvonand
c3a6efe031
update
2023-02-24 20:51:12 +01:00
avogar
bf9f1663bb
Fix totals and extremes with constants in clickhouse-local
2023-02-21 18:15:16 +00:00
Azat Khuzhin
f9cd66db36
Remove extra try/catch for LocalQueryState reset
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-18 10:55:09 +01:00
youennL-cs
6526c2a8ab
[RFC] Replacing merge tree new engine ( #41005 )
...
* Add new engine to ReplacingMergeTree corresponding to the ReplacingCollapsingMergeTree
* Add new test for the new ReplacingMergeTree engine
* Limit sign value to -1/1
* Add new engine to ReplacingMergeTree corresponding to the ReplacingCollapsingMergeTree
* Add new test for the new ReplacingMergeTree engine
* Limit sign value to -1/1
* Replace sign column(Int8) by is_deleted(UInt8)
* Add new engine to ReplacingMergeTree corresponding to the ReplacingCollapsingMergeTree
* Add new test for the new ReplacingMergeTree engine
* Limit sign value to -1/1
* Replace sign column(Int8) by is_deleted(UInt8)
* Add new engine to ReplacingMergeTree corresponding to the ReplacingCollapsingMergeTree
* Add new test for the new ReplacingMergeTree engine
* Limit sign value to -1/1
* Replace sign column(Int8) by is_deleted(UInt8)
* Add keyword 'CLEANUP' when OPTIMIZE
* Cleanup uniquely when it's a replacingMergeTree
* Propagate CLEANUP information and change from 'with_cleanup' to 'cleanup'
* Cleanup data flagged as 'is_deleted'
* Fix merge when optimize and add a test
* Fix OPTIMIZE and INSERT + add tests
* New fix for cleanup at the merge
* Cleanup debug logs
* Add the SETTINGS option 'clean_deleted_rows' that can be 'never' or 'always'
* Fix regression bug; Now REplicatedMergeTree can be called as before without 'is_deleted'
* Add Replicated tests
* Disable tag 'long' for our test and cleanup some white spaces
* Update tests
* Fix tests and remove additional useless whitespace
* Fix replica test
* Style clean && add condition check for is_deleted values
* clean_deleted_rows settings is nom an enum
* Add valid default value to the clean_deleted_rows settings
* Update cleanup checkers to use the enum and fix typos in the test
* Fix submodule contrib/AMQP-CPP pointer
* Add missing messages in test reference and remove a print with non derterministic order
* fix replica test reference
* Fix edge case
* Fix a typo for the spell checker
* Fix reference
* Fix a condition to raise an error if is_deleted differ from 0/1 and cleanup
* Change tests file name and update number
* This should fix the ReplacingMergeTree parameter set
* Fix replicated parameters
* Disable allow_deprecated_syntax_for_merge_tree for our new column
* Fix a test
* Remove non deterministic order print in the test
* Test on replicas
* Remove a condition, when checking optional parameters, that should not be sueful since we disabled the deprected_syntaxe
* Revert "Remove a condition, when checking optional parameters, that should not be useful since we disabled the deprected_syntaxe"
This reverts commit b65d64c05e
.
* Fix replica management and limit the number of argument to two maximum, due to the possiblity of deprecated table create/attach failing otherwise
* Test a fix for replicated log information error
* Try to add sync to have consistent results
* Change path of replicas that should cause one issue and add few prints in case it's not that
* Get cleanup info on replicas only if information found
* Fix style issues
* Try to avoid replication error 'cannot select parts...' and and replica read/write field order
* Cleanup according to PR reviews
and add tests on error raised.
* Update src/Storages/MergeTree/registerStorageMergeTree.cpp
Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
* Select ... FINAL don't show rows with is_deleted = true
* Update and fix SELECT ... FINAL merge parameter
* Remove is_deleted rows only on the version inserted when merge
* Fix (master) updates issues
* Revert changes that should not be commited
* Add changes according to review
* Revert changes that should not be commited - part 2
---------
Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
2023-02-16 16:03:16 +03:00
Nikolay Degterinsky
3075656e1d
Merge remote-tracking branch 'upstream/master' into HEAD
2023-02-15 10:06:44 +00:00
Antonio Andelic
8d16fe5793
Merge branch 'master' into add-support-for-settings-alias
2023-02-13 08:46:00 +01:00
Kruglov Pavel
e84baa9106
Merge pull request #43179 from tonickkozlov/tonickkozlov/add-interserver-dns-retries
...
CLICKHOUSE-2375 Add interserver DNS retries
2023-02-11 14:35:40 +01:00
Antonio Andelic
f96d480563
Merge branch 'master' into add-support-for-settings-alias
2023-02-09 16:07:45 +01:00
Azat Khuzhin
911fabd0dc
Fix applying settings for FORMAT on the client
...
Previously the following query does not works correctly:
SELECT number FROM numbers(5) SETTINGS output_format_json_array_of_rows = 1 FORMAT JSONEachRow
While this one works OK:
SELECT number FROM numbers(5) FORMAT JSONEachRow SETTINGS output_format_json_array_of_rows = 1
The problem is in which AST those settings are stored, use the logic as
executeQuery() has to apply them:
c83f701696/src/Interpreters/executeQuery.cpp (L467-L497)
Note, the only problem should be with the settings for FORMAT, since
client applies thoes settings (and formats) locally w/o server, while in
case of i.e. HTTP it will be applied on the server and everything will
works fine.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-07 18:29:40 +01:00
Antonio Andelic
12569da984
Merge branch 'master' into add-support-for-settings-alias
2023-02-05 16:08:57 +00:00
Alexey Milovidov
22bd0b6f69
Merge pull request #38983 from CurtizJ/randomize-mt-settings
...
Allow to randomize merge tree settings in tests
2023-02-04 02:59:52 +01:00
Nikita Mikhaylov
33877b5e00
Parallel replicas. Part [2] ( #43772 )
2023-02-03 14:34:18 +01:00
Azat Khuzhin
ef2bc589fa
Avoid client prompt overlap after query fuzzy search
...
Under certain conditions it is possible for skim to overlap the prompt,
well, not overlap, but not re-render it, and so the client does not have
a nice prompt.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-02 19:31:45 +01:00
Anton Popov
d8fe2bcbaa
Merge branch 'master' into randomize-mt-settings
2023-01-27 16:03:00 +01:00
Anton Popov
92fa39798b
Merge remote-tracking branch 'upstream/master' into HEAD
2023-01-26 13:29:23 +00:00
Alexander Tokmakov
3f6594f4c6
forbid old ctor of Exception
2023-01-23 22:18:05 +01:00
Alexander Tokmakov
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
Anton Popov
08b2e524c7
Merge remote-tracking branch 'upstream/master' into HEAD
2023-01-23 15:34:53 +00:00
Azat Khuzhin
2a8f116c18
Forward declaration of ConcurrentBoundedQueue in ThreadStatus
...
ThreadStatus is the header that recomplies almost all ClickHouse
modules.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-01-21 16:02:09 +01:00
Alexander Tokmakov
870cfcc36a
less fmt::runtime usages
2023-01-17 00:11:59 +01:00
Alexander Gololobov
263a3f10c9
Also copy or move PREWHERE to WHERE
2023-01-12 14:11:30 +01:00
Alexander Gololobov
2a92ae8d8e
Fuzz PREWHERE clause
2023-01-12 13:14:09 +01:00
Anton Popov
ca80240d84
Merge remote-tracking branch 'upstream/master' into HEAD
2023-01-12 12:13:45 +00:00
Alexey Milovidov
1f45845e70
Fix (benign) data race in clickhouse-client
2023-01-09 08:49:21 +01:00
Nikolay Degterinsky
3a20fbdbf6
Better
2023-01-05 02:25:25 +00:00
Kruglov Pavel
966f57ef68
Merge pull request #42777 from Avogar/improve-streaming-engines
...
Refactor and Improve streaming engines Kafka/RabbitMQ/NATS and data formats
2023-01-02 15:59:06 +01:00
Nikolay Degterinsky
dfe93b5d82
Merge pull request #42284 from Algunenano/perf_experiment
...
Performance experiment
2022-12-30 03:14:22 +01:00
Kruglov Pavel
894726bd8f
Merge branch 'master' into improve-streaming-engines
2022-12-29 22:59:45 +01:00
Raúl Marín
5de11979ce
Unify query elapsed time measurements ( #43455 )
...
* Unify query elapsed time reporting
* add-test: Make shell tests executable
* Add some tests around query elapsed time
* Style and ubsan
2022-12-28 21:01:41 +01:00
Nikolay Degterinsky
e814179663
Add default password type
2022-12-28 13:26:23 +00:00
Azat Khuzhin
1f9a6076b9
Use DB::ReadBufferFromFile over std::ifstream in ReplxxLineReader
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-27 14:23:51 +01:00
Azat Khuzhin
b7f92454bf
Move LineReader/ReplxxLineReader out from base
...
This will simplify linking dependencies, and anyway this classes are not
base in any sense.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-27 14:23:51 +01:00
Azat Khuzhin
83cad3625b
Remove unused setTerminalEcho()
...
It had been replaced with readpassphrase in #5092
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-27 14:23:51 +01:00
Raúl Marín
45d27f461b
Merge branch 'master' into perf_experiment
2022-12-20 09:07:48 +00:00
Anton Popov
33dc0d8283
fix more tests
2022-12-16 17:50:01 +00:00
Anton Popov
b6f2754afb
Merge remote-tracking branch 'upstream/master' into HEAD
2022-12-16 14:37:34 +00:00
Kruglov Pavel
c5b2e4cc23
Merge branch 'master' into improve-streaming-engines
2022-12-15 18:44:35 +01:00
Anton Popov
87e02a1744
Merge remote-tracking branch 'upstream/master' into HEAD
2022-12-14 02:08:10 +00:00
Nikolay Degterinsky
443bc3e656
Merge pull request #43719 from evillique/password_complexity_rules
...
Add password complexity rules
2022-12-13 17:56:45 +01:00
Nikolay Degterinsky
9b6d31b95d
Merge branch 'master' into perf_experiment
2022-12-13 17:15:07 +01:00
Nikolay Degterinsky
19e95e8cd8
Better implementation of password rules
2022-12-11 23:59:04 +00:00
Nikolay Degterinsky
f2c07c0337
Merge remote-tracking branch 'upstream/master' into password_complexity_rules
2022-12-10 00:46:05 +00:00
Anton Popov
0a951db1d0
fix more tests with random merge tree settings
2022-12-02 14:16:28 +00:00
Anton Popov
5d9077cdb6
Merge remote-tracking branch 'upstream/master' into HEAD
2022-12-02 12:06:45 +00:00