mergify[bot]
8014cdf9d3
Merge branch 'master' into random-settings
2022-02-28 14:06:22 +00:00
Azat Khuzhin
9b753c84f0
Print only total profile events for --profile-events-delay-ms=-1
...
There was serveral issues:
1) there can be events for multiple threads in one block
2) lack of filter for thread_id = 0
3) thread_id was included into comparator
Fixes : #34719
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-19 13:49:41 +03:00
avogar
1e797c1a8f
Fix some tests
2022-02-16 15:10:02 +00:00
Kruglov Pavel
adf58ea1ce
Merge pull request #34490 from Avogar/fix-client
...
Refactor client fault tolerant connection
2022-02-16 12:39:46 +03:00
Nikita Mikhaylov
e1b0c715fa
Done
2022-02-15 15:39:59 +00:00
Kruglov Pavel
a4f5610764
Merge pull request #34476 from CurtizJ/avoid-settings-copy
...
Avoid unnecessary copying of `Settings`
2022-02-10 14:13:46 +03:00
avogar
372e1f2013
Fix test
2022-02-10 14:06:32 +03:00
avogar
75c56163a0
Refactor client fault tolerant connection
2022-02-10 12:43:08 +03:00
Anton Popov
298838f891
avoid unnecessary copying of Settings
2022-02-10 12:13:51 +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
c1df291b18
Fix error with IPv6 in host param
2022-02-08 02:03:41 +03:00
DF5HSE
87933e44d6
Fix codestyle
2022-02-08 02:03:40 +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
18a777cc8b
Add function which gets port from configuration
2022-02-08 02:03:37 +03:00
DF5HSE
69e535fcb2
Merge branch 'master' of github.com:ClickHouse/ClickHouse into client-fault-tolerant-connection
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
03b4945704
Fix codestyle
2022-02-08 02:03:35 +03:00
kssenii
e41a895ebb
Fix
2022-02-06 16:11:18 +01:00
Kseniia Sumarokova
4dee6488f9
Merge pull request #34265 from kssenii/add-query-id-for-client-queries-file
...
print query id when using `--interactive` with `--queries-file` in client/local
2022-02-05 17:23:33 +01:00
alexey-milovidov
768c71c1ac
Update ClientBase.cpp
2022-02-03 05:13:48 +03:00
Anton Popov
5bb1b3ce77
support async inserts in clickhouse-client for queries with inlined data
2022-02-02 20:59:37 +03:00
kssenii
eae0bc7c04
add query id for delayed interactive
2022-02-02 18:20:59 +03:00
Sergei Trifonov
68bc456830
Merge pull request #34223 from azat/bump-fmt
...
Bump fmtlib from 7.0.0 to 8.1.1
2022-02-02 00:03:25 +03:00
Azat Khuzhin
bedf208cbd
Use fmt::runtime() for LOG_* for non constexpr
...
Here is oneliner:
$ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'
Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:
$ cat fmt.cocci
@@
expression log;
expression var;
@@
-LOG_DEBUG(log, var)
+LOG_DEBUG(log, fmt::runtime(var))
I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
Amos Bird
bb34435928
Better code
2022-01-30 19:48:35 +08:00
Amos Bird
54517753d7
Combining our lexer with replxx
2022-01-30 19:48:33 +08:00
Azat Khuzhin
1acd644040
Add inplace merge for new completion words
...
This will allow:
- use addWords() everywhere
- remove that optimization for empty words case (initial load)
- and now we remove duplicates according to comparator
v2: replace parameter pack in addWords() with explicit Compare for both
cases (just pass default)
2022-01-24 22:59:18 +03:00
Kruglov Pavel
175788ecf9
Merge pull request #33790 from Avogar/fix-input
...
Fix bug in client that led to 'Connection reset by peer' in server
2022-01-20 14:09:13 +03:00
Azat Khuzhin
3e58094bcb
Fix build w/o replxx
2022-01-20 10:02:02 +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
6092ed48bd
Fix bug in client that led to 'Connection reset by peer' in server
2022-01-19 19:04:57 +03:00
Azat Khuzhin
f12e4b6ef7
Rewrite suggestions to make it more cleaner
...
- use plain mutex over atomic
- use addWords() for initial suggestion filling
- return vector<> from getCompletions() over iterator, to avoid possible
questions (even though it was safe, since addWords() could not be
called in parallel with getCompletions() before)
2022-01-18 21:03:51 +03:00
Kruglov Pavel
d2e9f37bee
Merge branch 'master' into format-by-extention
2022-01-14 18:36:23 +03:00
avogar
817a314263
Fix tests and style
2022-01-14 17:46:24 +03:00
tavplubix
8c9a369588
Merge pull request #33535 from kssenii/fix-local-client-exception
...
Fix clickhouse local interactive exception case
2022-01-12 13:17:05 +03:00
kssenii
211f1dd482
Fix
2022-01-12 00:28:53 +03:00
zhongyuankai
99279c1443
INTO OUTFILE / FROM INFILE: autodetect FORMAT by file extension
2022-01-11 21:26:14 +08:00
zhongyuankai
878e44eb97
auto format by file extension
2022-01-08 21:47:14 +08:00
Azat Khuzhin
0685fd9985
clickhouse-local: track memory under --max_memory_usage_in_client option
2021-12-31 11:06:15 +03:00
Alexey Milovidov
c1297d2431
Compatibility
2021-12-29 19:57:40 +03:00
Alexey Milovidov
e8e19b8b0d
Always display resource usage in client
2021-12-29 01:20:34 +03:00
Azat Khuzhin
36c4fc054c
Client interactive suggest (extract info from CREATE queries)
...
This will parse CREATE queries and add the following things to
completion list for clickhouse-client/clickhouse-local:
- table
- database
- columns
2021-12-26 19:10:25 +03:00
Alexey Milovidov
29d28c531f
Move code around to avoid dlsym on Musl
2021-12-24 12:25:27 +03:00
kssenii
8cf52918b9
clickhouse local send profile info
2021-12-23 12:37:29 +03:00
Nikolay Degterinsky
6757afa052
Merge pull request #32843 from nkolotov/fix_echo_option_not_used_in_batch_mode
...
Fixed --echo option is not used by clickhouse-client in batch mode with single query
2021-12-23 11:37:02 +03:00
Kseniia Sumarokova
2ac7897470
Merge pull request #32841 from lingtaolf/feature/add-clickhouse-client-hints
...
Add clickhouse client hints
2021-12-20 23:48:50 +03:00
Kseniia Sumarokova
a5f28e51e5
Try fix style check
2021-12-20 18:09:20 +03:00
凌涛
0efc01be05
add test
2021-12-20 13:53:08 +08:00