Commit Graph

1702 Commits

Author SHA1 Message Date
Nikita Mikhaylov
8f1ba521a0
Merge pull request #13624 from nikitamikhaylov/cache-dictionary-bugfix
cache-dictionary flap
2020-08-21 02:24:26 +04:00
alexey-milovidov
6cf1a61735
Merge pull request #13841 from azat/unknown-packet-fix
Unknown packet fix (for Protocol::Server::Log for distributed queries)
2020-08-20 20:25:58 +03:00
Nikita Mikhaylov
540884677e final fix 2020-08-20 17:39:30 +03:00
Nikita Mikhailov
9a7849e1d7 Merge remote-tracking branch 'upstream/master' into cache-dictionary-bugfix 2020-08-20 14:59:48 +03:00
Alexander Tokmakov
f38bf04f62 fix test 2020-08-20 00:32:39 +03:00
Nikolai Kochetov
322cb241b9
Merge pull request #13887 from ClickHouse/fix-fixed-string-partial-sort
Fix fixed string partial sort
2020-08-19 21:41:25 +03:00
alexey-milovidov
b0a171211f
Merge pull request #13881 from ClickHouse/check-ya-make-files
Check that ya.make files are auto-generated
2020-08-19 21:24:20 +03:00
Nikita Mikhaylov
00fde75e2b
Update skip_list.json 2020-08-19 21:06:37 +03:00
Alexander Tokmakov
30e0cd438e fix test 2020-08-19 18:56:26 +03:00
Nikolai Kochetov
25dd0fa4d6
Update 01453_fixsed_string_sort.sql 2020-08-19 15:43:08 +03:00
Nikolai Kochetov
ab37eee653 Added test. 2020-08-19 15:26:48 +03:00
Nikita Mikhaylov
21a50aab30
Merge branch 'master' into cache-dictionary-bugfix 2020-08-19 15:53:23 +04:00
Artem Zuikov
becc186c91
Add support for extended precision integers and decimals (#13097) 2020-08-19 14:52:17 +03:00
tavplubix
3b8ac01ed0
Merge pull request #13756 from ClickHouse/test-drop-database-race
Fix race condition in DROP DATABASE
2020-08-19 13:27:50 +03:00
Alexey Milovidov
425297e9c9 Check that ya.make files are auto-generated 2020-08-19 12:40:28 +03:00
alexey-milovidov
1c40e3ca4e
Merge pull request #13867 from azat/00956_sensitive_data_masking-fix
Fix 00956_sensitive_data_masking flackiness
2020-08-19 12:33:48 +03:00
alexey-milovidov
6d72777b6e
Merge pull request #13868 from ClickHouse/stratify-array-compact-nan
Stratify nans comparison in arrayCompact function
2020-08-19 11:53:58 +03:00
Nikita Mikhaylov
7592865e42
update test and bump ci 2020-08-19 05:51:59 +04:00
alexey-milovidov
23ccb0b6be
Merge pull request #13677 from hagen1778/merge-tree-fail-fast-on-rows-limit
[mergeTree]: fail fast if max_rows_to_read limit exceeded on parts scan
2020-08-18 22:24:39 +03:00
Alexey Milovidov
acf312467e Stratify nans comparison in arrayCompact function 2020-08-18 22:16:53 +03:00
Azat Khuzhin
3ba9e9f6ce Fix 00956_sensitive_data_masking flackiness
00956_sensitive_data_masking is still flacky even after #13748 [1].

    [1]: https://clickhouse-test-reports.s3.yandex.net/10373/348ef1256ea8fb8f61109c33bbdd28daf46bdc8e/functional_stateless_tests_(debug).html#fail1

The problem is that it uses the following pattern:

    clickhouse-client -q ... & # run some query in background
    clickhouse-client -q 'show processlist' > log
    grep background-query log

But there is no guarantee that the query in background will be executed before `show processlist`:

    2020.08.18 02:52:47.916386 [ 26788 ] {98c36d38-f710-4dfb-af8f-61906abc163c} <Debug> executeQuery: (from [::1]:51650) SHOW PROCESSLIST
    ...
    2020.08.18 02:52:47.926854 [ 26756 ] {086c64fa-713b-4f8c-b702-23bfea10a49c} <Debug> executeQuery: (from [::1]:51652) select count() from system.numbers where ignore('find_me_[hidden]')=0 and ignore('fwerkh_that_magic_string_make_me_unique') = 0 FORMAT Null

Fix the test by waiting until the query in backgroud will start, and use
limited numbers + sleepEachRow over system.numbers to reduce CPU usage.
2020-08-18 21:57:53 +03:00
Alexander Tokmakov
e686616756 add exclusive DDLGuard for database 2020-08-18 18:15:27 +03:00
Alexander Kazakov
874fd4d068
A test to challenge a data race in StorageMemory (#13858) 2020-08-18 17:16:59 +03:00
roman
ac72148c3e [tests]: adjust staeless/01064 test max_rows_to_read limits
With default index_granularity=8096 CH always reads at least that number
of rows per selected part, but limit is checked afterwards. The optimization
that interrupts execution of queries based on approx number of rows to read
breaks the test. This means that test case is potetntially contains incorrect
limits.
2020-08-18 13:22:54 +01:00
Azat Khuzhin
ee666448e9 Simplify 01451_dist_logs test 2020-08-17 22:49:10 +03:00
Azat Khuzhin
2e933a94a6 Handle Protocol::Server::Log in the RemoteQueryExecutor::finish()
Even when finish() is called, there can be no EndOfStream sent, so it is
100% correct to handle Log packages there.

W/o fix in RemoteQueryExecutor:

    Code: 100, e.displayText() = DB::Exception: Unknown packet 10 from one of the following replicas: : While executing Remote (version 20.8.1.1) (from [::1]:56960) (in query: select * from remote('127.{2,3}', system.numbers) where number = 10 limit 1; ), Stack trace (when copying this message, always include the lines below):

    0. Common/StackTrace.cpp:291: StackTrace::tryCapture() @ 0x28b80a
    1. Common/StackTrace.cpp:256: StackTrace::StackTrace() @ 0x28b6ab
    2. Common/Exception.cpp:42: DB::Exception::Exception(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int) @ 0x2481ba
    3. Common/Exception.h:28: DB::Exception::Exception<>() @ 0x334d48
    4. DataStreams/RemoteQueryExecutor.cpp:288: DB::RemoteQueryExecutor::finish() @ 0x330314
    5. Processors/Sources/RemoteSource.cpp:46: DB::RemoteSource::generate() @ 0x6fce5
2020-08-17 21:55:09 +03:00
Alexey Milovidov
ba4c42abfe Support UUID aliases in normalizeQuery 2020-08-17 21:17:20 +03:00
alexey-milovidov
abf3cb8746
Merge pull request #13816 from ClickHouse/normalize-query
Add function "normalizeQuery"
2020-08-17 16:23:24 +03:00
Vitaly Baranov
695c2aafba
Merge pull request #13425 from vitlibar/user-directories
user_directories in the main config
2020-08-17 15:49:24 +03:00
Azat Khuzhin
dfa6caa4da Fix 01356_initialize_aggregation in unbundled build (change topKWeighted order) 2020-08-17 00:36:57 +03:00
Alexey Milovidov
9cd2ddb646 Add normalizedQueryHash function with tests 2020-08-16 22:38:56 +03:00
Azat Khuzhin
0eac96972c Fix topK/topKWeighted merge (wtih non-default parameters) 2020-08-16 22:32:56 +03:00
Alexey Milovidov
6a55ec0390 Add test 2020-08-16 22:23:03 +03:00
Vitaly Baranov
ad03ff3887 Rename storages users.xml=>users_xml, disk=>local_directory. 2020-08-16 16:42:57 +03:00
Alexey Milovidov
bbb10bacf9 Suppress Shellcheck 2020-08-16 15:23:41 +03:00
alexey-milovidov
f3755fecb7
Merge pull request #13793 from amosbird/fnc
Fix set index with const column pred
2020-08-16 15:18:31 +03:00
Amos Bird
ae2c50e9e8
Fix set index with const column pred 2020-08-16 15:16:37 +08:00
alexey-milovidov
0d8fecc37d
Merge pull request #13760 from ClickHouse/fix-flaky-test-4
Make a test slightly more reliable
2020-08-16 10:13:51 +03:00
alexey-milovidov
ec882e3424
Merge pull request #13770 from ClickHouse/fix-flaky-test-5
Fix flaky mutations test
2020-08-16 10:13:31 +03:00
alexey-milovidov
3db28c0b3e
Merge pull request #13777 from ClickHouse/fix-flaky-test-6
Fix error in test 01079_parallel_alter_detach_table_zookeeper
2020-08-16 10:13:10 +03:00
alexey-milovidov
4acfa00b1b
Merge pull request #13785 from ClickHouse/fix-flaky-test-8
Fix topK test
2020-08-16 09:51:59 +03:00
Azat Khuzhin
e9d373b5b7 Fix step overflow in range() 2020-08-16 00:26:47 +03:00
alexey-milovidov
79bde24da6
Merge pull request #13778 from ClickHouse/fix-flaky-test-7
Keep "metadata_loading" test only for release build
2020-08-15 21:01:23 +03:00
Alexey Milovidov
0217de37b9 Fix topK test 2020-08-15 20:55:49 +03:00
alexey-milovidov
521ab806aa
Merge pull request #13754 from ClickHouse/fix-flaky-test-2
Fix flaky test 00988_constraints_replication_zookeeper
2020-08-15 19:30:01 +03:00
alexey-milovidov
82a6c0a4b6
Merge pull request #13752 from ClickHouse/h3kRing-fix
Range check for h3KRing
2020-08-15 19:28:52 +03:00
Alexey Milovidov
3a213eb785 Keep "metadata_loading" test only for release build 2020-08-15 18:16:27 +03:00
Alexey Milovidov
1f1685d696 Fix error in test 2020-08-15 17:55:08 +03:00
Alexey Milovidov
eb548c08b7 Fix flaky mutations test 2020-08-15 17:35:31 +03:00
Alexey Milovidov
5b3fa69d69 Make a test slightly more reliable 2020-08-15 16:26:56 +03:00