Alexander Kuzmenkov
3f305cecc3
add empty line after error messages in client
2021-01-27 22:52:18 +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
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
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
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
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