Commit Graph

5718 Commits

Author SHA1 Message Date
Nikolai Kochetov
35a3bdc1a6 Added test. 2021-01-13 15:42:30 +03:00
Nikolai Kochetov
e2a2ab6f67 Add tests from #15889 2021-01-13 13:34:58 +03:00
alesapin
c97469773d
Merge pull request #18969 from ClickHouse/fix_drop_part_deduplication
Fix DROP PART query break deduplication
2021-01-13 11:50:26 +03:00
alesapin
07431a6494
Merge pull request #18980 from ClickHouse/fix-expressions-merge
Fix expressions merge
2021-01-13 11:16:01 +03:00
alesapin
7650968b1e
Fix flaky test 2021-01-13 10:19:43 +03:00
alesapin
73e536a074
Merge pull request #18928 from ClickHouse/more_checks_in_writer_wide
More checks in merge tree writer wide
2021-01-13 09:59:45 +03:00
alesapin
c12abcd481
Merge pull request #18970 from ClickHouse/fix_01459_manual_write_to_replicas_quorum
Fix rarely flaky test 01459_manual_write_to_replicas_quorum
2021-01-13 09:59:17 +03:00
Alexey Milovidov
d58a8c98aa More tests
(cherry picked from commit 235541a532)
2021-01-13 00:50:07 +03:00
Alexey Milovidov
7516f1460f Add a test for ANY JOIN and PREWHERE
(cherry picked from commit 92c5cfe243)
2021-01-13 00:49:49 +03:00
Alexey Milovidov
a6296912f3 Fix incomplete code 2021-01-12 22:58:54 +03:00
Alexey Milovidov
a5e14e9442 Add a test 2021-01-12 22:53:58 +03:00
Nikolai Kochetov
c79aa13fa9 Added test. 2021-01-12 22:13:06 +03:00
alesapin
21d3bd525a Add config for integration tests msan 2021-01-12 17:11:57 +03:00
alesapin
56d0f10231 Remove hashes because they are not important 2021-01-12 15:08:13 +03:00
alesapin
e4639aea55 Fix rarely flaky test 01459_manual_write_to_replicas_quorum 2021-01-12 14:53:33 +03:00
alesapin
c02a937c53 Better test 2021-01-12 14:02:49 +03:00
alesapin
e43193c6bd Add test 2021-01-12 13:57:35 +03:00
sundy-li
ad01534bd5 Merge branch 'master' into alias_column_partition_prune 2021-01-12 18:28:30 +08:00
alexey-milovidov
2c71b997de
Merge pull request #18464 from hexiaoting/dev_fp_as_pk
Disallow floating point as partition key
2021-01-12 13:08:41 +03:00
sundy-li
e6351cf966 Add UInt64 Support for bitmapTransform/bitmapSubsetInRange/bitmapSubsetLimit 2021-01-12 17:13:43 +08:00
alesapin
f3e55183ad Better test and check 2021-01-12 11:46:31 +03:00
tavplubix
1d6bfe8ad7
Merge pull request #18944 from ClickHouse/fix_mutation_commands_escaping
Fix mutations text serialization
2021-01-12 11:29:24 +03:00
sundy-li
9c3c1d13ab Add bitmapContains support for all UInt types 2021-01-12 14:52:31 +08:00
fastio
b43bd4d900 test 2021-01-12 12:54:59 +08:00
alexey-milovidov
c4094a8cab
Merge pull request #18624 from abyss7/antlr-test
Add ANTLR tests check
2021-01-11 23:27:07 +03:00
alexey-milovidov
f8473222c6
Merge pull request #18897 from azat/stress-tests-no-restart-replicas
Drop RESTART REPLICAS from stateless tests to avoid locking lots of mutexes
2021-01-11 18:53:01 +03:00
alesapin
b1c4e5b9f2 Fix mutations text escaping 2021-01-11 17:43:05 +03:00
tavplubix
00d240853d
Merge pull request #18718 from zhang2014/fix/ISSUES-7690
ISSUES-7690 try fix nullable string type convert to decimal type
2021-01-11 16:18:56 +03:00
tavplubix
213c653ef8
Merge pull request #17656 from bharatnc/ncb/ddl-worker-queue-table
add  system.distributed_ddl_queue table
2021-01-11 14:59:26 +03:00
Anton Popov
91dc347ff3 add some comments 2021-01-11 14:36:31 +03:00
alexey-milovidov
667dd0cf0c
Merge pull request #18912 from sundy-li/bitmapOrCardinality-nullfix
Fix bitmapOrCardinality using wrong variable
2021-01-11 14:28:46 +03:00
Anton Popov
36ae0e4d35 Merge remote-tracking branch 'upstream/master' into HEAD 2021-01-11 13:51:12 +03:00
Nikolai Kochetov
ee094ed7fd
Merge pull request #18896 from amosbird/keyconditionalias
correct index analysis of WITH aliases
2021-01-11 11:13:28 +03:00
hexiaoting
9e0389085b Adjust exsiting test case. 2021-01-11 14:52:23 +08:00
Azat Khuzhin
22c07e7342 Update test_check_table expectations
Since now CompressedReadBufferBase read checksum and header at once it
will expect 25 (16+9) bytes not 16 (only checksum)
2021-01-11 08:05:56 +03:00
feng lv
5f962015ca fix
fix style

fix build
2021-01-11 04:28:22 +00:00
sundy-li
9aa7c7ef09 Fix same bug in another function 2021-01-11 11:35:56 +08:00
sundy-li
4865439130 Empty line after sql 2021-01-11 11:35:56 +08:00
sundy-li
893efab7c3 Fix AggregateFunctionGroupBitmapData bitmapOrCardinality using wrong variable 2021-01-11 11:35:56 +08:00
Ivan Lezhankin
ab6371fbf5 More tests into skip-list 2021-01-10 22:07:23 +03:00
Azat Khuzhin
f09a53103f Add a test for corruption during distributed send 2021-01-10 18:17:14 +03:00
alexey-milovidov
f7e7725b8e
Merge pull request #18884 from fuwhu/feature/fix-windowFunnel-inconsistency
fix the inconsistent result of windowFunnel in case of same timestamp for different events
2021-01-10 14:56:58 +03:00
alexey-milovidov
95ac01ab82
Merge pull request #18893 from ClickHouse/fix-clickhouse-local
Fix hang at shutdown in clickhouse-local
2021-01-10 13:26:44 +03:00
alexey-milovidov
1921494bc9
Merge pull request #18864 from azat/dist-fsync
Add fsync support for Distributed engine.
2021-01-10 13:16:13 +03:00
Amos Bird
44758935df
correct index analysis of WITH aliases 2021-01-10 17:40:47 +08:00
Azat Khuzhin
ff16f68116 Add a smoke test for SYSTEM RESTART REPLICAS 2021-01-10 12:40:41 +03:00
Azat Khuzhin
30741232d2 Drop RESTART REPLICAS from stateless tests to avoid locking lots of mutexes
Under TSan you can lock only not more then 64 mutexes from one thread at
once [1] [2], while RESTART REPLICAS can acquire more (it depends on the
number of replicated tables).

  [1]: https://github.com/google/sanitizers/issues/950#issuecomment-386711603
  [2]: b02eab9058/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector.h (L67)

And since stress tests run tests in parallel, you can have more then 64
ReplicatedMergeTree tables at once (even though it is unlikely).

Fix this by using RESTART REPLICA table over RESTART REPLICAS.
2021-01-10 12:39:27 +03:00
kssenii
fc9de76f7d Fix incorrect getCreateTableQueryImpl with multidim arrays 2021-01-10 09:00:35 +00:00
feng lv
09d71029c2 Merge branch 'master' of github.com:ClickHouse/ClickHouse into insert-cluster 2021-01-10 03:47:14 +00:00
Alexey Milovidov
79a38c4c6e Fix hang at shutdown in clickhouse-local 2021-01-10 06:35:05 +03:00
Alexey Milovidov
0421cc8dc2 Remove TestFlows due to timeouts 2021-01-10 03:49:29 +03:00
HuFuwang
d0378395c5 add tests 01646_fix_window_funnel_inconistency. 2021-01-10 07:49:11 +08:00
kssenii
0088d66d59 Hopefully better array conversions for insert query 2021-01-09 22:42:42 +00:00
alexey-milovidov
fe1c153c6f
Merge pull request #18817 from ucasFL/wf
replace PODArray with PODArrayWithStackMemory in AggregateFunctionWindowFunnelData
2021-01-10 00:11:57 +03:00
Ivan Lezhankin
321f65a649 Merge remote-tracking branch 'upstream/master' into antlr-test 2021-01-09 19:38:09 +03:00
feng lv
94e1bc05d2 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-09 16:07:52 +00:00
Azat Khuzhin
471deab63a Rename fsync_tmp_directory to fsync_directories for Distributed engine 2021-01-09 17:51:30 +03:00
Azat Khuzhin
9cdb1d4ae6 Simple coverage of fsync_after_insert/fsync_tmp_directory with batching 2021-01-09 16:31:52 +03:00
nautaa
33996d41f5 add test cases reference 2021-01-09 19:15:09 +08:00
nautaa
8359289283 add unicode decode 2021-01-09 19:08:19 +08:00
feng lv
378b10863e fix conflict 2021-01-09 09:07:20 +00:00
Azat Khuzhin
b5ace27014 Add fsync support for Distributed engine.
Two new settings (by analogy with MergeTree family) has been added:

- `fsync_after_insert` - Do fsync for every inserted. Will decreases
  performance of inserts.

- `fsync_tmp_directory` - Do fsync for temporary directory (that is used
  for async INSERT only) after all part operations (writes, renames,
  etc.).

Refs: #17380 (p1)
2021-01-09 11:31:32 +03:00
alexey-milovidov
b60a37afc7
Merge pull request #18870 from azat/storage-features
Storage features improvements
2021-01-09 10:57:45 +03:00
feng lv
8ab2832324 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-09 02:36:25 +00:00
alexey-milovidov
9049599e36
Update optimize_window_funnel.xml 2021-01-09 05:15:40 +03:00
Azat Khuzhin
a24be01025 Drop Kafka storage from 01645_system_table_engines for fasttest 2021-01-09 00:59:03 +03:00
alexey-milovidov
6dcb887eed
Merge pull request #18857 from amosbird/fixmaxpartitionremotesetting
Correctly override default settings remotely
2021-01-08 22:25:43 +03:00
feng lv
04c07d59bf add performance test 2021-01-08 15:43:49 +00:00
Azat Khuzhin
c312676368 Add a smoke test for system.table_engines 2021-01-08 14:57:24 +03:00
sundy-li
5dbda5d627 Update tests 2021-01-08 16:18:12 +08:00
alexey-milovidov
a1fdb6c761
Merge pull request #18790 from vzakaznikov/investigate_and_fix_ldap_tests
TestFlows: fixes to LDAP tests that fail due to slow test execution
2021-01-08 07:36:45 +03:00
Amos Bird
a3d19fa64d
Correctly override default settings remotely 2021-01-08 12:28:09 +08:00
alexey-milovidov
7e52b0c964
Merge pull request #18789 from amosbird/onclusteraltersettings
Apply alter settings on cluster to all replicas
2021-01-08 07:27:13 +03:00
alexey-milovidov
45f53bacfa
Merge pull request #18845 from azat/fsync-fixes
Fix never worked fsync_part_directory/fsync_after_insert/in_memory_parts_insert_sync
2021-01-08 07:26:24 +03:00
Vitaliy Zakaznikov
4f0068bdde Fixing inproper usage of And step. 2021-01-07 18:42:54 -05:00
Alexey Milovidov
ffa5bbd5fd Add SYSTEM SUSPEND command #15979 2021-01-07 22:19:33 +03:00
bharatnc
24d67082a9 few more changes and simplification to integration test 2021-01-07 11:10:41 -08:00
bharatnc
57126d1901 Add values column and fix tests 2021-01-07 11:10:41 -08:00
bharatnc
f6d33c49bb DDLWorkerQueueTable - fix integration test 2021-01-07 11:10:41 -08:00
bharatnc
b008c49bd9 DDlWorkerQueueTable - add integration test 2021-01-07 11:10:40 -08:00
Alexey Milovidov
8e0c3c8a42 Merge branch 'master' into amosbird-onclusteraltersettings 2021-01-07 21:42:13 +03:00
Azat Khuzhin
798fb4e842 Smoke coverage of various fsync capabilities 2021-01-07 19:30:25 +03:00
Alexey Milovidov
afb4cc8d3a Merge branch 'master' of github.com:yandex/ClickHouse into kssenii-pg2ch 2021-01-07 18:40:12 +03:00
Alexey Milovidov
159891573f Merge branch 'master' into kssenii-pg2ch 2021-01-07 18:39:44 +03:00
alexey-milovidov
a08db94343
Revert "Add metrics for part number in MergeTree in ClickHouse" 2021-01-07 16:40:52 +03:00
alexey-milovidov
f91626e7ff
Merge pull request #17838 from weeds085490/dev/add_metrics_for_parts
Add metrics for part number in MergeTree in ClickHouse
2021-01-07 15:27:04 +03:00
alexey-milovidov
0f28473ec1
Merge pull request #18808 from ClickHouse/lld-build-id
Generate build id when ClickHouse is linked with lld
2021-01-07 15:26:26 +03:00
alexey-milovidov
b73722e587
Merge pull request #18806 from azat/If-combinator-Nullable-fix
Fix *If combinator with unary function and Nullable types
2021-01-07 15:25:54 +03:00
feng lv
1a47cf8611 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-07 10:26:28 +00:00
alexey-milovidov
65b4008d1f
Update 01600_count_of_parts_metrics.sh 2021-01-07 06:36:00 +03:00
Amos Bird
63f0348291
Fix test 2021-01-07 11:31:23 +08:00
Alexey Milovidov
6f75901ffb Update test 2021-01-07 04:09:18 +03:00
Azat Khuzhin
fdcfacda60 Fix *If combinator with Nullable types
sumIf(Nullable()) and similar unary functions (unary w/o If combinator)
was working incorrectly, since it returns "sum" from the getName()
helper, and so distributed query processing fails.

The problem is in the optimization in
AggregateFunctionIfNullUnary::add() for the unary functions. It pass
only one column to write result to, instead of all passed arguments +
result columns.
While AggregateFunctionIf::add() assumes that it accepts arguments  +
result columns, and use last column as a result.

Introduced-in: #16610
Fixes: #18210
2021-01-07 03:09:13 +03:00
alexey-milovidov
72b142a00a
Merge branch 'master' into pg2ch 2021-01-06 23:18:59 +03:00
Azat Khuzhin
6261d4135c Add sanity checks for Sim/Min hash arguments
Fixes: #18799
Fixes: #18524
2021-01-06 22:38:05 +03:00
alexey-milovidov
13e4579052
Merge pull request #18712 from amosbird/limitpartition
add max_partitions_to_read setting
2021-01-06 21:29:58 +03:00
alexey-milovidov
c944035f0b
Merge pull request #18699 from amosbird/exceptregex
column excepts with regex
2021-01-06 21:28:09 +03:00
alexey-milovidov
f84426ebef
Merge pull request #18771 from den-crane/tests/simple_aggregate_funcs2
more tests for simple aggregate functions in summingMT aggregatingMT try2
2021-01-06 21:26:06 +03:00
alexey-milovidov
49f70b3b5f
Merge pull request #18763 from azat/marks-corruption-test
Add a regression test for marks corruption
2021-01-06 21:20:55 +03:00
Alexey Milovidov
8ab40d2747 Newline 2021-01-06 21:06:34 +03:00
jianmei zhang
4950377fbf code changes according to reviewer's comments 2021-01-06 21:05:45 +03:00
jianmei zhang
2256227361 SQL compatibility: provide POSITION(needle IN haystack) syntax. 2021-01-06 21:05:45 +03:00
alexey-milovidov
417e685830
Merge pull request #18775 from ClickHouse/dont-insert-empty-blocks-distributed-sync
Do not insert empty blocks on sync Distributed INSERT
2021-01-06 20:06:35 +03:00
Vitaliy Zakaznikov
38bc0f8348 Updating verification cooldown performance and valid verification cooldown value ldap unavailable
tests to fix fails due to timing issues caused by slow test executions.
2021-01-06 08:16:01 -05:00
Amos Bird
a32f6dcf1b
Apply alter settings on cluster to all replicas 2021-01-06 20:08:46 +08:00
weeds085490
b2e4c0ee71 refine test 2021-01-06 19:29:51 +08:00
weeds085490
5f5b86b485 Merge remote-tracking branch 'origin' into dev/add_metrics_for_parts 2021-01-06 17:32:45 +08:00
Amos Bird
0260953a47
better 2021-01-06 17:18:48 +08:00
feng lv
beab4f98da Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-06 06:10:09 +00:00
Alexey Milovidov
438f0f971b Fix the issue with async Distributed INSERTs and network_compression_method #18741 2021-01-06 03:24:42 +03:00
Alexey Milovidov
d77dfeaafb Arcadia does not support distributed tables 2021-01-06 03:06:19 +03:00
Alexey Milovidov
7547aee66a Add a test 2021-01-06 03:05:45 +03:00
alexey-milovidov
d68fdd8798
Update 01640_marks_corruption_regression.sql 2021-01-06 02:05:02 +03:00
Ivan Lezhankin
077ba6a333 Merge remote-tracking branch 'upstream/master' into antlr-test 2021-01-06 00:10:21 +03:00
Denis Zhuravlev
d23409da50 more tests for simple aggregate functions in summingMT aggregatingMT 2021-01-05 16:25:35 -04:00
Alexey Milovidov
f8313a33aa Add test for some possible ambiguities in syntax 2021-01-05 23:10:10 +03:00
alexey-milovidov
202d1f2211
Merge pull request #18760 from spongedu/fix_#18701
[For #18707] MySQL compatibility: support DIV and MOD operators
2021-01-05 20:42:58 +03:00
alexey-milovidov
06143d73ca
Merge pull request #15260 from ClickHouse/revert-15259-revert-14962-log-avoid-deadlock
Avoid deadlocks in Log/TinyLog (part 2)
2021-01-05 20:12:17 +03:00
alexey-milovidov
66550d36a3
Merge pull request #18757 from ClickHouse/testflows-disable-flaky-test
Mark some TestFlows as flaky
2021-01-05 20:00:03 +03:00
alexey-milovidov
2d1afa5dad
Merge pull request #18753 from ClickHouse/null-fuzz
Add a test from #15641
2021-01-05 19:58:57 +03:00
alexey-milovidov
06225f7910
Merge pull request #18749 from ClickHouse/uuid-fuzz
Don't allow conversion between UUID and numeric types
2021-01-05 19:57:33 +03:00
alexey-milovidov
2e98f6f4ee
Merge pull request #18745 from ClickHouse/dont-throw-from-parser
Do not throw from Parser
2021-01-05 19:57:17 +03:00
nautaa
ec8e3f2409 add decode numeric entities 2021-01-05 21:08:36 +08:00
Azat Khuzhin
6c50f537a0 Add a regression test for marks corruption
In #17120 (that was reverted in #17918 already) marks adjustemnt was
introduced, but it may lead to corruption of marks files, that may cause
two things:
1) Incorrect marks files, which lead to reading more rows than there are
   (can be reproduced with `max_threads`>1 or/and `PREWHERE`, and
    `optimize_move_to_prewhere`)
2) Can't adjust last granule because it has X rows, but try to subtract Y
   rows (#9260)

And 1) is pretty hard to diagnosis, since it does not throw any error,
it just may return wrong result.

Fortunately both problems can be fixed with `OPTIMIZE TABLE ... [ FINAL]`.

Cc: @alesapin
Refs: #17943
Refs: #18223
2021-01-05 15:41:54 +03:00
feng lv
421feb8cf9 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-05 07:47:11 +00:00
nautaa
2acecb010f Merge branch 'master' of https://github.com/ClickHouse/ClickHouse 2021-01-05 14:12:36 +08:00
feng lv
3ca5cf18a4 remove throw exception
fix
2021-01-05 06:03:57 +00:00
spongedc
99335563d1 [For #18707] MySQL compatibility: support DIV and MOD operators 2021-01-05 13:03:19 +08:00
Alexey Milovidov
38b3d28443 Mark another flaky test 2021-01-05 06:26:53 +03:00
Alexey Milovidov
0b65605c34 Mark some TestFlows as flaky 2021-01-05 05:30:24 +03:00
Alexey Milovidov
cbc54e2dd7 Merge branch 'master' into revert-15259-revert-14962-log-avoid-deadlock 2021-01-05 04:27:32 +03:00
Alexey Milovidov
a1ce6c4165 Fix errors 2021-01-05 04:26:29 +03:00
Alexey Milovidov
ab6798addd One more test 2021-01-05 04:03:38 +03:00
Alexey Milovidov
c2c1d97da2 Arcadia does not support distributed queries 2021-01-05 03:59:09 +03:00
Alexey Milovidov
f6dff13db8 Add a test for #14974 2021-01-05 03:56:56 +03:00
Alexey Milovidov
21467cf97a Added a test from #15641 2021-01-05 03:44:14 +03:00
Alexey Milovidov
06405531a1 Update tests 2021-01-05 02:58:16 +03:00
Alexey Milovidov
3bbdacc66b Update test 2021-01-05 01:35:54 +03:00
Alexey Milovidov
039edbb724 Don't allow conversion between UUID and numeric types 2021-01-05 01:33:59 +03:00
Alexey Milovidov
36ad289cdb Merge branch 'master' into summap-check 2021-01-04 21:15:37 +03:00
feng lv
c70ab6a18a fix
fix
2021-01-04 15:47:04 +00:00
Alexey Milovidov
21cb0f21ad Moved "max_result_rows" test to bugs 2021-01-04 17:52:23 +03:00
feng lv
7a04724b3c add select all syntax 2021-01-04 14:23:17 +00:00
Alexey Milovidov
c07bff15aa Merge branch 'master' into summap-check 2021-01-04 17:11:48 +03:00
alexey-milovidov
750a391716
Merge pull request #18708 from ClickHouse/limit-fuzz
Added a test for #13477
2021-01-04 16:45:36 +03:00
alexey-milovidov
c0a1d6b9b0
Merge pull request #18704 from ClickHouse/enable-more-tests
Enable more tests and see what will happen
2021-01-04 16:42:53 +03:00
alexey-milovidov
0b56bec69c
Merge pull request #15162 from 4ertus2/joins
Fix crash in not equi join on
2021-01-04 16:37:16 +03:00
alexey-milovidov
5332b0327c
Merge pull request #18702 from ClickHouse/fix-fuzz-test-msan
Add a test for already fixed issue
2021-01-04 16:35:41 +03:00
zhang2014
84ddff92f2 ISSUES-7690 try fix nullable string type convert to decimal type 2021-01-04 20:40:33 +08:00
Amos Bird
a157a5b3b3
add max_partitions_to_read setting 2021-01-04 12:40:48 +08:00