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
mergify[bot]
08eca33d81
Merge branch 'master' into progress-bar
2021-05-31 19:54:20 +00:00
Nikolai Kochetov
afc1fe7f3d
Make ContextPtr const by default.
2021-05-31 17:49:02 +03:00
Alexander Kuzmenkov
f60d971637
cleanup
2021-05-31 16:45:47 +03:00
kssenii
69816e6eff
Fix checks
2021-05-30 15:44:58 +03:00
Alexander Kuzmenkov
73c2ca7da5
fixes
2021-05-29 16:12:18 +03:00
kssenii
0a3589524e
File movement
2021-05-29 00:57:53 +03:00
kssenii
2a631aaf08
Final fixes
2021-05-29 00:34:44 +03:00
kssenii
0d393c0006
Fix tests
2021-05-27 17:21:19 +03:00
kssenii
1c43b333ea
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-22 21:26:48 +03:00
mergify[bot]
970243850f
Merge branch 'master' into ast-table-identifier-2
2021-05-21 12:56:49 +00:00
Alexander Kuzmenkov
54ee3a4e48
space
2021-05-19 18:01:11 +03:00
Alexander Kuzmenkov
d6e357d78c
consolidate connection loss handling in fuzzer
2021-05-19 17:36:01 +03:00
kssenii
5f083b779d
A little better, fix checks
2021-05-18 14:25:19 +03:00
kssenii
9b8df78fdd
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-17 17:42:05 +03:00
kssenii
2124113aa2
Update programs/*
2021-05-17 01:06:09 +03:00
Azat Khuzhin
5b668fc351
Remove trailing whitespace for Processed client message
2021-05-15 16:07:54 +03:00
Ivan Lezhankin
bd16dd22b9
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-05-14 15:40:33 +03:00
kssenii
4574c09048
Fix style check
2021-05-14 08:35:51 +00:00
kssenii
c25be65ebf
Refactor progress bar, adjust progress indication for reading from file
2021-05-14 06:16:31 +00:00
kssenii
e82d717233
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into progress-bar
2021-05-13 10:20:02 +00:00
Amesaru
d12243b76c
Merge remote-tracking branch 'origin/progress_bar_for_LocalServer' into progress_bar_for_LocalServer
2021-05-11 19:33:26 +03:00
Amesaru
84079d6c67
Client.cpp fix
2021-05-11 19:15:07 +03:00
Egor Savin
e51e13db61
Merge branch 'master' into progress_bar_for_LocalServer
2021-05-11 18:36:06 +03:00
Amesaru
fa8e904987
WriteProgress fix
2021-05-11 17:24:04 +03:00
Amesaru
6dd475cc76
Convert ProgressBar into a struct
2021-05-11 17:14:57 +03:00
alexey-milovidov
066d02dd2f
Merge pull request #23631 from ClickHouse/normalize-bigint
...
Make big integers production ready.
2021-05-11 11:07:52 +03:00
mergify[bot]
f5e77d7200
Merge branch 'master' into aku/fuzzer-typo
2021-05-10 17:54:19 +00:00
Amesaru
63c06f578b
Client.cpp fix
2021-05-06 22:40:28 +03:00
Amesaru
6f855630e9
Client.cpp merge fix
2021-05-06 22:40:28 +03:00
Amesaru
6fa30e7398
Client.cpp and LocalServer.cpp fix
2021-05-06 22:40:28 +03:00
Amesaru
2ad8b890ab
Trying to fix ProgressBar for Local
2021-05-06 22:40:28 +03:00
Amesaru
65d2b236ad
Add clearProgress to ProgressBar
2021-05-06 22:40:10 +03:00
Amesaru
97e87dc06a
Code-style fix
2021-05-06 22:38:52 +03:00
Amesaru
9f59b08632
Fix typo in Client.cpp
2021-05-06 22:38:38 +03:00
Amesaru
9650497edb
Moved ProgressBar from src/Client to src/Common
2021-05-06 22:35:21 +03:00
Amesaru
f4f6e17bcd
More fixes
2021-05-06 19:42:57 +03:00
Amesaru
b7b21426b9
Fix for UpdateProgress
2021-05-06 19:40:55 +03:00
Amesaru
77f1218efb
United progress bar for LocalServer and Client
2021-05-06 19:39:27 +03:00
kssenii
5ef3ee50fe
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into progress-bar
2021-05-05 09:26:12 +00:00
Alexey Milovidov
eea47a65d2
PVS-Studio
2021-05-04 15:13:47 +03:00
Alexey Milovidov
9f74565948
PVS-Studio
2021-05-03 01:42:01 +03:00
Alexey Milovidov
1fda866881
Merge branch 'master' into normalize-bigint
2021-05-02 21:24:45 +03:00
Alexey Milovidov
b22032b97d
Whitespace
2021-05-02 14:19:47 +03:00
Alexander Kuzmenkov
1b45284c17
typo
2021-04-30 03:21:26 +03:00
Alexander Kuzmenkov
86c4d8b934
the last try to make the formatting check in fuzzer work
2021-04-30 00:38:40 +03:00
kssenii
c33f358a9a
Better way to track progress, display progress for ch-client
2021-04-28 19:12:28 +00:00
Alexander Kuzmenkov
36593d5cc3
reinitialize the connection after errors
2021-04-28 13:26:23 +03:00
Alexander Kuzmenkov
bb675e7d11
fix a typo in query formatting check in fuzzer
2021-04-28 13:19:18 +03:00
Alexey Milovidov
83b071a3d9
Merge branch 'master' into remove-strange-code-fix-19283
2021-04-27 06:34:46 +03:00
Alexey Milovidov
8f01af62d9
Merge branch 'master' into normalize-bigint
2021-04-25 06:57:44 +03:00
Alexey Milovidov
4ff812db7f
Maybe better support for paths with whitespaces
2021-04-24 22:47:52 +03:00
Ivan Lezhankin
cdd825b18b
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-04-23 18:08:25 +03:00
Alexey Milovidov
17d04cbca9
Merge branch 'master' into protocol-compression-auto
2021-04-15 00:24:07 +03:00
Ivan
b099ad467d
Merge branch 'master' into ast-table-identifier-2
2021-04-14 18:38:30 +03:00
Alexey Milovidov
7847a48a58
Merge branch 'master' into remove-strange-code-fix-19283
2021-04-14 17:44:44 +03:00
Alexey Milovidov
a57e82a5b4
Fix error
2021-04-14 01:04:37 +03:00
Alexey Milovidov
e08c8a3d2c
Merge branch 'master' into protocol-compression-auto
2021-04-13 23:43:08 +03:00
Alexey Milovidov
7773b76232
Remove wrong code, fix #19283
2021-04-13 23:28:45 +03:00
Alexey Milovidov
8a88009c6c
Remove non-essential parts from Suggest
2021-04-13 15:39:13 +03:00
Ivan
a73483751f
Merge branch 'master' into ast-table-identifier-2
2021-04-12 20:23:28 +03:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
Ivan Lezhankin
3da3250bfd
Merge branch 'master' into ast-table-identifier-2
2021-04-09 17:56:15 +03:00
Alexander Kuzmenkov
06bb58cb69
Merge pull request #22704 from ClickHouse/aku/window-multiple
...
fix window functions with multiple input streams and no sorting
2021-04-07 15:15:47 +03:00
Azat Khuzhin
f157278b72
Safer SCOPE_EXIT
...
It executes the code in the dtor, that should never throw.
2021-04-06 21:10:37 +03:00
Alexander Kuzmenkov
585da2c8d0
Merge remote-tracking branch 'origin/master' into HEAD
2021-04-06 14:58:21 +03:00
Alexey Milovidov
f70c9e8752
Merge branch 'master' into protocol-compression-auto
2021-04-06 14:53:31 +03:00
Alexander Kuzmenkov
06e7a9f8f2
fix window functions with multiple input streams and no sorting
2021-04-06 14:43:27 +03:00
Alexey Milovidov
7a54558a29
Improve usability of clickhouse-client
2021-04-05 05:49:13 +03:00
Alexey Milovidov
39bb7c39c0
Autodetect compression #22234
2021-03-29 04:04:52 +03:00
Alexander Kuzmenkov
f85b089292
Merge pull request #21466 from ClickHouse/aku/frame-formatting
...
add query formatting idempotence check to fuzzer
2021-03-18 17:57:11 +03:00
Alexander Kuzmenkov
bb460dd7f4
fix
2021-03-17 21:55:06 +03:00
Alexander Kuzmenkov
9018ad3979
Merge remote-tracking branch 'origin/aku/frame-formatting' into HEAD
2021-03-17 21:52:31 +03:00
Alexander Kuzmenkov
9b1d256f54
clang-tidy......
2021-03-17 21:44:43 +03:00
Alexander Kuzmenkov
cb92d578e1
Update programs/client/Client.cpp
2021-03-17 18:57:13 +03:00
Alexander Kuzmenkov
bb17f14d83
fix
2021-03-17 18:55:53 +03:00
Alexander Kuzmenkov
6403198c84
check formatting only for the queries we can execute
2021-03-16 02:19:16 +03:00
Alexander Kuzmenkov
e485a27dc1
some fixes
2021-03-15 22:45:45 +03:00
alexey-milovidov
53e21443eb
Merge branch 'master' into DateTime64_extended_range
2021-03-14 12:27:17 +03:00
Alexander Kuzmenkov
ec19b69d8c
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-12 23:53:48 +03:00
Alexander Kuzmenkov
508953ca00
more debug info
2021-03-12 23:53:26 +03:00
Denis Glazachev
290a6d273e
Add Kerberos support for authenticating existing users when accessing over HTTP
2021-03-11 23:41:10 +03:00
Alexander Kuzmenkov
60cb84d417
more debug info
2021-03-05 20:24:50 +03:00
Alexander Kuzmenkov
70dfcdac8d
ignore some errors
2021-03-05 12:59:50 +03:00
Alexander Kuzmenkov
7c8d17045c
fix frame formatting error
2021-03-05 06:15:20 +03:00
Vasily Nemkov
2d03d330bc
Extended range of DateTime64 to years 1925 - 2238
...
The Year 1925 is a starting point because most of the timezones
switched to saner (mostly 15-minutes based) offsets somewhere
during 1924 or before. And that significantly simplifies implementation.
2238 is to simplify arithmetics for sanitizing LUT index access;
there are less than 0x1ffff days from 1925.
* Extended DateLUTImpl internal LUT to 0x1ffff items, some of which
represent negative (pre-1970) time values.
As a collateral benefit, Date now correctly supports dates up to 2149
(instead of 2106).
* Added a new strong typedef ExtendedDayNum, which represents dates
pre-1970 and post 2149.
* Functions that used to return DayNum now return ExtendedDayNum.
* Refactored DateLUTImpl to untie DayNum from the dual role of being
a value and an index (due to negative time). Index is now a different
type LUTIndex with explicit conversion functions from DatNum, time_t,
and ExtendedDayNum.
* Updated DateLUTImpl to properly support values close to epoch start
(1970-01-01 00:00), including negative ones.
* Reduced resolution of DateLUTImpl::Values::time_at_offset_change
to multiple of 15-minutes to allow storing 64-bits of time_t in
DateLUTImpl::Value while keeping same size.
* Minor performance updates to DateLUTImpl when building month LUT
by skipping non-start-of-month days.
* Fixed extractTimeZoneFromFunctionArguments to work correctly
with DateTime64.
* New unit-tests and stateless integration tests for both DateTime
and DateTime64.
2021-02-24 17:08:35 +02:00
Alexander Kuzmenkov
2571dac984
Merge pull request #20111 from ClickHouse/aku/window-prototype
...
RANGE OFFSET window frame
2021-02-11 10:39:21 +03:00
alexey-milovidov
8553a65ef8
Merge pull request #20281 from ClickHouse/aku/fuzzer-changed-settings
...
print changed settings in fuzzer when the server dies
2021-02-11 03:26:01 +03:00
alexey-milovidov
76ccec2885
Fix XML
2021-02-10 16:39:59 +03:00
Alexander Kuzmenkov
87e5218c91
Update Client.cpp
2021-02-10 16:29:33 +03:00
Alexander Kuzmenkov
41a3cd978e
print changed settings in fuzzer when the server dies
2021-02-10 14:18:11 +03:00
filimonov
beb5912b4f
Add example of client configuration adjusemtents
2021-02-10 10:02:35 +01:00
alexey-milovidov
ed5a81ab59
Merge pull request #20078 from abyss7/better-read-buffers-4
...
LimitReadBuffer: check that position always advances
2021-02-07 07:33:08 +03:00
alesapin
011109c82a
Merge pull request #17348 from xjewer/alex/CLICKHOUSE-606_deduplication_UUID
...
CLICKHOUSE-606: query deduplication based on parts' UUID
2021-02-05 22:47:34 +03:00
Alexander Kuzmenkov
6824f13a35
tmp
2021-02-05 12:13:19 +03:00
Ivan Lezhankin
ee0ff755e2
Check that position always advances
2021-02-04 17:46:46 +03:00
Alexander Kuzmenkov
f31d2206a7
more fuzzing and less bugs
2021-02-03 15:50:25 +03:00
Alexander Kuzmenkov
bb45c5a8ff
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-03 12:13:23 +03:00
Alexander Kuzmenkov
a164abf23e
add frame fuzzing and one query that fails under msan
2021-02-03 09:42:54 +03:00
Aleksei Semiglazov
921518db0a
CLICKHOUSE-606: query deduplication based on parts' UUID
...
* add the query data deduplication excluding duplicated parts in MergeTree family engines.
query deduplication is based on parts' UUID which should be enabled first with merge_tree setting
assign_part_uuids=1
allow_experimental_query_deduplication setting is to enable part deduplication, default ot false.
data part UUID is a mechanism of giving a data part a unique identifier.
Having UUID and deduplication mechanism provides a potential of moving parts
between shards preserving data consistency on a read path:
duplicated UUIDs will cause root executor to retry query against on of the replica explicitly
asking to exclude encountered duplicated fingerprints during a distributed query execution.
NOTE: this implementation don't provide any knobs to lock part and hence its UUID. Any mutations/merge will
update part's UUID.
* add _part_uuid virtual column, allowing to use UUIDs in predicates.
Signed-off-by: Aleksei Semiglazov <asemiglazov@cloudflare.com>
address comments
2021-02-02 16:53:39 +00:00
Alexey Milovidov
30e1db7f47
Merge branch 'master' into azat-client-complete-error-codes
2021-01-31 00:01:47 +03:00
alexey-milovidov
a9d9a8f3a9
Update Suggest.cpp
2021-01-30 01:21:51 +03:00
Azat Khuzhin
585874bf46
tests: add a test for clickhouse-client autocompletion
...
v2: Increase timeout for 01676_clickhouse_client_autocomplete
https://github.com/ClickHouse/ClickHouse/pull/19584#discussion_r565727175
v3: Disable 01676_clickhouse_client_autocomplete in unbundled build (arcadia)
autocomplete does not have to work fully unbundled build (since it lack
of replxx).
Similar to bd523a0aff
v4: set expect timeout back to 1 and increase total timeout to 20 sec
v4: set expect timeout back to 3 and increase total timeout to 22 (3*X+1) sec
2021-01-29 07:50:08 +03:00
Alexander Kuzmenkov
d72b302b97
Update Client.cpp
2021-01-28 23:16:35 +03:00
Azat Khuzhin
86f80105cb
client/suggest: add policy
2021-01-28 23:16:06 +03:00
Azat Khuzhin
212d5082b4
client/suggest: add macros
2021-01-28 23:16:06 +03:00
Azat Khuzhin
1c68bf8545
client/suggest: add other metrics
2021-01-28 23:16:06 +03:00
Azat Khuzhin
a2bab85b78
client/suggest: set system_events_show_zero_values for query
2021-01-28 23:16:06 +03:00
Azat Khuzhin
b57452446b
client/suggest: add error code names
2021-01-28 23:16:06 +03:00
Alexander Kuzmenkov
3f305cecc3
add empty line after error messages in client
2021-01-27 22:52:18 +03:00
Alexey Milovidov
093108bf81
Normalize BigInt implementation
2021-01-27 03:54:57 +03:00
Alexander Kuzmenkov
ccf332ea7e
Don't dwell on the past in query fuzzer
...
When we remember too many query fragments, just clean the database
and start collecting it anew. Hopefully this should make the fuzzer more
aggressive.
2021-01-22 20:15:31 +03:00
Alexander Kuzmenkov
2eba7413e1
remove extra newline
2021-01-22 02:42:24 +03:00
Alexander Kuzmenkov
eb7b87ee8d
update tests
2021-01-21 21:01:32 +03:00
Alexander Kuzmenkov
ec8ff21526
Reconnect after client errors
2021-01-21 17:28:46 +03:00
Alexander Kuzmenkov
4d16dead0f
Merge remote-tracking branch 'origin/master' into HEAD
2021-01-19 20:34:01 +03:00
Alexander Kuzmenkov
6fefc29f39
comment
2021-01-19 20:25:28 +03:00
Alexander Kuzmenkov
847a4e5d7c
Merge remote-tracking branch 'origin/master' into HEAD
2021-01-19 20:22:03 +03:00
Alexander Kuzmenkov
f5931a2289
Merge pull request #19236 from ClickHouse/aku/echo-leading
...
Make `-- { echo }` hint preserve leading comments
2021-01-19 20:20:58 +03:00
Alexander Kuzmenkov
1bd0c25bf0
Consolidate the test hint handling
...
Before it was handled in like five places with two of them disabled by a
flag and the others not disabled. Hard to navigate.
2021-01-19 01:40:30 +03:00
Alexander Kuzmenkov
b2547e99a0
whitespace
2021-01-18 15:18:29 +03:00
Alexander Kuzmenkov
c153268da7
Make -- { echo }
hint preserve leading comments.
2021-01-18 15:15:46 +03:00
Alexander Kuzmenkov
f3e112766f
cleanup
2021-01-18 12:49:56 +03:00
Alexey Milovidov
52a05f4b5d
Extreme fuzzing of newly added tests
2021-01-16 18:03:32 +03:00
Alexander Kuzmenkov
9d6730a846
small fixes
2021-01-16 00:33:53 +03:00
Alexander Kuzmenkov
765aa4d4e3
rewrote everything again
2021-01-15 23:30:44 +03:00
Alexander Kuzmenkov
c9628386fc
more fixes
2021-01-15 01:39:43 +03:00
Alexander Kuzmenkov
4c2c083387
strip leading whitespace
2021-01-15 00:27:36 +03:00
Alexander Kuzmenkov
1abb554d2b
test fixes
2021-01-14 23:47:52 +03:00
Alexander Kuzmenkov
d53da04e6f
without debug
2021-01-14 18:38:27 +03:00
Alexander Kuzmenkov
8be081e3c0
with debug
2021-01-14 18:35:52 +03:00
Alexander Kuzmenkov
48509a85d3
comment woes
2021-01-14 01:04:19 +03:00
Alexander Kuzmenkov
703731c547
something works
2021-01-13 22:29:52 +03:00
Alexey Milovidov
32f10c38d9
Query Fuzzer: return fail fast semantics
2021-01-09 08:30:23 +03:00
Alexey Milovidov
aff4ba7726
Slightly better
2021-01-06 04:03:07 +03:00
Alexey Milovidov
8d34f76d76
Slightly better
2021-01-06 03:58:31 +03:00
Alexey Milovidov
895ec0976b
Break query fuzzer even more
2021-01-06 00:34:08 +03:00
Alexey Milovidov
7f074cb491
Remove half of strange code from query fuzzer
2021-01-06 00:20:39 +03:00
Alexey Milovidov
8ecbfe701c
Miscellaneous
2021-01-05 23:32:42 +03:00
Alexey Milovidov
5573c3b61e
Fix error in Fuzzer
2021-01-05 23:32:05 +03:00
Alexey Milovidov
1bd6605373
Remove strange code from Fuzzer
2021-01-05 23:30:00 +03:00
Alexey Milovidov
a06f03b9b3
Query Fuzzer: fix some cultural issues
2021-01-05 23:23:26 +03:00
Nikita Mikhaylov
f27aa148e0
Merge branch 'master' into parallel-parsing-input-format
2020-12-31 06:16:43 +04:00
Alexey Milovidov
611caf1778
Send fatal logs in all tests
2020-12-30 22:12:24 +03:00
Ivan Lezhankin
5e89145a42
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2020-12-30 13:04:17 +03:00
Nikita Mikhailov
c5f92e5096
better formatfactory
2020-12-30 06:07:30 +03:00
Nikita Mikhailov
2b90b4e01d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-29 22:47:06 +03:00
Nikita Mikhailov
2dde73f700
better
2020-12-28 19:52:54 +03:00
Nikita Mikhailov
c3288c3fbf
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-28 15:09:37 +03:00
Alexander Kuzmenkov
2905f70cce
fix aliases in partition by/order by
2020-12-28 12:56:38 +03:00
Alexander Kuzmenkov
3da533766d
clang-tidy.......
2020-12-22 10:25:45 +03:00
Alexander Kuzmenkov
919172f9ee
more fuzzer fixes
2020-12-22 07:16:56 +03:00
Alexander Kuzmenkov
dadfc76f8f
fix the fuzzer
2020-12-22 07:02:39 +03:00
Alexander Kuzmenkov
5e19eaf2f0
Merge remote-tracking branch 'origin/master' into tmp
2020-12-18 03:49:59 +03:00
Alexander Kuzmenkov
157fe3e8b4
some tests + ability to echo the queries
2020-12-18 03:49:18 +03:00
Alexander Kuzmenkov
fc426807a8
formatting & fuzzer support
2020-12-18 03:21:23 +03:00
Nikita Mikhailov
6a55e018e4
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-18 02:25:32 +03:00
nikitamikhaylov
5521abba1e
fix boost
2020-12-16 15:57:42 +03:00
Ivan Lezhankin
2fe6195577
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2020-12-16 14:50:36 +03:00
nikitamikhaylov
b5436547ff
thread tests
2020-12-15 00:56:48 +03:00
nikitamikhaylov
12e624fd9a
fix tests
2020-12-15 00:56:48 +03:00
nikitamikhaylov
f7ac8bf542
rebase and fix tests
2020-12-15 00:56:48 +03:00
nikitamikhaylov
67766034f2
disable progress bar with parallel_formatting
2020-12-15 00:56:47 +03:00
Nikita Mikhaylov
0e31424c92
save changes
2020-12-15 00:56:47 +03:00
Nikita Mikhaylov
3bc1affd21
remove CSV restriction
2020-12-15 00:56:47 +03:00
Maksim Kita
963ee5211b
Added queries-file parameter. Fixed code review issues
2020-12-07 19:29:17 +03:00
Maksim Kita
f5d1a9e59a
Clickhouse client and local added queries-file parameter
2020-12-07 19:29:17 +03:00
Alexander Kuzmenkov
1570320e20
fixes for context hierarchy
2020-11-18 20:43:18 +03:00
Ivan Lezhankin
9250d5c4e9
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2020-11-12 16:25:46 +03:00
alexey-milovidov
8dd81410de
Merge pull request #16843 from azat/clickhouse-client-stage
...
Add --stage option for clickhouse-client
2020-11-12 13:09:40 +03:00
Alexander Tokmakov
dbac7860b1
review suggestions
2020-11-11 16:27:54 +03:00
Azat Khuzhin
ab8f13b885
Add --stage option for clickhouse-client
...
It is sometimes useful to process queries not up to the Complete stage
but intermediate some (i.e. for Distributed queries debugging and
similar).
2020-11-11 00:54:51 +03:00
Alexander Tokmakov
b94cc5c4e5
remove more stringstreams
2020-11-10 21:22:26 +03:00
Alexander Tokmakov
5cdfcfb307
remove other stringstreams
2020-11-09 22:12:44 +03:00
Alexander Tokmakov
62ff00ee8b
use WriteBuffer in formatAST(...)
2020-11-09 19:05:40 +03:00
Alexander Kuzmenkov
24e57c659a
Merge pull request #15960 from kitaisreal/clickhouse-client-added-history-file-parameter
...
Clickhouse client added history file parameter
2020-11-09 08:19:00 +03:00
Maksim Kita
05ba70c91f
Clickhouse client added history file parameter
2020-11-06 17:05:59 +03:00
Alexey Milovidov
5cfd84249b
Merge branch 'master' into register-formats
2020-11-04 12:41:59 +03:00
Ivan
281bf351d2
Remove ANALYZE and AST queries ( #16536 )
2020-11-02 15:47:12 +03:00
Alexey Milovidov
2e0a979e3a
Fix inconsistency in FormatFactory
2020-10-29 06:39:43 +03:00
Alexey Milovidov
c703c052b4
Merge branch 'master' into suggest-destruction-order
2020-10-28 04:21:43 +03:00
Alexander Kuzmenkov
5a70e26c70
Merge remote-tracking branch 'origin/master' into HEAD
2020-10-26 19:21:13 +03:00
Ivan Lezhankin
4083406f54
Introduce ASTTableIdentifier
2020-10-26 18:49:00 +03:00
Alexey Milovidov
4bf32cb15b
Fix destruction order of Suggest #16035
2020-10-25 05:07:52 +03:00
Ivan
1d170f5745
ASTTableIdentifier Part #1 : improve internal representation of ASTIdentifier name ( #16149 )
...
* Use only |name_parts| as primary name source
* Restore legacy logic for table restoration
* Fix build
* Fix tests
* Add pytest server config
* Fix tests
* Fixes due to review
2020-10-24 21:46:10 +03:00
Alexander Kuzmenkov
84908df6d8
fix setting parent from HTTP traceparent
2020-10-20 14:35:13 +03:00
Alexander Kuzmenkov
036cdd33c5
reset error code in ast fuzzer
2020-10-16 17:27:47 +03:00
Alexander Kuzmenkov
9116a00a12
reset error code in ast fuzzer
2020-10-16 17:26:59 +03:00
Alexander Kuzmenkov
6200433e12
Merge origin/master into tmp (using imerge)
2020-10-12 21:15:31 +03:00
Amos Bird
e2643d881e
Prettify
2020-10-12 00:12:36 +08:00
alexey-milovidov
1aafa19146
Update Client.cpp
2020-10-11 13:27:09 +03:00
Amos Bird
ff665c362f
Add print query id support to client
2020-10-11 10:09:08 +08:00
alesapin
17b86dec96
Recursive defaults
2020-10-02 15:38:50 +03:00
Alexander Kuzmenkov
218d86de7e
Merge remote-tracking branch 'origin/master' into tmp
2020-09-28 16:29:51 +03:00
Alexey Milovidov
57b480e65d
Fix PVS warning
2020-09-26 07:03:55 +03:00
Alexander Kuzmenkov
7b64ca33b1
Merge remote-tracking branch 'origin/master' into tmp
2020-09-22 14:02:20 +03:00
Alexander Kuzmenkov
bfc3be9e43
Merge remote-tracking branch 'origin/aku/tcp-versio' into tmp
2020-09-22 14:02:15 +03:00
Alexander Kuzmenkov
e97c9b16a7
more diagnostics in fuzzer
2020-09-22 13:35:28 +03:00
alexey-milovidov
cf5db5e4dc
Merge pull request #14888 from azat/client-imporove-INSERT-error-message
...
Improve error message for INSERT via clickhouse-client
2020-09-18 01:13:22 +03:00
Vitaly Baranov
3356d75b23
Merge pull request #13156 from azat/cluster-secure
...
Secure inter-cluster query execution (with initial_user as current query user) [v3]
2020-09-17 17:11:00 +03:00
Alexander Kuzmenkov
6217dd77b5
Merge remote-tracking branch 'origin/master' into tmp
2020-09-17 12:35:10 +03:00
Azat Khuzhin
7d046b24e6
Improve error message for INSERT via clickhouse-client
...
With '\n...' after the query [1] clickhouse-client prefer data from the
INSERT over from stdin, and produce very tricky message:
Code: 27. DB::Exception: Cannot parse input: expected '\n' before: ' ': (at row 1)
Well for TSV it is ok, but for RowBinary:
Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 4.
So improve error message by adding the source of data for INSERT.
[1]: clickhouse-client -q "INSERT INTO data FORMAT TSV\n " <<<2
2020-09-17 00:16:51 +03:00
Azat Khuzhin
0159c74f21
Secure inter-cluster query execution (with initial_user as current query user) [v3]
...
Add inter-server cluster secret, it is used for Distributed queries
inside cluster, you can configure in the configuration file:
<remote_servers>
<logs>
<shard>
<secret>foobar</secret> <!-- empty -- works as before -->
...
</shard>
</logs>
</remote_servers>
And this will allow clickhouse to make sure that the query was not
faked, and was issued from the node that knows the secret. And since
trust appeared it can use initial_user for query execution, this will
apply correct *_for_user (since with inter-server secret enabled, the
query will be executed from the same user on the shards as on initator,
unlike "default" user w/o it).
v2: Change user to the initial_user for Distributed queries if secret match
v3: Add Protocol::Cluster package
v4: Drop Protocol::Cluster and use plain Protocol::Hello + user marker
v5: Do not use user from Hello for cluster-secure (superfluous)
2020-09-15 01:36:28 +03:00
Alexander Tokmakov
da6beb1a91
Merge branch 'master' into enable_some_tests_with_database_atomic
2020-09-14 23:00:14 +03:00
Alexander Kuzmenkov
d227f1f706
Merge pull request #13192 from ClickHouse/aku/semicolon-simple
...
Simpler version of semicolon-terminated VALUES #12999 w/o `pos` changes
2020-09-11 11:51:52 +03:00
Alexander Kuzmenkov
83ec93dec8
Fuzzer: reset default database before reconnect
2020-09-09 16:46:59 +03:00
Alexander Tokmakov
b68782d285
enable more tests with Atomic database
2020-09-09 16:32:50 +03:00
Alexander Kuzmenkov
c62bf555d2
Merge origin/master into tmp (using imerge)
2020-09-08 16:26:38 +03:00
Alexander Kuzmenkov
9cf2a38eb8
fixup
2020-09-01 03:22:06 +03:00
Alexander Kuzmenkov
33c5815eb3
Add a HTML report for AST Fuzzer
2020-09-01 02:33:42 +03:00
Alexander Kuzmenkov
fa8eebed78
more tests + clickhouse-client options
2020-08-29 02:25:30 +03:00
Alexey Milovidov
c5984ca1c5
Merge branch 'master' into client-progress-clobber-data
2020-08-24 23:44:43 +03:00
Azat Khuzhin
ad7379a37e
Improve error message on unknown packet for client suggestion
2020-08-17 21:38:34 +03:00
Azat Khuzhin
13f6af3834
Improve error message on unknown packet in client
2020-08-17 21:38:34 +03:00
Alexey Milovidov
f5b8f508f0
Better
2020-08-14 05:42:23 +03:00
Alexey Milovidov
2359759b0e
Better
2020-08-14 05:35:42 +03:00
Alexey Milovidov
cd095b7671
Fix data visible data clobbering with progress bar in client in interactive mode
2020-08-14 05:19:25 +03:00
Alexey Milovidov
42ecf91df1
Fix "Arcadia" build
2020-08-11 00:36:49 +03:00
Alexey Milovidov
0eac2d4054
Merge branch 'embed-configs' into clickhouse-install
2020-08-09 02:42:06 +03:00
alexey-milovidov
4ef51d685a
Merge pull request #13423 from ClickHouse/aku/fuzz-create
...
Do not fuzz CREATE queries
2020-08-09 01:40:06 +03:00
Alexey Milovidov
d9db0a3442
Add simple "clickhouse-install" tool
2020-08-08 21:38:34 +03:00
Alexey Milovidov
0cbbe153cd
Fix typos, the last 1%
2020-08-08 04:21:04 +03:00
Alexander Kuzmenkov
c32fddbb6d
Do not fuzz CREATE queries
...
We don't do it anyway, the first unmodified query succeeds and all
others fail. Just make it official.
2020-08-06 18:40:40 +03:00
Alexander Kuzmenkov
5c2d7fc569
fixes
2020-08-05 18:45:44 +03:00
Alexander Kuzmenkov
d205b20c04
wip
2020-08-05 05:21:33 +03:00
Alexander Kuzmenkov
0b28967ea8
fixup
2020-08-05 02:27:21 +03:00
Alexander Kuzmenkov
fcdfa2a125
Merge remote-tracking branch 'origin/master' into HEAD
2020-08-05 02:25:50 +03:00
Vitaly Baranov
a804f9499d
Use references while iterating through settings.
2020-08-04 04:00:38 +03:00
Alexander Kuzmenkov
442693dc53
Do not fuzz ASTDictionaryLayout
...
+ some cosmetic changes
2020-08-03 19:16:20 +03:00
Vitaly Baranov
56665a15f7
Rework and rename the template class SettingsCollection => BaseSettings.
2020-07-31 20:54:18 +03:00
Alexander Kuzmenkov
40504f6a6e
Simpler version of #12999 w/o pos
changes
2020-07-31 17:57:00 +03:00
alesapin
daaa5cc382
Add setting allow_non_metadata_alters
2020-07-21 17:05:30 +03:00
Alexander Kuzmenkov
039cf36acb
Minor fixes for query fuzzer
2020-07-16 21:05:34 +03:00
Alexander Kuzmenkov
d6e7ab5988
Fuzzing-related fixes
2020-07-13 16:58:48 +03:00
Alexander Kuzmenkov
eb6fbdfd4b
query fuzzer
2020-07-10 17:16:16 +03:00
Alexander Kuzmenkov
de0a6c0839
fix builds
2020-07-08 13:17:06 +03:00
Alexander Kuzmenkov
51c6683391
style
2020-07-07 20:10:55 +03:00
Alexander Kuzmenkov
d26441cdc4
cleanup
2020-07-07 19:33:19 +03:00
Alexander Kuzmenkov
1d1b49340c
cleanup
2020-07-07 19:31:58 +03:00
Alexander Kuzmenkov
ac436c79eb
Merge remote-tracking branch 'origin/master' into HEAD
2020-07-07 15:42:11 +03:00
Alexander Kuzmenkov
0c1985990b
fixes
2020-07-07 15:35:53 +03:00
myrrc
8c3417fbf7
ILIKE operator ( #12125 )
...
* Integrated CachingAllocator into MarkCache
* fixed build errors
* reset func hotfix
* upd: Fixing build
* updated submodules links
* fix 2
* updating grabber allocator proto
* updating lost work
* updating CMake to use concepts
* some other changes to get it building (integration into MarkCache)
* further integration into caches
* updated Async metrics, fixed some build errors
* and some other errors revealing
* added perfect forwarding to some functions
* fix: forward template
* fix: constexpr modifier
* fix: FakePODAllocator missing member func
* updated PODArray constructor taking alloc params
* fix: PODArray overload with n restored
* fix: FakePODAlloc duplicating alloc() func
* added constexpr variable for alloc_tag_t
* split cache values by allocators, provided updates
* fix: memcpy
* fix: constexpr modifier
* fix: noexcept modifier
* fix: alloc_tag_t for PODArray constructor
* fix: PODArray copy ctor with different alloc
* fix: resize() signature
* updating to lastest working master
* syncing with 273267
* first draft version
* fix: update Searcher to case-insensitive
* added ILIKE test
* fixed style errors, updated test, split like and ilike, added notILike
* replaced inconsistent comments
* fixed show tables ilike
* updated missing test cases
* regenerated ya.make
* Update 01355_ilike.sql
Co-authored-by: myrrc <me-clickhouse@myrrec.space>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-07-05 18:57:59 +03:00
Alexander Kuzmenkov
e7e4d29a54
more fuzzing
2020-07-03 15:52:16 +03:00
Alexander Kuzmenkov
3a50b81e31
Merge remote-tracking branch 'origin/master' into HEAD
2020-06-30 12:25:52 +03:00
Alexander Kuzmenkov
5c417f45b8
streaming wip
2020-06-30 12:25:23 +03:00
alexey-milovidov
7376f18467
Merge pull request #11923 from ucasFL/client-not-argue
...
client exit with unrecognized arguments
2020-06-28 17:38:25 +03:00
feng lv
a159f1be54
Merge branch 'master' of github.com:ClickHouse/ClickHouse into client-not-argue
2020-06-26 17:34:24 +08:00
Alexander Kuzmenkov
c8832769f6
Fuzzer
2020-06-26 08:44:42 +03:00
feng lv
0518e6a4d1
add test
...
update test
fix
2020-06-26 12:50:46 +08:00
Alexander Kuzmenkov
4ebe1d3418
more cleanup
2020-06-26 07:37:18 +03:00
Alexander Kuzmenkov
a739a10556
Minor cleanup in Client.cpp before fuzzing
2020-06-26 04:34:06 +03:00
feng lv
6f3b78c774
client exit with unrecognized arguments
...
format code
fix
2020-06-25 18:09:35 +08:00
Alexey Milovidov
cda2687195
Merge branch 'master' into fix-fpe-datetime64
2020-06-23 22:45:45 +03:00
Alexey Milovidov
b136999f75
Style
2020-06-22 23:32:12 +03:00
Alexey Milovidov
c66f020a63
Do not render progress too much
2020-06-22 22:16:48 +03:00
Alexey Milovidov
e6a969e2e6
Added support for MySQL style global variables syntax
2020-06-20 19:05:49 +03:00
Alexey Milovidov
80bcaaacf2
Don't rewrite query in client when there are no query parameters
2020-06-15 23:07:39 +03:00
Alexey Milovidov
07ba7ffea5
Clear password from command line #11624
2020-06-14 22:23:05 +03:00
alexey-milovidov
e690d0a3ea
Update Client.cpp
2020-06-11 20:57:23 +03:00
alexey-milovidov
615ab071d3
Update Client.cpp
2020-06-11 20:57:03 +03:00
Mikhail Filimonov
887a24b73a
Fix corner case (only) for exit code overflow
2020-06-11 15:08:24 +02:00
Ivan
47ad338cb2
Refactor CMake build files ( #11390 )
...
* Get rid of lib_name.cmake
* Refactor Boost and HyperScan libraries
* Refactor lz4
* Fix build with xxHash
2020-06-09 13:54:49 +03:00
alexey-milovidov
00e7eb91b1
Revert "Autocompletion support for users in client"
2020-06-08 23:13:03 +03:00
alexey-milovidov
a9c783d099
Merge pull request #11497 from azat/client-users-autocomplete
...
Autocompletion support for users in client
2020-06-08 07:33:57 +03:00
Azat Khuzhin
998f35e803
Autocompletion support for users in client
2020-06-08 01:58:41 +03:00
Alexey Milovidov
9eacaf648b
Make syntax highlight to work ok on white background
2020-06-07 00:20:17 +03:00
Alexey Milovidov
3cb2ec6f8f
Added an option to disable syntax highlight
2020-06-06 19:59:16 +03:00
Alexey Milovidov
4313a52970
Merge branch 'master' into kuskarov-add_syntax_highlighting
2020-06-06 19:35:47 +03:00
Alexey Milovidov
02e77e3406
Adjust some colors: minimum safe variant
2020-06-05 02:05:37 +03:00
Azat Khuzhin
16a22daf00
Complete dictionary names in clickhouse-client
...
Since system.tables does not includes all dictionaries (dictionaries
declared via configuration files -- *.xml), and since this are those
dictionaries we should use regular system.dictionaries.name over
system.dictionaries.origin.
2020-06-05 02:00:54 +03:00
Alexey Milovidov
e1b5ee51c1
Better way to plug in the code
2020-06-05 01:45:04 +03:00
Alexey Milovidov
275075b6f7
Revert all changes but save commit history from @kuskarov
2020-06-05 01:44:29 +03:00
Tagir Kuskarov
af9e1c7d86
Merge from master
2020-06-04 05:56:30 +04:00
Tagir Kuskarov
fed90652c9
Move files
2020-06-04 05:04:57 +04:00
Alexey Milovidov
1bbbfc6e1b
Fix \G in clickhouse-client multiline mode #9933
2020-06-02 06:25:19 +03:00
Alexey Milovidov
7989e945e6
Suppress output of cancelled queries in clickhouse-client #9473
2020-06-01 21:58:38 +03:00
Alexey Milovidov
585a5b6f3e
Whitespace
2020-05-31 21:49:19 +03:00
Alexey Milovidov
6a7ed8881e
Fix test
2020-05-30 19:39:34 +03:00
Alexey Milovidov
3d6057976e
Fix bad formatting in clickhouse-client
2020-05-29 23:00:51 +03:00
Ivan Lezhankin
2432ea2c4b
Build universal binary using ya make
2020-05-28 00:58:46 +03:00
Alexander Kuzmenkov
f98ffdbc4c
Merge pull request #11087 from azat/context-fwd-decl
...
[RFC] Forward declaration for Context as much as possible.
2020-05-21 19:43:29 +03:00
Azat Khuzhin
d93b9a57f6
Forward declaration for Context as much as possible.
...
Now after changing Context.h 488 modules will be recompiled instead of 582.
2020-05-21 01:53:18 +03:00
Alexey Milovidov
f54435e7fd
Fix clang-tidy
2020-05-18 11:08:55 +03:00
Alexey Milovidov
f4ac1eec04
Merge branch 'master' into quota-key-in-client
2020-05-17 08:15:13 +03:00
Alexey Milovidov
a72752d98f
Check if client is newer than server
2020-05-02 20:19:43 +03:00
Nikolai Kochetov
32baa073b5
Merge remote-tracking branch 'upstream/master' into insert_into_watch_from_live_view
2020-04-27 17:49:50 +03:00
Vitaliy Zakaznikov
34a03939ea
First changes to try to support INSERT INTO table WATCH query.
2020-04-25 07:33:47 -04:00
Alexey Milovidov
1d885b3ff9
Merge branch 'master' into quota-key-in-client
2020-04-20 02:15:37 +03:00
Nikolai Kochetov
84faa9af26
Merge branch 'master' into shared-context-lifetime
2020-04-17 19:13:13 +03:00
Nikolai Kochetov
d51a9c551b
Remove shared_ptr to SharedContext from Context.
2020-04-17 12:47:40 +03:00
Alexey Milovidov
0221fba873
Fix tests
2020-04-16 05:59:16 +03:00
Alexey Milovidov
cdeda4ab91
Fix usage of max_parser_depth setting; remove harmful default function arguments
2020-04-16 04:06:10 +03:00
Alexey Milovidov
fe59524481
Implemented in a different way
2020-04-15 04:59:14 +03:00
Alexey Milovidov
c22f91db01
Allow to pass quota_key in clickhouse-client
2020-04-15 04:15:05 +03:00
Alexey Milovidov
ea7eb2f4af
Removed old command line option for client
2020-04-12 19:33:44 +03:00
Alexey Milovidov
53199ae546
Fix various small issues in interactive mode of clickhouse-client #10189 #5908
2020-04-11 22:51:04 +03:00
Vitaly Baranov
ed2562b3f4
Add new words to client's suggest.
2020-04-09 10:22:51 +03:00
Alexey Milovidov
110eb599c1
Fix "check style" tool
2020-04-06 02:57:24 +03:00
Ivan
97f2a2213e
Move all folders inside /dbms one level up ( #9974 )
...
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00