Nikita Taranov
17956cb668
Extend protocol with query parameters ( #39906 )
2022-08-12 14:28:35 +02:00
Anton Popov
0383250383
execute DROP queries for fuzzed tables
2022-08-12 00:32:21 +00:00
Anton Popov
e347fa2f45
add fuzzer for table definition
2022-08-11 02:34:10 +00:00
Anton Popov
4f2c73f9f6
Merge remote-tracking branch 'upstream/master' into HEAD
2022-08-04 23:08:15 +00:00
Vitaly Baranov
da0bdd474b
Fix code style.
2022-07-21 10:48:53 +02:00
Vitaly Baranov
8873d16afe
Fix interactive client with older server after https://github.com/ClickHouse/ClickHouse/pull/38970
2022-07-20 11:51:55 +02:00
Vitaly Baranov
fbb2e14d54
Add new table function viewIfPermitted().
2022-07-15 15:44:29 +02:00
Anton Popov
14a3c7b8cf
print changed MergeTree settings on fail
2022-07-13 20:57:24 +00:00
Anton Popov
499262dba9
allow to randomize merge tree settings
2022-07-07 22:16:01 +00:00
Alexey Milovidov
7e9a3796e9
Fix wrong docs
2022-06-21 00:09:55 +02:00
Azat Khuzhin
29a8a00656
Add ability to pass QueryKind via clickhouse-client/local (useful for debugging)
...
v2: fix LocalConnection::sendQuery() for Suggest (comes w/o client_info) [1]
[1]: https://s3.amazonaws.com/clickhouse-test-reports/37290/7c85175963226ff78eec542efafcff4e650aa0f0/stateless_tests__ubsan__actions_.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-19 07:19:27 +03:00
Robert Schulze
e3cfec5b09
Merge remote-tracking branch 'origin/master' into clangtidies
2022-05-16 10:12:50 +02:00
kssenii
61f2737e17
Merge master
2022-05-10 19:31:22 +02:00
kssenii
0feda67ec4
Fix progress for insert select
2022-05-10 15:04:08 +02:00
Robert Schulze
1b81bb49b4
Enable clang-tidy modernize-deprecated-headers & hicpp-deprecated-headers
...
Official docs:
Some headers from C library were deprecated in C++ and are no longer
welcome in C++ codebases. Some have no effect in C++. For more details
refer to the C++ 14 Standard [depr.c.headers] section. This check
replaces C standard library headers with their C++ alternatives and
removes redundant ones.
2022-05-09 08:23:33 +02:00
Alexey Milovidov
a121155f0a
Fix conflict
2022-05-07 12:38:30 +02:00
Alexey Milovidov
1bdc51a496
Merge branch 'remind_for_external_option' of github.com:bigo-sg/ClickHouse into bigo-sg-remind_for_external_option
2022-05-07 12:36:57 +02:00
Robert Schulze
89aa9ae00f
Fixed clang-tidy check "bugprone-branch-clone"
...
The check is currently *not* part of .clang-tidy. It complains about:
(1) "switch has multiple consecutive identical branches"
(2) "repeated branch in conditional chain"
About (1): Lots of findings in switches were about redundant
"[[fallthrough]]" in places where the compiler would not warn anyways. I
have cleaned these up.
About (2): In if-else_if-else chains, fixing the warning would usually
mean concatenating multiple if-conditions. As this would reduce
readability in most cases, I did not fix these places.
Because of (2), I also refrained from adding "bugprone-branch-clone" to
.clang-tidy.
2022-04-30 19:40:28 +02:00
Amos Bird
4a5e4274f0
base should not depend on Common
2022-04-29 10:26:35 +08:00
Suzy Wang
59f0e83c4b
fix clang tidy warning, add nullptr check ( #35540 )
...
update passing reference instead of pointer in queryHasWithClause based on recommandation
Co-authored-by: larryluogit <larry.luo@ca.ibm.com>
2022-04-20 11:26:44 +02:00
Anton Popov
13cb564d1e
Merge pull request #35716 from kssenii/fix-local-logs-level
...
Fix send_logs_level for clickhouse local
2022-04-06 18:52:47 +02:00
Kseniia Sumarokova
d3763c4a62
Update ClientBase.h
2022-04-06 12:13:34 +02:00
Alexey Milovidov
3c0c1a1176
Add a comment #35919
2022-04-05 18:35:23 +02:00
Alexey Milovidov
e452949334
Merge pull request #35919 from DevTeamBK/clang-tidy-issues
...
Clang tidy issues
2022-04-05 19:31:09 +03:00
Meena Renganathan
cf71b18472
Modified the code to fix the getenv() call issue idenitified in the clang-tidy
2022-04-04 07:23:31 -07:00
Denny Crane
0722beca0c
Update Client.cpp
2022-03-30 08:45:30 -03:00
李扬
b84904b8a6
Update Client.cpp
2022-03-23 22:01:29 +08:00
taiyang-li
1114c54899
merge master and fix conflict
2022-03-23 11:03:25 +08:00
mergify[bot]
5295dd0ef2
Merge branch 'master' into stress-test
2022-03-17 11:10:37 +00:00
Kruglov Pavel
ea5ace7b18
Merge pull request #35309 from Avogar/fix-client-host-help
...
Fix disappeared host and port from client help message
2022-03-16 12:24:07 +01:00
Vladimir C
e022245a33
Merge pull request #35193 from vdimir/issue-34776
2022-03-15 19:56:09 +01:00
avogar
96c6a4b401
Fix disappeared host and port from client help message
2022-03-15 18:36:54 +00:00
vdimir
db46c2ada8
Fix reading port from config
2022-03-14 11:58:47 +00:00
kssenii
199188be08
Support test mode for clickhouse-local
2022-03-14 12:02:06 +01:00
taiyang-li
4f15955670
fix conflicts
2022-03-08 11:32:22 +08:00
taiyang-li
2283513fc8
merge master and solve conflict
2022-03-08 11:29:00 +08:00
Kruglov Pavel
dbba752398
Merge branch 'master' into stress-test
2022-03-04 18:33:37 +03:00
mergify[bot]
c90d24e10b
Merge branch 'master' into random-settings
2022-03-03 13:07:12 +00:00
avogar
d25d83580a
Fix tests
2022-03-02 16:33:21 +00:00
freedomDR
43ac214dc5
get credentials from environment variables for clickhouse-client
...
include CLICKHOUSE_USER, CLICKHOUSE_PASSWORD
2022-03-02 00:54:51 +00:00
李扬
f2ce7cbc8f
Update Client.cpp
2022-03-01 19:29:59 +08:00
taiyang-li
7f69507c95
finish dev
2022-03-01 17:22:12 +08:00
mergify[bot]
8014cdf9d3
Merge branch 'master' into random-settings
2022-02-28 14:06:22 +00:00
vdimir
dfc990aed4
Fix using host/port from config for client
2022-02-21 12:08:23 +00:00
avogar
ba7f723961
Fix comments
2022-02-18 13:54:21 +00:00
Kruglov Pavel
e77319bf01
Merge branch 'master' into stress-test
2022-02-17 20:28:46 +03:00
avogar
1e797c1a8f
Fix some tests
2022-02-16 15:10:02 +00:00
Kruglov Pavel
e8d855ef4c
Update description
2022-02-15 15:12:21 +03:00
Kruglov Pavel
767bcabd5b
Fix style
2022-02-10 14:21:41 +03:00
Kruglov Pavel
8947c5de11
Update description
...
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
2022-02-10 14:07:21 +03:00
avogar
75c56163a0
Refactor client fault tolerant connection
2022-02-10 12:43:08 +03:00
DF5HSE
e657219e01
Delete not used include
2022-02-08 12:40:44 +03:00
DF5HSE
c08bc7ad65
Merge branch 'master' of github.com:ClickHouse/ClickHouse into client-fault-tolerant-connection
2022-02-08 11:37:31 +03:00
DF5HSE
b035ad7843
Fix error with IPv6 in host param and impove HostPort reading from input stream
2022-02-08 02:03:39 +03:00
DF5HSE
3cb433762b
Fix errors in build check
2022-02-08 02:03:39 +03:00
DF5HSE
3343a22788
Merge branch 'client-fault-tolerant-connection' of github.com:ManagedDatabases/ClickHouse into client-fault-tolerant-connection
2022-02-08 02:03:38 +03:00
Filippov Denis
226759b674
Update programs/client/Client.cpp
...
Fix `--host` parameter description
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2022-02-08 02:03:38 +03:00
DF5HSE
18a777cc8b
Add function which gets port from configuration
2022-02-08 02:03:37 +03:00
DF5HSE
a9ff296960
Fix codestyle
2022-02-08 02:03:36 +03:00
DF5HSE
e780c1292d
Add tests, remove saving host in config
2022-02-08 02:03:35 +03:00
DF5HSE
19cf4e6dec
round robin connection on fail
2022-02-08 02:03:25 +03:00
Anton Popov
5bb1b3ce77
support async inserts in clickhouse-client for queries with inlined data
2022-02-02 20:59:37 +03:00
Kruglov Pavel
b54bf18b27
Merge branch 'master' into stress-test
2022-01-25 14:35:42 +03:00
DF5HSE
fb2a45009a
Fix formatting
2022-01-20 00:44:37 +03:00
DF5HSE
c126afa93b
Fix formatting
2022-01-20 00:44:12 +03:00
DF5HSE
76769ac133
Fix formatting
2022-01-20 00:43:40 +03:00
DF5HSE
aa328fa4d8
Fix formatting
2022-01-20 00:42:29 +03:00
DF5HSE
a4a46be697
Revert changes in Client.h
2022-01-20 00:37:42 +03:00
DF5HSE
0d7e853614
Delete extra includes
2022-01-20 00:36:18 +03:00
DF5HSE
b46af3e0c4
Add list of '<host>:[<port>]' reading in --host param
2022-01-20 00:36:18 +03:00
DF5HSE
f6d50f6fd3
Add list of hosts reading
2022-01-20 00:15:11 +03:00
avogar
0ae0aa712b
Don't print exception twice in client in case of exception in parallel parsing
2022-01-11 18:37:07 +03:00
Azat Khuzhin
0685fd9985
clickhouse-local: track memory under --max_memory_usage_in_client option
2021-12-31 11:06:15 +03:00
Kruglov Pavel
ffb6c5b37b
Merge branch 'master' into stress-test
2021-12-23 20:14:15 +03:00
Azat Khuzhin
57c027be0e
Remove arcadia build support
2021-12-11 21:25:23 +03:00
avogar
81d45dbf66
Fix possible crash in fuzzer
2021-12-08 21:29:50 +03:00
mergify[bot]
ce0c112586
Merge branch 'master' into stress-test
2021-11-25 11:09:26 +00:00
Azat Khuzhin
bbbbd261b8
Add --pager support for clickhouse-local
2021-11-16 22:25:32 +03:00
mergify[bot]
923874060a
Merge branch 'master' into stress-test
2021-11-16 16:42:50 +00:00
Kseniia Sumarokova
846fbd059b
Merge pull request #31403 from kssenii/fix-client-output
...
Fix client
2021-11-14 15:01:30 +03:00
kssenii
ad1b7c83cd
Fix
2021-11-14 07:19:59 +00:00
Kseniia Sumarokova
2313981fd7
Merge pull request #31260 from azat/external-cleanup
...
Cleanup extern ProfileEvents/CurrentMetrics and add a style check
2021-11-12 00:02:57 +03:00
Azat Khuzhin
baf14444e6
Cleanup ProfileEvents and CurrentMetrics
2021-11-10 21:15:27 +03:00
Alexander Tokmakov
9d83832bde
show warning if some obsolete setting changed
2021-11-10 18:49:13 +03:00
kssenii
26c4affc18
Fixes
2021-11-04 11:00:35 +00:00
mergify[bot]
8ef9e61e36
Merge branch 'master' into stress-test
2021-11-03 08:28:43 +00:00
kssenii
feb3d8bc75
Merge branch 'master' of github.com:ClickHouse/ClickHouse into clickhouse-local-improve
2021-11-02 20:01:15 +00:00
kssenii
e97233f33d
Fix --verbose in local and logging
2021-10-30 17:23:24 +03:00
kssenii
07bab5193f
Delayed interactive
2021-10-29 16:23:53 +03:00
mergify[bot]
d9d9d38e4f
Merge branch 'master' into stress-test
2021-10-27 19:00:31 +00:00
Kseniia Sumarokova
15bdfdc9f6
Update Client.cpp
2021-10-25 10:47:22 +03:00
mergify[bot]
943a1cbba0
Merge branch 'master' into stress-test
2021-10-21 04:41:23 +00:00
kssenii
ec7c93728b
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into fix-local-exceptions
2021-10-20 23:42:27 +00:00
Kruglov Pavel
003955b59f
Merge branch 'master' into clickhouse-local
2021-10-18 14:24:08 +03:00
kssenii
91e9ab7760
Fix tests
2021-10-16 19:30:35 +00:00
kssenii
5db75f9e77
Better exception
2021-10-16 11:30:24 +00:00
avogar
be4fc79d32
Better handling exceptions, update tests
2021-10-15 18:30:32 +03:00
Kruglov Pavel
8d1c51c422
Update Client.cpp
2021-10-14 18:18:04 +03:00
avogar
ba7b784646
Remove catching boost::program_options error in Client
2021-10-14 16:36:32 +03:00
avogar
a1a4df2501
Fix handling exception 'unrecognised option' in clickhouse-local and client
2021-10-14 16:34:05 +03:00
Nikolai Kochetov
3d3e143c29
Merge pull request #30001 from ClickHouse/remove-streams-from-formats
...
Remove streams from formats.
2021-10-14 12:39:07 +03:00
Nikolai Kochetov
ec18340351
Remove streams from formats.
2021-10-11 19:11:50 +03:00
Dmitry Novik
362bcb2f66
Introduce ProfileEvents packet
2021-10-11 17:29:50 +03:00
mergify[bot]
0910a8ec74
Merge branch 'master' into stress-test
2021-10-05 09:46:18 +00:00
Azat Khuzhin
bbee102e58
Fix --stage for clickhouse-local
...
This also fixes UBsan error, since query_processing_stage was not
initialized before for clickhouse-local.
2021-10-04 21:00:48 +03:00
Pavel Kruglov
2db11bc6c5
Add backward compatibility check in stress test
2021-10-04 16:34:14 +03:00
Kseniia Sumarokova
ddc775b1c8
Merge pull request #29626 from kssenii/fix-signals
...
Follow-up for #26231
2021-10-03 22:13:54 +03:00
alexey-milovidov
921c5ce4c3
Merge pull request #29660 from azat/client-fuzzer-fixes
...
Do not try to fuzz `USE`/`SET` queries and print stacktrace
2021-10-02 22:01:33 +03:00
Azat Khuzhin
4d5ca0f409
client: do not try to fuzz USE queries
2021-10-02 11:17:17 +03:00
Azat Khuzhin
a419fe6633
client: don not try to fuzz SET queries
...
They were forbidden in QueryFuzzer.cpp anyway, this is just a patch to
avoid trying to do this and update comment.
2021-10-02 11:16:53 +03:00
kssenii
e10255bba3
Fix
2021-10-02 08:10:34 +00:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
kssenii
dabab85c60
Fix
2021-10-01 17:31:00 +00:00
kssenii
05181c6900
Fix
2021-10-01 14:13:02 +00:00
kssenii
f3784780fd
Fixes
2021-09-25 08:46:57 +00:00
kssenii
04575eb12b
Review fixes, fix style check and clang-tidy
2021-09-22 21:35:29 +00:00
kssenii
8d19ed5ee7
Fix remaining tests
2021-09-20 05:39:13 +00:00
kssenii
55619dcc1b
Correct merge
2021-09-16 16:14:17 +00:00
kssenii
c88dc460d4
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into interactive-mode-for-clickhouse-local
2021-09-16 16:13:04 +00:00
mergify[bot]
d731bf6c4d
Merge branch 'master' into compressed_output_formats_3473
2021-09-13 09:14:35 +00:00
Azat Khuzhin
1c18118ee4
client/TestTags.cpp: add missing <cstring>
2021-09-13 09:44:14 +03:00
Vitaly Baranov
512786346c
Merge pull request #28909 from vitlibar/convert-skip-list-into-first-line-comments
...
Convert skip_list .json into first line comments
2021-09-13 03:37:39 +03:00
Vitaly Baranov
bbb192ee85
Convert skip_list.json into first line comments.
2021-09-12 17:15:23 +03:00
kssenii
ec0a43dcd5
Correct merge with master
2021-09-11 17:14:32 +00:00
Azat Khuzhin
baac2e561c
Add query to the exception message in case of error during processing INSERT block on client
...
Since client process the INSERT block itself, and only after, send it
to the client, for example:
clickhouse-client --stacktrace --input_format_null_as_default=1 --query="INSERT INTO FUNCTION null('k Int, v Tuple(Int,Int)') VALUES ()"
Code: 62. DB::Exception: Cannot parse expression of type Int32 here: ): While executing ValuesBlockInputFormat: (in query: INSERT INTO FUNCTION null('k Int, v Tuple(Int,Int)') VALUES ()): data for INSERT was parsed from query. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below):
2021-09-11 16:02:01 +03:00
kssenii
ca81c13775
Move readArguments to base
2021-09-11 11:49:42 +00:00
kssenii
ddfe1e4d64
Some fixes
2021-09-11 11:34:22 +00:00
Azat Khuzhin
09f43d21a8
client: print query on client exception only in non-interactive mode
2021-09-10 21:02:55 +03:00
Azat Khuzhin
f0f31ab8f3
client: print full query in case of server exception
2021-09-10 21:02:54 +03:00
Azat Khuzhin
af5072db50
client: print full query in case of test hints failures
2021-09-10 21:02:54 +03:00
Filatenkov Artur
c92a096d2d
Update Client.cpp
2021-09-10 19:58:52 +03:00
Filatenkov Artur
4eac0c8021
Update Client.cpp
2021-09-10 18:04:26 +03:00
Artur
a7c43c3e2d
add compression key-word and some tests
2021-09-10 13:59:22 +00:00
kssenii
fa04b13175
Break some tests
2021-09-09 13:25:25 +00:00
Filatenkov Artur
cdb1a0504f
Merge branch 'master' into compressed_output_formats_3473
2021-09-08 18:46:48 +03:00
kssenii
8f77855981
Some review fixes
2021-09-05 00:52:35 +03:00
kssenii
578a750b8b
Small clean up
2021-08-27 11:47:47 +03:00
Maksim Kita
6ccdde4a88
Updated TableFunctionExecutable
2021-08-25 22:30:22 +03:00
kssenii
7d6f3d96c1
Better
2021-08-23 13:01:42 +03:00
kssenii
0afc23bfa3
Merge branch 'master' of github.com:ClickHouse/ClickHouse into interactive-mode-for-clickhouse-local
2021-08-21 18:23:14 +03:00
kssenii
1f0bb0d81b
Reorganize a bit more, fix tests
2021-08-21 18:17:02 +03:00
kssenii
3a39e3f039
Reorganize options
2021-08-21 00:39:28 +03:00
kssenii
21f9622cad
Reorganize multiquery processing
2021-08-20 23:39:13 +03:00
Alexey Milovidov
2ab97bd621
Improve usability when user forgot password #27750
2021-08-20 11:08:21 +03:00
kssenii
b5f6a7cb97
Fix local
2021-08-19 14:07:47 +03:00
kssenii
d1484a6f2e
Use more client code than local, hope tests survive
2021-08-19 00:01:17 +03:00
kssenii
e187bb781c
Move everything to base
2021-08-18 17:39:04 +03:00
tavplubix
9b45b26dd6
Merge pull request #27655 from FArthur-cmd/import_from_infile_syntax
...
Import `FROM INFILE`
2021-08-18 15:36:32 +03:00
kssenii
fb0b445ee0
Lets add LocalConnection (a start)
2021-08-17 22:59:51 +03:00
kssenii
cefd9b473e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into interactive-mode-for-clickhouse-local
2021-08-16 16:41:24 +03:00
Artur
3591c3c8f4
correct code according to comments
2021-08-16 13:28:39 +00:00
Azat Khuzhin
86e14f192c
Convert std::stringstream to ReadBufferFromString for TestHint parsing
2021-08-16 00:16:48 +03:00
Azat Khuzhin
c5d9676779
Accept error code by error name in client test hints
2021-08-16 00:16:48 +03:00
Azat Khuzhin
ad4833b4ab
Fix endless loop for parsing invalid test hints (lack of ss.fail() check)
2021-08-16 00:16:20 +03:00
Azat Khuzhin
d39128df9f
Add module part for client/TestHint
2021-08-16 00:16:20 +03:00
Artur
9ba9d39d42
correct style
2021-08-14 11:15:32 +00:00
Artur
49e211bead
add from infile syntax
2021-08-13 16:30:28 +00:00
Mikhail Filimonov
af6249c8ec
Less include <Common/Stopwatch.h>
2021-08-11 16:20:59 +02:00
Maksim Kita
87fb75b272
Merge pull request #27191 from FArthur-cmd/memory-tracker-26043
...
Client with flag for memory tracker
2021-08-10 14:01:02 +03:00
Filatenkov Artur
0db028bb49
Update Client.cpp
2021-08-10 12:00:55 +03:00
Filatenkov Artur
3545f2a4ee
Update Client.cpp
2021-08-10 11:59:11 +03:00
kssenii
30cc705464
Merge branch 'master' of github.com:ClickHouse/ClickHouse into interactive-mode-for-clickhouse-local
2021-08-07 22:53:50 +03:00
Alexander Kuzmenkov
9f0b5a5937
Merge pull request #27222 from ClickHouse/aku/fuzzer-reconnect
...
more careful handling of reconnects in fuzzer
2021-08-06 17:14:16 +03:00
Artur
d2869d2e2b
add test for memory tracker in client
2021-08-05 16:20:24 +00:00
Alexander Kuzmenkov
04da62707e
more careful handling of reconnects in fuzzer
2021-08-05 14:34:13 +03:00
Artur
a59d9e4620
Client with flag for memory tracker
2021-08-04 16:56:15 +00:00
kssenii
b5b9624cca
Fixes, add test
2021-08-03 23:49:16 +03:00
Artur
a9513f3587
add compression for INTO OUTFILE
2021-08-03 11:54:37 +00:00
Artur
c55ead0fdb
compress INTO OUTFILE with parameter compress
2021-08-03 11:33:52 +00:00
kssenii
6e8eb598bf
Some review fixes
2021-07-31 15:34:29 +03:00
kssenii
c9e607f1e8
Progress for interactive clickhouse local
2021-07-31 15:08:30 +03:00
kssenii
f36559ba55
Fix
2021-07-30 01:57:33 +03:00
kssenii
3f259e195b
Better
2021-07-29 15:58:50 +03:00
kssenii
22e3bde548
Refactoring, fix test, fix local interactive
2021-07-29 12:45:58 +03:00
kssenii
62d1e18b7f
Refactoring
2021-07-28 18:54:32 +03:00
kssenii
fb18f7fc72
Fix tests
2021-07-27 17:15:31 +03:00
kssenii
7e421dfe23
Rollback
2021-07-27 10:09:50 +03:00
kssenii
d30f54b335
Refactoring, fix tests
2021-07-27 01:28:27 +03:00
kssenii
4886d931a1
Fix some tests
2021-07-26 11:24:04 +03:00
kssenii
accd6d5c0f
Refactoring
2021-07-24 00:32:38 +03:00
kssenii
8c05e4f038
Refactoring
2021-07-23 23:54:49 +03:00
Maksim Kita
f6f8bea689
Merge pull request #26671 from kitaisreal/mysql-dictionaries-support-for-custom-query
...
Lexer introduce heredoc
2021-07-23 16:20:54 +03:00
kssenii
59b0ce21e4
Tiny refactoring
2021-07-23 00:27:26 +03:00
kssenii
68d3fbe1a4
Apply changes from pr 26590 to Client.cpp
2021-07-22 23:03:10 +03:00
kssenii
e056565e8a
Apply changes from pr 26282 (and 2c3c329
) to Client.cpp
2021-07-22 22:38:37 +03:00
kssenii
ca62586ef2
Apply changes from pr 26172 to Client.cpp
2021-07-22 22:25:50 +03:00
kssenii
b337f481dc
Merge branch 'master' of github.com:ClickHouse/ClickHouse into interactive-mode-for-clickhouse-local
2021-07-22 22:24:19 +03:00
Nikolai Kochetov
3ed3f7a9f7
Fix integration tests.
2021-07-22 13:38:22 +03:00
Nikolai Kochetov
f38de35b14
Rename some constants.
2021-07-21 19:13:17 +03:00
Maksim Kita
49983883cc
Added tests
2021-07-21 16:41:45 +03:00
Nikolai Kochetov
2c90928bc4
Fix tests.
2021-07-21 12:52:28 +03:00
Maksim Kita
63f67f7997
Introduced HereDoc token
2021-07-21 11:59:05 +03:00
Nikolai Kochetov
179ec05a72
Remove some streams.
2021-07-20 21:18:43 +03:00
Alexey Milovidov
2c3c329514
Fix issue in #26282
2021-07-20 03:15:06 +03:00
kssenii
022a0e00f2
Refactor client, merging non-interactive
2021-07-18 23:18:11 +03:00
Alexey Milovidov
e87a4cfbda
Whitespace
2021-07-17 02:29:57 +03:00
alexey-milovidov
38dfe1fc0a
Merge pull request #26172 from ClickHouse/exception_id
...
Add error id to exceptions
2021-07-17 02:07:17 +03:00
Artur
c0a34e2842
Adding interactive test for warning messages during connection
2021-07-15 12:53:11 +00:00
kssenii
ae4644d05a
Fix some tests
2021-07-15 10:02:14 +03:00
Artur
5582c4736e
correct code-style
2021-07-13 18:05:16 +00:00
Artur
3b61682265
add new config to skip warnings
2021-07-13 17:50:48 +00:00
Artur
ffb0c832bc
correct type mistake
2021-07-13 13:35:08 +00:00
Artur
ed9d3be1cc
Add ignoring exception for system.warnings, while connecting
2021-07-13 12:39:49 +00:00
Artur
d377c069cb
Adding printing warnings when client connect to server
2021-07-13 12:20:28 +00:00
Artur
1fe4f084f3
Merge branch 'adding-system-warnings-26039' of https://github.com/FArthur-cmd/ClickHouse into adding-system-warnings-26039
2021-07-13 11:14:14 +00:00
Artur
d0b69c08ac
show warnings to client, when it is connected
2021-07-13 11:13:42 +00:00
kssenii
7a57f2a983
Turn on fuzzing, fix tests
2021-07-12 20:26:21 +03:00
kssenii
bc3c038ac7
Better
2021-07-12 17:01:46 +03:00
kssenii
9ff54216ea
More merges in query execution code
2021-07-12 15:25:17 +03:00
kssenii
e31eccfaf2
Support multiquery option
2021-07-12 12:34:37 +03:00
kssenii
a10b9ed63a
Start merging query processing code
2021-07-12 02:17:14 +03:00
kssenii
d58a5537c2
Fix details
2021-07-12 00:54:41 +03:00
kssenii
026fa0ca64
Merge main, mainImpl code, allow interactive mode for clickhouse-local
2021-07-11 23:35:29 +03:00
kssenii
0b5dab1326
Merge init code for local and client
2021-07-11 14:36:27 +03:00
Vladimir
3157a46596
Fix special build, minor fix in Client.cpp
2021-07-10 13:28:44 +03:00
Alexey Milovidov
c63237f8e4
Merge branch 'master' into exception_id
2021-07-10 11:14:46 +03:00
Alexey Milovidov
1f91c65aca
Add error id to exceptions
2021-07-10 05:43:53 +03:00
Anton Popov
3588c5ad17
add color for double colon
2021-07-09 23:32:14 +03:00
Azat Khuzhin
170301c531
Ignore TOO_DEEP_RECURSION server exception during fuzzing
2021-06-28 10:37:49 +03:00
Azat Khuzhin
7739fcc295
clickhouse-client: fix NULL dereference for --param w/o value
2021-06-24 00:08:18 +03:00
kssenii
e0f330331b
Fix exception
2021-06-22 19:15:34 +03:00
alexey-milovidov
7cd86086c2
Merge pull request #25521 from azat/fuzzer-catch-TOO_DEEP_RECURSION
...
Catch TOO_DEEP_RECURSION in fuzzer for formatted query too
2021-06-21 02:03:55 +03:00
Azat Khuzhin
fa29fe6ba9
Catch TOO_DEEP_RECURSION for formatted query too
2021-06-21 00:39:59 +03:00
Anton Popov
d8b6f15ef4
Merge pull request #23027 from azat/distributed-push-down-limit
...
Add ability to push down LIMIT for distributed queries
2021-06-20 23:08:50 +03:00
Azat Khuzhin
2bc9664b52
Catch "Maximum parse depth" error in fuzzer
...
This exception should not fail the fuzzer check like here [1].
[1]: https://clickhouse-test-reports.s3.yandex.net/25494/c6339b4c08ad8f50bf34831367de9a1ea90b1e09/fuzzer_msan/report.html#fail1
2021-06-19 21:34:37 +03:00
kssenii
bdc8fe1ca0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into progress-bar
2021-06-18 09:33:29 +03:00
alexey-milovidov
43cee9018e
Merge pull request #25281 from ClickHouse/client-update-prompt-on-reconnect
...
Update prompt in client when reconnecting
2021-06-17 01:40:08 +03:00
Maksim Kita
67e9b85951
Merge ext into common
2021-06-16 23:28:41 +03:00
Nikita Mikhaylov
a52bba91b7
Merge pull request #16401 from abyss7/ast-table-identifier-2
...
ASTTableIdentifier part #2 : Introduce ASTTableIdentifier
2021-06-15 13:51:30 +03:00
Alexey Milovidov
e3653e70da
Update prompt in client when reconnecting
2021-06-15 04:43:35 +03:00
mergify[bot]
9cfedd9c64
Merge branch 'master' into progress-bar
2021-06-12 01:15:23 +00:00
alexey-milovidov
3792d20061
Merge pull request #24863 from azat/echo-hint
...
clickhouse-client: echo hint improvements
2021-06-12 03:23:54 +03:00
Ivan
a7fa4e641c
Merge branch 'master' into ast-table-identifier-2
2021-06-10 16:43:22 +03:00
Alexander Kuzmenkov
c0e6aa97a6
Merge pull request #24734 from ClickHouse/aku/frame-expressions
...
support expressions in window frame
2021-06-10 00:25:32 +03:00
mergify[bot]
3a47feedb0
Merge branch 'master' into progress-bar
2021-06-09 08:04:48 +00:00
Azat Khuzhin
18e8f0eb5e
Add ability to push down LIMIT for distributed queries
...
This way the remote nodes will not need to send all the rows, so this
will decrease network io and also this will make queries w/
optimize_aggregation_in_order=1/LIMIT X and w/o ORDER BY faster since it
initiator will not need to read all the rows, only first X (but note
that for this you need to your data to be sharded correctly or you may
get inaccurate results).
Note, that having lots of processing stages will increase the complexity
of interpreter (it is already not that clean and simple right now).
Although using separate QueryProcessingStage looks pretty natural.
Another option is to make WithMergeableStateAfterAggregation always, but
in this case you will not be able to disable only this optimization,
i.e. if there will be some issue with it.
v2: fix OFFSET
v3: convert 01814_distributed_push_down_limit test to .sh and add retries
v4: add test with OFFSET
v5: add new query stage into the bash completion
v6/tests: use LIMIT O,L syntax over LIMIT L OFFSET O since it is broken in ANTLR parser
https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_(antlr_debug).html#fail1
v7/tests: set use_hedged_requests to 0, to avoid excessive log entries on retries
https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_flaky_check_(address).html#fail1
2021-06-09 02:29:50 +03:00
Ivan
579250168f
Merge branch 'master' into ast-table-identifier-2
2021-06-07 20:30:39 +03:00
alesapin
4a1bf51ad1
Merge branch 'master' into limited_fetches
2021-06-02 23:01:47 +03:00
Nikita Mikhaylov
2248c77643
done
2021-06-02 17:18:54 +03:00
Ivan Lezhankin
ae38b4a3f1
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-06-02 16:07:59 +03:00
Alexander Kuzmenkov
1d304d86a4
a lucky charm to ward off clang-tidy
2021-06-02 15:18:03 +03:00
Alexander Kuzmenkov
ae79bbea7d
Merge remote-tracking branch 'origin/master' into HEAD
2021-06-02 15:06:22 +03:00
Alexander Kuzmenkov
78fe7891b4
better messages in fuzzer status
2021-06-02 15:06:12 +03:00
Azat Khuzhin
9882d160d8
clichouse-client: fix readability-identifier-naming
2021-06-02 07:38:56 +03:00
alesapin
feed2636f4
Add exponential smoothing to Throttler
2021-06-02 01:07:29 +03:00
Azat Khuzhin
ffacb7dcdf
Add description for test hints
2021-06-02 01:04:06 +03:00
Azat Khuzhin
69cf881947
clickhouse-client: add echoOn/echoOff hints
2021-06-02 01:04:06 +03:00
Azat Khuzhin
1c595c127f
clickhouse-client: echo queries only after "{ echo }" hint
...
Before this patch clickhouse-client interprets the whole queries and if
"{ echo }" found, it starts echoing queries, but this will make it
impossible to skip some of lines.
2021-06-02 01:04:06 +03:00
kssenii
de277f8ac4
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into progress-bar
2021-06-01 07:58:19 +00:00
tavplubix
e9ff0b6d70
Merge pull request #23657 from kssenii/poco-file-to-std-fs
...
Poco::File to std::filesystem
2021-05-31 23:17:02 +03:00