Commit Graph

26533 Commits

Author SHA1 Message Date
Alexey Milovidov
09aff52830 Remove too short timeouts from tests (they may lead to false positives) 2020-03-02 01:35:16 +03:00
Alexey Milovidov
9bffd88b92 Using ThreadFuzzer 2020-03-02 00:58:50 +03:00
Alexey Milovidov
999311f53e Chaos sanitizer: development 2020-03-02 00:56:17 +03:00
Alexey Milovidov
49a953b689 Chaos sanitizer: development 2020-03-01 23:50:27 +03:00
Alexey Milovidov
f633bba5ae Chaos sanitizer: development 2020-03-01 23:33:40 +03:00
Alexey Milovidov
5f55199ae8 Merge branch 'chaos-sanitizer' of github.com:yandex/ClickHouse into chaos-sanitizer 2020-03-01 23:21:29 +03:00
Alexey Milovidov
e483bf4fa8 Chaos sanitizer: development 2020-03-01 23:18:26 +03:00
alexey-milovidov
d1524ad884
Merge pull request #9392 from 4ertus2/ast
SyntaxAnalyzer refactoring
2020-03-01 22:50:04 +03:00
alexey-milovidov
c107ed2509
Merge pull request #9457 from ClickHouse/profiler-save-errno
Save errno in signal handlers
2020-03-01 21:45:12 +03:00
Vitaly Baranov
5b4b40f86f
Merge pull request #9447 from vitlibar/shard-clamps-settings-to-constraints
Shard now clamps the settings from the initiator.
2020-03-01 20:33:52 +03:00
Alexey Milovidov
e00767134f Chaos sanitizer: development 2020-03-01 19:07:51 +03:00
Alexey Milovidov
2c6d1eebf2 Chaos sanitizer: development 2020-03-01 19:06:08 +03:00
Alexey Milovidov
7c13b65e41 Save errno in signal handlers 2020-03-01 17:23:43 +03:00
Artem Zuikov
c7b5c903fc try fix generateFilterActions() - row filter on alias column 2020-03-01 16:00:13 +03:00
Vitaly Baranov
fc0376a170 Shard now clamps the settings got from the initiator to the shard's constaints instead of throwing an exception. 2020-03-01 02:18:49 +03:00
Vitaly Baranov
038e520960 Add tests. 2020-03-01 00:27:37 +03:00
Vitaly Baranov
39d9c315d4 Simplify the message about authentication: now the same message is used in all cases of failed authentication. 2020-03-01 00:27:15 +03:00
Vitaly Baranov
0f04ff0749
Merge pull request #9364 from vitlibar/RBAC-6
RBAC-6
2020-03-01 00:19:15 +03:00
Artem Zuikov
380ab37c9b fix transformQueryForExternalDatabase() 2020-02-29 23:27:13 +03:00
Alexey Milovidov
89ba7d5fc1 Avoid message "deadlock avoided" in client 2020-02-29 22:53:22 +03:00
Alexey Milovidov
06d2c82c22 Optimize bit operations on FixedString when one of the arguments is constant #9091 2020-02-29 22:39:18 +03:00
Alexey Milovidov
9c206fca39 Better exception message when length is required in HTTP 2020-02-29 21:27:34 +03:00
alexey-milovidov
2fc799c1c1
Merge pull request #9446 from ClickHouse/akz/preformance_tests_for_logical_functions
Comprehensive performance tests for logical functions
2020-02-29 21:18:49 +03:00
alexey-milovidov
03fc1c80bf
Merge pull request #9451 from CurtizJ/fix-ttl-checksums
Fix mismatched checksums with column TTLs
2020-02-29 20:51:43 +03:00
Vitaly Baranov
bf1a7836c6 Add test for DiskAccessStorage. 2020-02-29 17:33:52 +03:00
Vitaly Baranov
64cf6a0b2b Add diagnostics to help find out why integration tests fail. 2020-02-29 17:33:52 +03:00
CurtizJ
e21971cce4 fix style check 2020-02-29 16:14:19 +03:00
Artem Zuikov
cdb9f456ee try fix tests with asan 2020-02-29 14:45:06 +03:00
CurtizJ
bf9c663b48 add unit test for MergeTreeSetIndex 2020-02-29 01:28:17 +03:00
alexey-milovidov
893c3a6797
Merge pull request #9438 from ClickHouse/fix-use-after-move-for-input-pipe
Fix use-after-move in InterpreterSelectQuery
2020-02-29 00:00:56 +03:00
alexey-milovidov
a9a757dc7c
Merge pull request #9433 from amosbird/cleanbuild
cleaning duplicate linker flags
2020-02-28 23:59:55 +03:00
CurtizJ
9448f4710e fix mismatched checksums with column TTLs 2020-02-28 23:29:10 +03:00
Alexander Kuzmenkov
72d2e56c0a fixup 2020-02-28 22:44:15 +03:00
alexey-milovidov
5335b589f9 Revert "Generic constructor of ColumnVector from initializer list (#9393)"
This reverts commit 6691302e4f.
2020-02-28 22:14:13 +03:00
alesapin
3725e7d217
Merge pull request #9427 from ClickHouse/trying_to_fix_mutations_finalization_one_more_time
Finalize mutations more frequently
2020-02-28 21:56:22 +03:00
alesapin
5dec1f9e8a
Merge pull request #9435 from ClickHouse/fix_alter_modify_settings
Fix stupid bug with settings alter
2020-02-28 21:55:49 +03:00
Alexander Kuzmenkov
35bfb4b89a fixes 2020-02-28 21:49:31 +03:00
Alexander Kuzmenkov
207225bdc6 Merge remote-tracking branch 'origin/master' into HEAD 2020-02-28 21:43:17 +03:00
Alexander Kuzmenkov
187823f941 Faster perf tests -- a good part of #9420 2020-02-28 21:32:15 +03:00
Alexey Milovidov
cf7b4a12f1 Chaos Sanitizer: experiment 2020-02-28 21:12:52 +03:00
Nikita Mikhaylov
56d3cd535d
Merge pull request #9413 from nikitamikhaylov/cache_dict_update_queue_size
CacheDictionaryUpdateQueueSize metric added
2020-02-28 20:29:11 +03:00
Pavel Kovalenko
98cd70ced3 MergeTree for S3 more coverage. 2020-02-28 20:14:55 +03:00
Alexander Kazakov
949908bfb7 Tiny corrections (EOL) 2020-02-28 20:06:19 +03:00
Alexander Kazakov
abd6345481 Enforce single threaded check in existing test for logical functions 2020-02-28 20:05:10 +03:00
Alexander Kuzmenkov
420a709768 Change endless performance tests (4) 2020-02-28 20:02:43 +03:00
Alexander Kuzmenkov
adb6154052 Change endless performance tests (3) 2020-02-28 19:56:34 +03:00
Alexander Kuzmenkov
fa6ff1aa27 Change some endless performance tests (2) 2020-02-28 19:50:13 +03:00
Alexander Kuzmenkov
b0b391d472 Change endless performance tests (1) 2020-02-28 19:29:16 +03:00
Nikolai Kochetov
6a562ea818 Added comment to Chunk.h 2020-02-28 18:47:38 +03:00
Artem Zuikov
b3a930acf3 add JoinedTables class 2020-02-28 18:23:32 +03:00
Nikolai Kochetov
9360163e7b Fix use-after-move. 2020-02-28 18:11:18 +03:00
Vitaly Baranov
0cebefae3e The restart_clickhouse() function in integration tests now waits until the server is restarted. 2020-02-28 16:34:19 +03:00
Vitaly Baranov
91523752ce Use server config to set path to persistent storage for access entities. 2020-02-28 16:34:19 +03:00
Vitaly Baranov
2408c8cf57 Implement persistent storage for access entities. 2020-02-28 16:34:19 +03:00
Vitaly Baranov
2846567bf1 Add function IAccessStorage::canInsert(): now access storage can decide if it can take a new entity. 2020-02-28 16:34:19 +03:00
Vitaly Baranov
b7f0129505 Fix parsing list of roles in commands CREATE USER, CREATE ROW POLICY, CREATE QUOTA. 2020-02-28 16:34:19 +03:00
Vitaly Baranov
71bb3fc46d Add missed locks to MemoryAccessStorage. 2020-02-28 16:34:18 +03:00
Vitaly Baranov
455fad5919 Add attach mode to access-controlling SQL. 2020-02-28 16:34:18 +03:00
Alexander Kazakov
dc4ae6435b ColumnVector::replicate() is even more readily vectorized now 2020-02-28 16:27:01 +03:00
Alexander Kazakov
de85a880ac Minor changes to small tests 2020-02-28 16:12:43 +03:00
Alexander Kazakov
c32b62ae91 Added medium and large tests 2020-02-28 16:12:16 +03:00
Alexander Kuzmenkov
5ce0b62a20 Merge remote-tracking branch 'origin/master' into HEAD 2020-02-28 16:07:41 +03:00
Alexander Kuzmenkov
0b18b703c4 faster 2020-02-28 16:07:09 +03:00
alexey-milovidov
6691302e4f
Generic constructor of ColumnVector from initializer list (#9393)
* Generic constructor of ColumnVector from initializer list #9367

* Fixed build

* Fixed error
2020-02-28 15:57:04 +03:00
alesapin
bbe7ded486 Remove unused error code 2020-02-28 15:49:34 +03:00
alesapin
fc18f82189 Fix stupid bug with settings alter 2020-02-28 15:44:50 +03:00
Artem Zuikov
c4fc8e4d9d make test stable 2020-02-28 15:37:15 +03:00
Nikita Mikhaylov
e06432af60
CacheDictionary datarace on exception_ptr (#9379)
* datarace on exceptionptr fixed

* better

* monkey test added

* comment to test added

* add new line to reference file

* bump tests

* q
2020-02-28 15:34:39 +03:00
Pavel Kovalenko
d91ef06370 Code style and logical issues fix. 2020-02-28 14:54:18 +03:00
Artem Zuikov
d643332490 fix style check error 2020-02-28 14:03:09 +03:00
Amos Bird
615c6bba91
cleaning duplicate linker flags 2020-02-28 18:56:33 +08:00
Artem Zuikov
fdd1f248d0 Merge branch 'master' into ast 2020-02-28 13:54:33 +03:00
Nikita Mikhaylov
aaffe31613 split metric 2020-02-28 13:53:59 +03:00
Artem Zuikov
316a8e231d fix unit tests build 2020-02-28 13:38:46 +03:00
Anton Popov
adf4f7349f
temporary disable tests for compatability between replicas 2020-02-28 13:14:02 +03:00
alesapin
9a03d413aa Fix backward compatibility on server side 2020-02-28 12:58:35 +03:00
alesapin
46c6897ab5 Fix backward compatibility on server side 2020-02-28 12:57:45 +03:00
Yatsishin Ilya
0a25fe71bd more docs 2020-02-28 12:19:11 +03:00
alesapin
1b7bf67e2b Merge branch 'master' into CurtizJ-test-backward-compatability 2020-02-28 12:18:41 +03:00
alesapin
5a5792259c Finalize mutations more frequently 2020-02-28 11:55:17 +03:00
alexey-milovidov
7b511b2d90
Merge pull request #9070 from urykhy/fix-mv-insert-2621
add option to force deduplicate children
2020-02-28 03:19:27 +03:00
alexey-milovidov
b3dfdbc1a0
Merge pull request #9387 from ClickHouse/fix_another_context_related_segfault
Fix Context-related segfault in StorageMerge and destruction order in BlockIO
2020-02-28 03:11:49 +03:00
alexey-milovidov
4a5e79ce3d
Merge pull request #9416 from CurtizJ/benchmark-query-id
Allow to set query_id in clickhouse-benchmark
2020-02-28 03:08:29 +03:00
proller
6b2d6e9392
Build fixes (#9381)
* Revert "Revert "Build fixes""

This reverts commit 355ff00c2e.

* zlib link fix
2020-02-28 03:07:42 +03:00
Nikita Mikhaylov
030a8a4164
Wrong counting of DictCacheKeysRequestedFound metric (#9411)
* first

* bump test
2020-02-28 03:07:00 +03:00
alexey-milovidov
6c0db94e21
Merge pull request #9394 from nikitamikhaylov/last_successful_update_time
last_successful_update_time in system.dictionaries
2020-02-28 03:03:16 +03:00
alexey-milovidov
ae8a701387
Merge pull request #9079 from yurriy/mysql
Send string columns to mysql client as utf8
2020-02-28 02:08:49 +03:00
Yatsishin Ilya
cf9153e9de Merge remote-tracking branch 'origin' into qoega/random-table-function-small 2020-02-27 22:52:24 +03:00
Yatsishin Ilya
4c0f378931 recanonize on linux 2020-02-27 22:49:15 +03:00
Alexander Kuzmenkov
924f3d5a3f Faster cases. 2020-02-27 22:40:22 +03:00
Artem Zuikov
aad6669afb fix gcc9 build 2020-02-27 21:05:49 +03:00
Pavel Kovalenko
8c09902310 Code style issues. 2020-02-27 20:57:49 +03:00
CurtizJ
a17d286e83 allow to set query_id in clickhouse-benchmark 2020-02-27 20:21:01 +03:00
Pavel Kovalenko
44226a61cf Storage MergeTree initial support for S3. 2020-02-27 19:47:40 +03:00
Alexander Tokmakov
8a91081331 fix BlockIO destruction order 2020-02-27 18:40:11 +03:00
Artem Zuikov
68dc399d0d minor changes 2020-02-27 18:06:04 +03:00
Yatsishin Ilya
f1d864a03d add storage test and fix string generator 2020-02-27 18:03:29 +03:00
Artem Zuikov
2c09017a33 place optimizeIf() after scalar subqueries + better getTablesWithColumns() 2020-02-27 17:33:03 +03:00
Vitaly Baranov
217f5a094a Fix build on FreeBSD. 2020-02-27 16:41:17 +03:00
Artem Zuikov
db502ecd74 fix use after move 2020-02-27 16:31:32 +03:00
CurtizJ
f3a22043f3 fix PVS warning 2020-02-27 16:29:37 +03:00
alesapin
fc7ec08f4d
Update DataPartsExchange.cpp 2020-02-27 15:50:10 +03:00
Nikita Mikhaylov
6d583ff66e first 2020-02-27 15:22:23 +03:00
Alexander Kazakov
ad6b6b3de9 Added small tests 2020-02-27 14:40:52 +03:00
Artem Zuikov
bb207da70d fix test 2020-02-27 14:40:22 +03:00
CurtizJ
6cd12d5806 fix comparator in MergeTreeSetIndex 2020-02-27 14:23:55 +03:00
alesapin
e161cc1424 Fix protocol incompatibility introduced in https://github.com/ClickHouse/ClickHouse/pull/8598 2020-02-27 13:43:38 +03:00
alesapin
f09131809f Merge branch 'test-backward-compatability' of https://github.com/CurtizJ/ClickHouse into CurtizJ-test-backward-compatability 2020-02-27 13:41:44 +03:00
alesapin
4818d0508e Fix style check 2020-02-27 13:11:49 +03:00
Nikita Mikhaylov
c5f47bd976 squashed 2020-02-27 13:07:50 +03:00
Clément Rodriguez
491f454b54 MySQL connection mutualize connection + integration test 2020-02-27 10:34:06 +01:00
Artem Zuikov
f65004beec executeScalarSubqueries() for all asts 2020-02-27 01:19:16 +03:00
mergify[bot]
b655190c2d
Merge pull request #9383 from excitoon-favorites/attachpart
Added a check for storage policy in `cloneAndLoadDataPartOnSameDisk()`
2020-02-26 20:29:30 +00:00
CurtizJ
102a61a257 Merge remote-tracking branch 'upstream/master' into test-backward-compatability 2020-02-26 23:11:13 +03:00
alexey-milovidov
25e26f0029
Merge pull request #9370 from ClickHouse/errorcodes-style
Ensure style of ErrorCodes by style check.
2020-02-26 23:10:19 +03:00
CurtizJ
4033fd4118 improve performance of index analyzing with 'IN' 2020-02-26 22:59:43 +03:00
Artem Zuikov
8c90cbbbaa split SyntaxAnalyzer.analyze for selects and others 2020-02-26 22:33:09 +03:00
alexey-milovidov
0584f44a2f
Update MergeTreeData.cpp 2020-02-26 22:22:58 +03:00
Alexey Milovidov
6ced072e29 Added a test 2020-02-26 22:05:02 +03:00
alexey-milovidov
ab0bb7a48e
Merge pull request #9367 from huiwangcs/cow_sof
fix stack overflow issue when using initializer_list
2020-02-26 21:45:01 +03:00
Alexey Milovidov
3e3cafc487 Implement method "structureEquals" for ColumnAggregateFunction 2020-02-26 21:33:16 +03:00
Alexey Milovidov
ea15efc636 Merge branch 'master' of github.com:yandex/ClickHouse into errorcodes-style 2020-02-26 21:15:10 +03:00
Alexey Milovidov
107f31b739 Fixed build 2020-02-26 21:14:48 +03:00
alexey-milovidov
1c3b1fe353
Merge pull request #9384 from qoega/fix-ch-test-sed
fix sed with binary results (sed: RE error: illegal byte sequence)
2020-02-26 20:55:05 +03:00
Alexander Tokmakov
df8a90319a fix another Context-related segfault 2020-02-26 18:59:47 +03:00
Yatsishin Ilya
181dd7dfba add perftest 2020-02-26 18:42:45 +03:00
Yatsishin Ilya
a260928658 better 2020-02-26 17:53:19 +03:00
Vladimir Chebotarev
534b3b91cc Added a check for storage policy in cloneAndLoadDataPartOnSameDisk(). 2020-02-26 17:51:01 +03:00
Yatsishin Ilya
1f3c6edee5 fix sed with binary results (sed: RE error: illegal byte sequence) 2020-02-26 17:45:57 +03:00
Yatsishin Ilya
af9e5ff290 fix sed with binary results (sed: RE error: illegal byte sequence) 2020-02-26 17:42:03 +03:00
Yatsishin Ilya
f96626cea7 fix tests 2020-02-26 17:31:22 +03:00
CurtizJ
802d0796cc test for replicas backward comptability 2020-02-26 17:18:37 +03:00
Alexey Milovidov
d8885cb5d3 Fixed ErrorCodes, part 7 2020-02-26 17:18:30 +03:00
Alexey Milovidov
425ed714eb Merge branch 'master' of github.com:yandex/ClickHouse into errorcodes-style 2020-02-26 17:16:22 +03:00
Alexey Milovidov
d4b633ff2a Fixed ErrorCodes, part 6 2020-02-26 17:14:25 +03:00
Yatsishin Ilya
d2ab30ec48 implement StorageGenerate 2020-02-26 17:12:07 +03:00
alesapin
a01fde251e Merge branch 'master' into alter_on_top_of_mutations 2020-02-26 16:43:50 +03:00
alesapin
81f41d816e Add settings to fix flaps in test 2020-02-26 16:43:31 +03:00
alesapin
ef88484b27 Add option for temporary parts 2020-02-26 16:33:05 +03:00
Artem Zuikov
912ec60e7e
Enable joined_subquery_requires_alias by default (#9274)
enable joined_subquery_requires_alias by default
2020-02-26 16:11:06 +03:00
Nikolai Kochetov
2338f16637
Update README.md 2020-02-26 15:33:06 +03:00
alesapin
bf3d6d2a4d Merge branch 'master' into alter_on_top_of_mutations 2020-02-26 15:21:46 +03:00
alesapin
46e05bfdca Decrease test timeout 2020-02-26 15:08:57 +03:00
alexey-milovidov
d8c692199f
Merge pull request #9365 from ClickHouse/ubsan-index-set
Fixed UBSan report in MergeTreeIndexSet
2020-02-26 13:19:01 +03:00
alesapin
65f5435ed4 Move segfault test to bugs directory 2020-02-26 13:10:40 +03:00
Nikolai Kochetov
edca7d1588
Merge pull request #9371 from ClickHouse/try-fix-hdfs-tests
Fry fix StorageHDFS.
2020-02-26 12:52:06 +03:00
alesapin
ef9f3702c5 Less aggresive test 2020-02-26 12:40:02 +03:00
alesapin
cbd1c97751 Decrease flapping test timeout 2020-02-26 12:31:01 +03:00
alexey-milovidov
93c5062782
Merge pull request #9355 from amosbird/client2
Better cmdline client
2020-02-26 01:11:47 +03:00
Alexey Milovidov
681454175f Fixed ErrorCodes, part 5 2020-02-25 22:05:15 +03:00
Alexey Milovidov
029bcc7cd3 Fixed ErrorCodes, part 4 2020-02-25 21:58:28 +03:00
Nikolai Kochetov
f012ae38e4 Fry fix StorageHDFS. 2020-02-25 21:48:25 +03:00
Amos Bird
ce28d2eb82
Better cmdline client 2020-02-26 02:40:52 +08:00
Alexey Milovidov
7228c48be5 Added missing ErrorCodes, part 4 2020-02-25 21:20:38 +03:00
Alexey Milovidov
8f90c6ec12 Fixed ErrorCodes, part 3 2020-02-25 21:20:08 +03:00
Alexey Milovidov
cb6cd2ffbb Added missing ErrorCodes, part 2 2020-02-25 21:10:48 +03:00
Alexey Milovidov
766ae8261a Added some missing ErrorCodes 2020-02-25 21:02:41 +03:00
Nikolai Kochetov
442ec8a98e
Merge pull request #9356 from ClickHouse/fix-possible-race-in-block-io
Fix possible race in BlockIO.
2020-02-25 19:19:20 +03:00
Hui Wang
7be4e3c89a fix stack overflow issue when using initializer_list 2020-02-25 16:22:35 +01:00
Alexey Milovidov
3602126a1e Remove unused ErrorCodes 2020-02-25 17:35:37 +03:00
alesapin
a9540773a2 Remove useless branch 2020-02-25 17:02:53 +03:00
Alexey Milovidov
757be55238 Added a test from Anton Popov 2020-02-25 17:01:28 +03:00
Alexey Milovidov
88f0be8933 dbms/src/Storages/StorageMergeTree.cpp 2020-02-25 16:57:33 +03:00
alesapin
f54ade41f2 Misused if 2020-02-25 16:48:23 +03:00
alesapin
96a789336f Changes for compact parts 2020-02-25 16:46:45 +03:00
Yatsishin Ilya
7b462e2070 Merge remote-tracking branch 'origin' into qoega/random-table-function-small 2020-02-25 16:28:34 +03:00
alesapin
dc62ce17e6 Fix mutations for polymorphic parts 2020-02-25 16:20:07 +03:00
Alexander Tokmakov
8548089e00 Merge branch 'master' into split_databases_from_context 2020-02-25 15:47:19 +03:00
Nikolai Kochetov
15fdf80dc8 Added test with max_execution_time. 2020-02-25 15:28:06 +03:00
Alexey Milovidov
86c28d9731 Minor modifications 2020-02-25 15:21:11 +03:00
Alexey Milovidov
c7aba07dfe Minor modifications 2020-02-25 15:19:47 +03:00
Alexey Milovidov
4e935c684a Removed strange code from MergeTreeIndexSet 2020-02-25 15:12:16 +03:00
alesapin
f5f55988f8 Fix materialize ttl 2020-02-25 13:50:17 +03:00
hcz
6d44214eaf Add performance tests 2020-02-25 18:10:03 +08:00
Clément Rodriguez
07a970bfd0 Merge remote-tracking branch 'upstream/master' 2020-02-25 11:09:26 +01:00
hcz
a7d10dd0ce Add tests for moduloOrZero 2020-02-25 18:08:20 +08:00
CurtizJ
0a8b0c86cf optimization for one-element tuples at 'in' 2020-02-25 12:59:18 +03:00
CurtizJ
4e5aff70c7 add perf test for index analyzing with set 2020-02-25 12:59:18 +03:00
Nikolai Kochetov
035865895a Fix possible race in BlockIO. 2020-02-25 12:51:20 +03:00
alesapin
cb1b899cd8 Hopefully merged with matser 2020-02-25 12:49:45 +03:00
hcz
88464d18b6 Add function moduloOrZero 2020-02-25 17:46:07 +08:00
hcz
3b8093234c Add DivisionUtils.h 2020-02-25 17:45:23 +08:00
alexey-milovidov
749c41a545
Merge pull request #9348 from filimonov/docker_for_odbc_driver
adjust dockerfile used in tests to allow odbc roundtrip
2020-02-25 12:06:11 +03:00
alesapin
451bace1d5 Merge with master 2020-02-25 11:53:14 +03:00
alexey-milovidov
94b52c0858
Merge pull request #9343 from ClickHouse/every_function_in_own_file_11
Every function in own file, part 11
2020-02-25 09:08:07 +03:00
alexey-milovidov
48238a108a
Merge branch 'master' into patch-0225 2020-02-25 09:07:22 +03:00
hcz
ba35ba01cf Fix intDiv of const divider 2020-02-25 12:58:26 +08:00
filimonov
5a717ce8d9
missed edit 2020-02-25 01:55:00 +01:00
Mikhail Filimonov
80abb99723 adjust dockerfile used in tests to allow odbc roundtrip 2020-02-25 01:51:28 +01:00
Alexey Milovidov
0ebc406a62 Merge branch 'every_function_in_own_file_11' of github.com:yandex/ClickHouse into every_function_in_own_file_11 2020-02-25 01:48:13 +03:00
Alexey Milovidov
4ddb38d587 Fixed error 2020-02-25 01:47:56 +03:00
Alexey Milovidov
a12f6795df Merge branch 'master' of github.com:yandex/ClickHouse into every_function_in_own_file_11 2020-02-25 01:35:52 +03:00
alexey-milovidov
f2cbfb0fc2
Merge pull request #9342 from ClickHouse/improve-performance-reinterpret-as-fixed-string
Improve performance of "reinterpretAsFixedString" function
2020-02-25 01:33:55 +03:00
alexey-milovidov
c51c4c40a2
Merge pull request #9344 from ClickHouse/update-simdjson-2
Update SIMDJSON to master
2020-02-25 01:33:08 +03:00
Alexey Milovidov
455f98cb99 Added test 2020-02-24 21:53:58 +03:00
Alexey Milovidov
cdceae856f Fixed ASan report in extractAll function 2020-02-24 21:52:03 +03:00
Alexey Milovidov
16ae06c8dd Fixed ASan report in extractAll function 2020-02-24 21:49:38 +03:00
alexey-milovidov
13e434500d
Merge pull request #9341 from ClickHouse/another-perf-test-bit-ops-fixed-string
Added another performance test for bit operations on FixedString
2020-02-24 21:25:38 +03:00
Alexey Milovidov
539c15ae32 Added a test 2020-02-24 21:22:01 +03:00
alexey-milovidov
6c9991ae43
Using std::string::starts_with (#9321)
* Using std::string::starts_with

* Fixed error

* Fixed error
2020-02-24 21:11:21 +03:00
Alexey Milovidov
57579f64d7 Every function in its own file, part 11 2020-02-24 20:51:06 +03:00
Alexey Milovidov
fb8e7d42cc Improve performance of "reinterpretAsFixedString" function 2020-02-24 20:28:04 +03:00
Alexey Milovidov
cf9c7f16f0 Added another performance test for bit operations on FixedString #9091 2020-02-24 19:39:44 +03:00
alexey-milovidov
0a75acaeff
Merge pull request #9327 from ClickHouse/restrict-functions-comparison
__restrict in comparison functions
2020-02-24 19:36:30 +03:00
Alexey Milovidov
792f8a29f6 Merge branch 'master' of github.com:yandex/ClickHouse into restrict-functions-comparison 2020-02-24 18:50:08 +03:00
Alexey Milovidov
8e18b9d431 Merge branch 'master' of github.com:yandex/ClickHouse into restrict-functions-arithmetic 2020-02-24 18:49:49 +03:00
Alexey Milovidov
21270b587e Remove unused headers files 2020-02-24 18:11:54 +03:00
Clément Rodriguez
94d3802baa Merge branch 'master' of https://github.com/clemrodriguez/ClickHouse 2020-02-24 15:28:46 +01:00
Clément Rodriguez
a978662a01 Merge remote-tracking branch 'upstream/master' 2020-02-24 15:28:24 +01:00
alexey-milovidov
0a24aff994
Merge pull request #9316 from oandrew/parquet-improvements
Parquet performance improvements
2020-02-24 16:27:28 +03:00
alexey-milovidov
716dc1cd0b
Update ParquetBlockInputFormat.cpp 2020-02-24 16:27:05 +03:00
alexey-milovidov
1e0198aa34
Added performance test for arithmetic functions (#9326)
* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions

* Added fat performance test for arithmetic functions
2020-02-24 16:22:32 +03:00
alexey-milovidov
a4f63929a2
Merge pull request #9328 from amosbird/dumpdebug
add USE_DEBUG_HELPERS flag to enable DUMP
2020-02-24 16:06:37 +03:00
Yuriy
09b746a63e fixed golang test 2020-02-24 15:02:19 +03:00
alexey-milovidov
bf0533eb7d
Merge pull request #9324 from ClickHouse/functions-comparison-remove-garbage
Remove garbage from FunctionsComparison; better build time and less template instantiations
2020-02-24 12:19:10 +03:00
Andrew Onyshchuk
d92490a29c Fix style and tests 2020-02-23 20:02:15 -06:00
Amos Bird
e23b15f78e
add USE_DEBUG_HELPERS flag to enable DUMP 2020-02-24 08:44:38 +08:00
Alexey Milovidov
81602fd249 Added __restrict in FunctionsComparison 2020-02-24 03:12:47 +03:00
alexey-milovidov
1803656b9f
Merge pull request #9322 from ClickHouse/processors-inconsistent-whitespaces
Fixed inconsistent whitespaces in log messages of Processors
2020-02-24 03:09:03 +03:00
Alexey Milovidov
e30064dbfa Added suggestion from Amos Bird 2020-02-24 02:48:38 +03:00
Alexey Milovidov
07d272764d __restrict in arithmetic functions 2020-02-24 02:14:27 +03:00
Alexey Milovidov
7ff3dc0337 Remove garbage from FunctionsComparison; better build time and less template instantiations 2020-02-24 01:46:52 +03:00
Alexey Milovidov
2001bcbf6a Whitespaces 2020-02-24 00:53:16 +03:00
Alexey Milovidov
dbfbc38fe8 Whitespaces 2020-02-24 00:45:31 +03:00
Alexey Milovidov
40ae72b543 Fixed inconsistent whitespaces in log message of Processors 2020-02-24 00:40:57 +03:00
CurtizJ
e5fad6d753 Merge remote-tracking branch 'upstream/master' into alter-ttl 2020-02-23 18:40:42 +03:00
Andrew Onyshchuk
d15ff3e8d5 Parquet improvements
- Read only required columns
- Avoid reading the entire file to RAM when possible
- Allow using internal parquet on darwin
2020-02-23 00:04:58 -06:00
alexey-milovidov
afc306091b
Merge pull request #9262 from ClickHouse/fix_expressions_in_metadata
Fix expressions in metadata
2020-02-23 04:32:55 +03:00
alexey-milovidov
b5e9e922fb
Update test.py 2020-02-23 04:31:12 +03:00
alexey-milovidov
cb89bcae25
Update PushingToViewsBlockOutputStream.cpp 2020-02-23 04:30:53 +03:00
alexey-milovidov
4a0873a93f
Update Settings.h 2020-02-23 04:30:22 +03:00
alexey-milovidov
c9cf1656b9
Merge branch 'master' into fix/ISSUES-8971 2020-02-23 04:16:23 +03:00
Alexey Milovidov
c902b27e25 Whitespaces 2020-02-23 04:04:59 +03:00
alexey-milovidov
d0fea62079
Merge pull request #8290 from CurtizJ/polymorphic-parts
Polymorphic parts (compact format).
2020-02-23 04:01:07 +03:00
Alexey Milovidov
55787391c6 Merge branch 'master' of github.com:yandex/ClickHouse into amosbird-char8_t 2020-02-23 00:30:19 +03:00
Alexey Milovidov
21647ed842 Fixed warning 2020-02-22 23:22:38 +03:00
Alexey Milovidov
6325d7514c Fixed warning 2020-02-22 23:07:22 +03:00
Alexey Milovidov
1ba67b1bb4 Fixed bad code 2020-02-22 22:44:31 +03:00
Alexey Milovidov
4c504ffda3 Fixed errors 2020-02-22 22:35:39 +03:00
Anton Popov
b736029828
Update ErrorCodes.cpp 2020-02-22 22:11:44 +03:00
alexey-milovidov
1950923433
Merge branch 'master' into polymorphic-parts 2020-02-22 20:56:27 +03:00
Alexey Milovidov
9e9cba6eb7 Merge remote-tracking branch 'origin/master' into amosbird-char8_t 2020-02-22 20:49:25 +03:00
alexey-milovidov
5d2bf946ee
Update Types.h 2020-02-22 20:42:00 +03:00
Vitaly Baranov
e026258f42
Update InterpreterSetRoleQuery.h 2020-02-22 19:32:15 +03:00
Alexander Tokmakov
852043c8d9 better configs 2020-02-22 17:26:39 +03:00
Alexander Tokmakov
ac0e2c2256 Merge branch 'master' into fix_expressions_in_metadata 2020-02-22 16:42:45 +03:00
alexey-milovidov
af3e296df5
Merge pull request #9306 from Vxider/build-fix
build fix on GCC 9.2.0
2020-02-22 14:41:34 +03:00
tavplubix
8358c952c3
Merge pull request #9302 from ClickHouse/fix_tests_with_secure_sockets
Try fix tests with secure sockets
2020-02-22 13:32:12 +03:00
Amos Bird
693cf211fa
Build fix 2020-02-22 16:44:23 +08:00
Vxider
ecd72b8478 build fix 2020-02-22 16:11:20 +08:00
Amos Bird
f5d6043a5d
Strict aliasing in c++20 2020-02-22 13:46:35 +08:00
Alexey Milovidov
c3e80485da
More strict aliasing 2020-02-22 10:19:39 +08:00
Alexey Milovidov
52153d15cc
More strict aliasing 2020-02-22 10:19:17 +08:00
Alexey Milovidov
cce1e46b45
More strict aliasing 2020-02-22 10:19:17 +08:00
Alexey Milovidov
ac83a28285
More strict aliasing 2020-02-22 10:17:52 +08:00
Alexey Milovidov
5cf3414b8a
More strict aliasing 2020-02-22 10:17:52 +08:00
Alexey Milovidov
3bf1e6f6c1
More strict aliasing 2020-02-22 10:17:25 +08:00
Alexey Milovidov
d3867ac5fa
More strict aliasing 2020-02-22 10:17:25 +08:00
Alexey Milovidov
e1b3c58746
More strict aliasing 2020-02-22 10:17:24 +08:00
Alexander Tokmakov
21e0eb5f11 try fix tests with secure sockets 2020-02-22 04:37:03 +03:00
Alexander Tokmakov
a13495485f try fix tests with secure sockets 2020-02-22 04:35:28 +03:00
Vitaly Baranov
c1e870d493
Merge pull request #9182 from vitlibar/RBAC-5.2
RBAC-5.2
2020-02-22 03:55:17 +03:00
Alexander Tokmakov
62e14bece0 revert changes in config 2020-02-22 03:45:53 +03:00
Alexander Tokmakov
d6205fa4fa Merge branch 'master' into fix_expressions_in_metadata 2020-02-22 03:17:15 +03:00
alexey-milovidov
66e7965381
Merge pull request #9294 from ClickHouse/colors-in-logs-sent-to-client
Colors in logs sent to client
2020-02-22 02:24:08 +03:00
alexey-milovidov
5cc112e3d3
Merge pull request #9293 from ClickHouse/akz/column_vector_replicate_faster
Made ColumnVector::replicate() implementation 3x faster
2020-02-22 02:23:49 +03:00
alexey-milovidov
55520b9629
Merge pull request #9289 from ClickHouse/fix-9134
Fix 9134
2020-02-22 02:23:00 +03:00
tavplubix
d720db86e5
Merge pull request #9288 from ClickHouse/enable_ssl_in_functional_tests
Enable secure sockets in stateless tests
2020-02-22 00:46:38 +03:00
robot-clickhouse
473e1eac6f Auto version update to [20.3.1.1] [54433] 2020-02-22 00:35:33 +03:00
robot-clickhouse
8646aaa261 Auto version update to [20.2.1.2443] [54432] 2020-02-22 00:35:00 +03:00
alexey-milovidov
67cb5c8fab
Merge pull request #9287 from ClickHouse/reading-the-code-of-alter-move-partition
Reading the code of ALTER MOVE PARTITION
2020-02-22 00:28:43 +03:00
alexey-milovidov
49b46fd897
Merge pull request #9257 from millb/disk_scheme_4
Space check from path/data/ for default disk
2020-02-22 00:27:49 +03:00
alexey-milovidov
716a7e907f
Merge pull request #9275 from 4ertus2/joins
Negative test for partial_merge_join variants
2020-02-22 00:26:05 +03:00
Alexey Milovidov
5f9a56a38a Colorize logs that are send to client with "send_logs_level" setting 2020-02-21 23:01:38 +03:00
alexey-milovidov
baf90fcfa2
Revert "Make SPLIT_SHARED_LIBRARIES=OFF more robust" 2020-02-21 22:52:18 +03:00
Alexander Kazakov
1c86a31431 Faster ColumnVector::replicate() 2020-02-21 22:47:20 +03:00
Alexander Kazakov
2e8dd9d9fc A unit test for ColumnVector::replicate() 2020-02-21 22:46:08 +03:00
Nikolai Kochetov
fddb021951 Added comment. 2020-02-21 22:17:09 +03:00
Nikolai Kochetov
23c5c6f874 Make more deterministic test. 2020-02-21 22:03:45 +03:00
Nikolai Kochetov
82489a4ba2 Added integration test from #9134 2020-02-21 22:01:43 +03:00
Alexander Tokmakov
9415ed821c enable secure sockets in stateless tests 2020-02-21 22:00:32 +03:00
Alexander Tokmakov
29a993a66f remove another method from Context 2020-02-21 20:57:18 +03:00
Nikolai Kochetov
e7d2ff6d7a Added test from #9134. 2020-02-21 20:48:37 +03:00
Alexey Milovidov
0dbd885679 Reading the code of ALTER MOVE PARTITION 2020-02-21 19:57:40 +03:00
Nikolai Kochetov
350881a3da Copy block info in ConvertingBlockInputStream. 2020-02-21 19:57:22 +03:00
CurtizJ
14daa51cec add comments 2020-02-21 19:53:33 +03:00
Alexander Tokmakov
0201b485a7 enable secure ports for tests 2020-02-21 19:07:18 +03:00
Alexey Milovidov
396e9c57d0 Fixed OptimizedRegularExpression in case of empty regexp 2020-02-21 18:55:36 +03:00
Alexander Tokmakov
db669cef63 Merge branch 'master' into fix_expressions_in_metadata 2020-02-21 18:22:52 +03:00
Alexander Tokmakov
d5e79153c2 Merge branch 'master' into split_databases_from_context 2020-02-21 18:09:02 +03:00
alexey-milovidov
ee710dd1f7
Merge pull request #9235 from zhang2014/fix/ISSUES-9230
ISSUES-9230 pushed SelectQueryOption into join expression
2020-02-21 17:55:57 +03:00
alexey-milovidov
1e8389eceb
Merge pull request #8929 from ClickHouse/more-processors-for-storages
More processors for storage::read
2020-02-21 17:39:12 +03:00
alexey-milovidov
abe8315861
Merge pull request #9258 from Jokser/disk-s3-read-write-buffers-refactoring
Disk->writeFile() returns WriteBufferFromFileBase.
2020-02-21 17:28:49 +03:00
alexey-milovidov
bc910d3489
Trigger CI 2020-02-21 17:05:57 +03:00
Alexander Tokmakov
e117e5838e fixes 2020-02-21 16:44:44 +03:00
chertus
759d137162 add negative test for partial_merge_join variants 2020-02-21 16:16:59 +03:00
alesapin
2f6e22b4fd Fix failed integration tests 2020-02-21 11:53:29 +03:00
alesapin
582a9d99c1 Fix failed integration tests 2020-02-21 11:52:59 +03:00
Nikolai Kochetov
30d41b34ba Merged with master 2020-02-21 11:47:56 +03:00
Vitaly Baranov
cf25d225c6 Add tests for roles. 2020-02-21 06:03:09 +03:00
Vitaly Baranov
e017bacc48 Implement SQL queries for creating and controlling roles. 2020-02-21 06:03:09 +03:00
Vitaly Baranov
6671ca67eb Add access type ROLE_ADMIN. 2020-02-21 06:03:09 +03:00
Vitaly Baranov
ae18d443c8 Introduce roles. 2020-02-21 06:03:03 +03:00
Vitaly Baranov
fc8aa5efe7 Separate access-controlling access types. 2020-02-21 03:27:29 +03:00
Vitaly Baranov
543587fc46 Remove ATTACH and DETACH access types, check CREATE and DROP access types instead of them. 2020-02-21 03:27:29 +03:00
Vitaly Baranov
4f85c148b5 Move event handling away from Context. 2020-02-21 03:27:23 +03:00
alexey-milovidov
0f72781b1e
Trigger CI 2020-02-21 02:02:52 +03:00
alexey-milovidov
d1e26f5b35
Merge pull request #9163 from ClickHouse/match-zero-byte-fix
Fixed `match` and `extract` when haystack has zero bytes.
2020-02-21 02:01:50 +03:00
alexey-milovidov
219f94ca97
Merge pull request #9082 from 4ertus2/joins
Switch JOIN algo on the fly
2020-02-21 02:01:23 +03:00
Vitaly Baranov
6cac4a919b Improve behaviour of row policies, now it applies for a table always when defined for that table (even for another user). 2020-02-21 00:57:42 +03:00
Vitaly Baranov
5849dd2236 Slightly better solution for checking row policy for distributed tables,
now it checks both current user's and initial user's filters.
2020-02-21 00:57:42 +03:00
Vitaly Baranov
244c9d5325 Add class GenericRoleSet to represent a set of IDs of users and roles. 2020-02-21 00:57:42 +03:00
Vitaly Baranov
ed2061db8a Better pointers: std::shared_ptr<const QuotaContext> instead of std::shared_ptr<QuotaContext>, boost::atomic_shared_ptr instead of std::atomic_load/store. 2020-02-21 00:57:42 +03:00
Vitaly Baranov
9edea08b6d Improve parsers of access managing SQL. 2020-02-21 00:57:42 +03:00
Alexander Tokmakov
e1f5a620b5 more complex test and some fixes 2020-02-20 23:24:04 +03:00
Alexey Milovidov
2c8a6a2885 Fixed bad code 2020-02-20 22:38:18 +03:00
alesapin
f06bcee7bc Merge with master 2020-02-20 22:36:36 +03:00
chertus
aeefb78157 add comments to JoinSwitcher 2020-02-20 22:13:12 +03:00
Alexey Milovidov
d87e25aeab Merge branch 'master' of github.com:yandex/ClickHouse into match-zero-byte-fix 2020-02-20 21:52:50 +03:00
alexey-milovidov
d4381d7976
Merge pull request #9217 from ClickHouse/fix_mutations_finalization_one_more_time
Fix remove parts from mutations
2020-02-20 21:47:27 +03:00
alexey-milovidov
4433947670
Merge pull request #9227 from ClickHouse/simplier_alter_prepare
Simplier alter prepare
2020-02-20 21:45:27 +03:00
alexey-milovidov
5c097f842f
Merge pull request #9247 from ClickHouse/aku/logical-error-message
Log error message before aborting on LOGICAL_ERROR.
2020-02-20 21:45:01 +03:00
Alexey Milovidov
5894a750d5 Merge branch 'master' into session-cleaner-better-build-time 2020-02-20 21:43:40 +03:00
alexey-milovidov
f4124d3522
Merge pull request #9251 from 4ertus2/ast
Fix bug with comma JOIN and IN
2020-02-20 21:41:08 +03:00
alexey-milovidov
81f52614fd
Merge pull request #9255 from abyss7/log-alias
Don't use refs on vanishing objects
2020-02-20 21:16:32 +03:00
alexey-milovidov
79d194119b
Merge pull request #9254 from ClickHouse/fix-ndebuf-in-pipeline-executor
Fix NDEBUG in PipelineExecutor.
2020-02-20 21:16:11 +03:00
chertus
f683437a8c remove dangerous optimisation 2020-02-20 20:19:16 +03:00
Pavel Kovalenko
e593003be7 Formatting issues. 2020-02-20 19:48:52 +03:00
Pavel Kovalenko
e5b81aefe3 WriteBufferFromFileBase interface refactoring.
Disk->writeFile() returns WriteBufferFromFileBase.
DiskMemory read/write buffers refactoring.
2020-02-20 19:39:32 +03:00
millb
cf53160221 fixed bug 2020-02-20 19:21:28 +03:00
alexey-milovidov
a1193cbbf8
Merge pull request #9128 from Jokser/storage-stripe-log-s3
Storage Stripe Log S3 support.
2020-02-20 19:01:36 +03:00
Ivan Lezhankin
d211b1a482 Don't use refs on vanishing objects 2020-02-20 18:40:23 +03:00
Clément Rodriguez
1f275c965f Rebase with upstream/master 2020-02-20 16:32:05 +01:00
Nikolai Kochetov
9191e5f17f Fix NDEBUG in PipelineExecutor. 2020-02-20 18:26:20 +03:00
Nikolai Kochetov
b4cda92e64 Added test from #9151. 2020-02-20 17:57:50 +03:00
Nikolai Kochetov
cca4d4e296 More comments and remove spaces. 2020-02-20 17:40:58 +03:00
Alexander Tokmakov
c492ee93d9 fold constant expressions in storage engine arguments 2020-02-20 17:13:43 +03:00
chertus
9748f8dcf6 fix bug with comma join and in 2020-02-20 16:33:14 +03:00
Alexey Milovidov
f888c6ac88 Fixed build 2020-02-20 16:21:58 +03:00
alexey-milovidov
5d4a85488e
Merge pull request #9231 from abyss7/log-alias
Get marks from first non-alias column in Log storage
2020-02-20 16:20:21 +03:00
Clément Rodriguez
dd4353311f Merge remote-tracking branch 'upstream/master' 2020-02-20 14:07:37 +01:00
alesapin
0903faf5ca Fix one more test 2020-02-20 16:04:22 +03:00
alesapin
737a650824 Fix one more test 2020-02-20 16:02:58 +03:00
Ivan Lezhankin
ee2cb00aa1 Use getAllPhysical() 2020-02-20 15:46:27 +03:00
CurtizJ
3f7f13ce05 Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-02-20 15:36:55 +03:00
Alexander Kuzmenkov
642e21e8e1 Log error message before aborting on LOGICAL_ERROR. 2020-02-20 15:29:53 +03:00
Nikolai Kochetov
84af9677be Try fix external tables for RemoteBlockInputStream 2020-02-20 14:29:12 +03:00
chertus
56fa3cc1eb correct fallback for PREFER_PARTIAL_MERGE: HashJoin -> MergeJoin instead of HashJoin -> JoinSwitcher 2020-02-20 14:26:00 +03:00
Nikita Mikhaylov
39f2e6b835
Merge pull request #9198 from nikitamikhaylov/copier-refactoring
clustercopier.cpp file splitting
2020-02-20 13:55:31 +03:00
alesapin
a576811c45 Better error codes and exception messages, remove duplicated headers 2020-02-20 13:48:48 +03:00
Yury Stankevich
c998e5f149 force deduplicate children test 2020-02-20 13:07:30 +03:00
Yury Stankevich
1d391e2841 add option to force deduplicate children 2020-02-20 13:06:56 +03:00
alesapin
cbd8b697c4 Better error codes and exception messages, remove duplicated headers 2020-02-20 13:04:15 +03:00
alexey-milovidov
64fe250eff
Merge pull request #9211 from ClickHouse/remove-useless-code-in-compression
Remove useless code
2020-02-20 13:02:20 +03:00
alexey-milovidov
eceabbfc3f
Merge pull request #9221 from nvartolomei/nv/advertise-a-stack-trace-will-follow
Improve stack trace formatting for Poco and std exceptions
2020-02-20 12:59:58 +03:00
alexey-milovidov
63aa168a8c
Merge pull request #9229 from 4ertus2/ast
Fix CROSS to INNER JOIN rewrite with [NOT] LIKE
2020-02-20 12:54:57 +03:00
Alexander Kazakov
5a67c02a5d
In KeyCondition: Fixed execution of inversed predicates for non-strictly monotinic functional index (#9223)
* Tests for functional index

* Fixed execution of inversed predicates in functional index

When non-strictly monotonic functional index is used inverted predicated
may be executed incorrectly, which leads to multiple problems: #8821,
#9034
2020-02-20 12:53:02 +03:00
alesapin
0034674330 Fix tests and small bug 2020-02-20 12:22:42 +03:00
alesapin
5282f8b59c Fix tests and small bug 2020-02-20 12:22:17 +03:00
Nikita Mikhaylov
23ceddebbc codestyle final 2 2020-02-20 12:06:00 +03:00
alesapin
91ac73a007 Add settings to storage in test 2020-02-20 11:50:26 +03:00
alesapin
2561e27ead Add settings to storage in test 2020-02-20 11:50:00 +03:00
zhang2014
130e76d5c0 ISSUES-9230 pushed SelectQueryOption into join expression 2020-02-20 11:15:59 +08:00
CurtizJ
2f30a1350b pass proper time for TTL 2020-02-20 03:24:05 +03:00
nikitamikhaylov
3c1f2b6124 style check final 2020-02-19 23:50:27 +03:00
alesapin
5be878fd02 Fix test 2020-02-19 23:45:50 +03:00
alesapin
e69fd2ac0d Fix test 2020-02-19 23:44:36 +03:00
nikitamikhaylov
6ca0776a61 Merge branch 'master' of github.com:ClickHouse/ClickHouse into copier-refactoring 2020-02-19 23:41:35 +03:00
alexey-milovidov
1f42d03bf8
Update SeekableReadBuffer.h 2020-02-19 22:26:33 +03:00
chertus
3d7959d2e8 fix join_algorithm and partial_merge_join settings check 2020-02-19 22:11:23 +03:00
Alexey Milovidov
a739e42740 Better build time 2020-02-19 21:41:22 +03:00
Ivan Lezhankin
894c451cf0 Get marks from first non-alias column in Log storage 2020-02-19 21:06:18 +03:00
chertus
732c50408a disable crazy push down for test 2020-02-19 20:29:57 +03:00
chertus
fa8f07374b fix CROSS to INNER JOIN rewrite with [NOT] LIKE 2020-02-19 20:22:16 +03:00
CurtizJ
803d9da496 add test for mutations with TTL 2020-02-19 20:18:12 +03:00
Nikolai Kochetov
39916dd01a Remove readWithProcessors from IStorage. 2020-02-19 19:09:31 +03:00
Nikolai Kochetov
a3c4b2e922 Remove readWithProcessors from IStorage. 2020-02-19 19:07:28 +03:00
Nikolai Kochetov
e0c30259fb Remove readWithProcessors from IStorage. 2020-02-19 19:02:37 +03:00
Nikita Mikhaylov
caa4810c5c more codestyle 2020-02-19 18:59:47 +03:00
Nikita Mikhaylov
819a4ad6da codestyle 2020-02-19 18:45:49 +03:00
alesapin
60118b65d5 Better 2020-02-19 18:12:32 +03:00
Nikolai Kochetov
76a21b3364 Use processors for sending external tables. 2020-02-19 18:12:21 +03:00
Nikolai Kochetov
bf18eeda95 Use processors for sending external tables. 2020-02-19 18:09:32 +03:00
alesapin
c4972b3799 Better 2020-02-19 18:07:02 +03:00
Nikita Mikhaylov
24cbd0d6d1 squashed commits 2020-02-19 18:01:08 +03:00
alesapin
1914b1dab7 Add missed headers 2020-02-19 17:58:06 +03:00
CurtizJ
6bc5d988d5 tests for compact parts 2020-02-19 17:55:03 +03:00
Pavel Kovalenko
d4fa60f52d Rename disk_name -> disk. 2020-02-19 17:50:39 +03:00
alesapin
6020f2fd4a Remove redundant function 2020-02-19 17:50:11 +03:00
alesapin
d5b4ddf6d8 Simplier alter modify logic 2020-02-19 17:49:59 +03:00
alesapin
28b2a03b08 First version 2020-02-19 17:49:45 +03:00
alesapin
7a9b96a8f9 Remove redundant function 2020-02-19 17:43:34 +03:00
alesapin
3f29ea0756 Simplier alter modify logic 2020-02-19 17:39:01 +03:00
chertus
9f43fa87c3 make switched flag atomic 2020-02-19 17:23:21 +03:00
Clément Rodriguez
cdd99d7f23 Merge 2020-02-19 15:23:17 +01:00
CurtizJ
23592991e6 comments and refactoring 2020-02-19 17:07:36 +03:00
Nikolai Kochetov
3bfbd26901 Use processors for sending external tables. 2020-02-19 17:00:49 +03:00
Alexey Milovidov
add281dfe3 Enable metric_log by default 2020-02-19 16:39:20 +03:00
Nicolae Vartolomei
811197558c Improve stack trace formatting for Poco and std exceptions
Before:

```
<Error> Application: Caught exception while loading metadata: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Access to file denied: boo0. /home/nv/clickhouse-master-clion/contrib/poco/Foundation/src/Exception.cpp:27: Poco::FileAccessDeniedException::FileAccessDeniedException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xbb598cc in /state/home/nv/clickhouse-builds/clickhouse-master-clion-gcc/dbms/programs/clickhous
```

After:

```
<Error> Application: Caught exception while loading metadata: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Access to file denied: boo, Stack trace (when copying this message, always include the lines below):

0. /home/nv/clickhouse-master-clion/contrib/poco/Foundation/src/Exception.cpp:27: Poco::FileAccessDeniedException::FileAccessDeniedException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xbb5987c in /state/home/nv/clickhouse-builds/clickhouse-master-clion-gcc/dbms/programs/clickhous
```
2020-02-19 13:33:31 +00:00
chertus
1c297412d4 fix test 2020-02-19 16:10:03 +03:00
alesapin
3b4c27b0de Fix remove parts from mutations 2020-02-19 15:55:23 +03:00
alesapin
6f266c94ed Trying to simplify alter commands logic 2020-02-19 15:52:27 +03:00
alesapin
f85efc5522 SLightly more stable test 2020-02-19 15:50:46 +03:00
alesapin
ad51369982 Fix remove of actual_part from mutations 2020-02-19 15:50:11 +03:00
chertus
3348697128 fix storage join 2020-02-19 15:37:56 +03:00
Nikolai Kochetov
75af5414d9 Try fix test_delayed_replica_failover 2020-02-19 15:30:56 +03:00
alesapin
6eda5547a2 Revert redundant change 2020-02-19 15:00:45 +03:00
chertus
48ac7d35ae Merge branch 'master' into joins 2020-02-19 14:21:40 +03:00
chertus
f748427ffd minor fix (remove logic dependent on partial_merge_join setting) 2020-02-19 14:20:35 +03:00
Pavel Kovalenko
d662c1e006 Merge branch 'master' into storage-stripe-log-s3 2020-02-19 13:24:23 +03:00
Nikolai Kochetov
4fa6c86114 Fix StorageHDFS. 2020-02-19 13:22:44 +03:00
Nikolai Kochetov
70a7ddc172 Fix StorageURL 2020-02-19 13:17:49 +03:00
alexey-milovidov
b063dbeaf2
Merge pull request #8598 from excitoon-favorites/passttlsoverhttp
Pass TTL rule info with block to other replicas
2020-02-19 12:09:25 +03:00
alexey-milovidov
c5d5c9c11e
Merge pull request #9192 from nvartolomei/nv/format-version-file-typo
Fix typo in file name when reporting version file duplicates
2020-02-19 11:59:22 +03:00
alexey-milovidov
1c66c2f383
Merge pull request #9201 from CurtizJ/fix-range-reader
Fix mistake introduced in #9050.
2020-02-19 11:58:21 +03:00
alexey-milovidov
ebf4f98a0c
Merge pull request #9210 from Felixoid/profiling_docs
Add description for some profiling events
2020-02-19 11:55:52 +03:00
alexey-milovidov
77f9a358ff
Update ProfileEvents.cpp 2020-02-19 11:55:29 +03:00
alexey-milovidov
e90124dc24
Update ProfileEvents.cpp 2020-02-19 11:54:23 +03:00
Mikhail f. Shiryaev
fdc00e3562
Add description for some profiling events 2020-02-19 09:50:58 +01:00
Alexey Milovidov
b2a52a2d69 Remove useless code #9210 2020-02-19 11:49:26 +03:00
alesapin
c2d53438e1 Less flappy test and more comments 2020-02-19 11:45:09 +03:00
alexey-milovidov
9037a5d29a
Suggestion from Azat 2020-02-19 11:27:57 +03:00
CurtizJ
dea444b69c fix mistake in MergeTreeDataSelectExecutor 2020-02-19 00:00:51 +03:00
alesapin
f4b2be7b32 Remove parts from mutations on replica start 2020-02-18 22:57:48 +03:00
Pavel Kovalenko
ff50a51757 Formatting issues. 2020-02-18 22:13:37 +03:00
CurtizJ
b0f7905567 better TTL calculations with mutations 2020-02-18 22:03:40 +03:00
alesapin
1f4b42a99f Fix bug in initialization 2020-02-18 20:31:49 +03:00
chertus
74a5227ac4 add join_algorithm setting 2020-02-18 20:31:22 +03:00
Nikolai Kochetov
69a38958b4 fix PVS warning. 2020-02-18 19:23:29 +03:00
alesapin
d6f33cf161 More stable add drop test 2020-02-18 17:52:23 +03:00
Pavel Kovalenko
05ceef4ef8 Log family storages disk support via 'SETTINGS' clause. 2020-02-18 17:41:30 +03:00
Nikolai Kochetov
3f55e6a499 Processors support for StorageFromMergeTreeDataPart reading. 2020-02-18 17:24:33 +03:00
chertus
fbecd0c155 use default_max_bytes_in_join in JoinSwitcher if no join limits 2020-02-18 17:19:13 +03:00
Nikolai Kochetov
5d0d2b25e1 Update MergingSortedTransform 2020-02-18 17:15:50 +03:00
Nikolai Kochetov
41851b62e9 Fix TreeExecutorBlockInputStream 2020-02-18 16:29:40 +03:00
Nikolai Kochetov
49926098d3 Update BlockStreamProfileInfo 2020-02-18 16:16:30 +03:00
chertus
f1673e1344 fix JoinSwitcher logic 2020-02-18 15:41:23 +03:00
Pavel Kovalenko
0040ad3289 Fixed includes. 2020-02-18 15:24:20 +03:00
Nicolae Vartolomei
b612cbf7d8 Fix typo in file name when reporting version file duplicates 2020-02-18 11:44:16 +00:00
alesapin
b3fe0b51a1 Merge branch 'master' into alter_on_top_of_mutations 2020-02-18 14:32:12 +03:00
alesapin
db3ea6cca8 Better comments 2020-02-18 14:31:24 +03:00
Nikolai Kochetov
145cb6e12f Update TreeExecutorBlockInputStream. 2020-02-18 13:39:08 +03:00
Nikolai Kochetov
b6b4a87206 Update TreeExecutorBlockInputStream. 2020-02-18 13:37:57 +03:00
alexey-milovidov
9e4b29fe6c
Merge pull request #9156 from azat/SPLIT_SHARED_LIBRARIES-OFF_robust-build
Make SPLIT_SHARED_LIBRARIES=OFF more robust
2020-02-18 12:51:32 +03:00
Pavel Kovalenko
a8cffd55aa Formatting issues. 2020-02-18 12:51:22 +03:00
alexey-milovidov
b688fc5895
Merge pull request #9174 from azat/O_CLOEXEC
[RFC] Set O_CLOEXEC
2020-02-18 12:50:19 +03:00
alesapin
5507610e67 Less flapping test 2020-02-18 12:30:20 +03:00
Nikolai Kochetov
9b8fa9f306 Update TreeExecutor. 2020-02-18 12:05:49 +03:00
Nikolai Kochetov
426a8fd6a2 Update TreeExecutor. 2020-02-18 12:03:17 +03:00
alesapin
62791b8a4b More stable and more verbose tests 2020-02-18 12:02:40 +03:00
CurtizJ
49c80c88ef Merge remote-tracking branch 'upstream/master' into alter-ttl 2020-02-18 10:58:07 +03:00
Nikolai Kochetov
e6a30feed0 Fix build. 2020-02-18 10:53:16 +03:00
Azat Khuzhin
3bccd81752 Use -undefined,dynamic_lookup over --unresolved-symbols=ignore-all on OSX
Since OSX does not have later [1]:

    ld: unknown option: --unresolved-symbols=ignore-all
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

  [1]: https://clickhouse-builds.s3.yandex.net/9156/eb89764d9dd631a9227ad9c36ad7d6f3ac8d0a4e/build_log_611498641_1581938330.txt
2020-02-18 07:09:24 +03:00
Azat Khuzhin
1313ec7d1b Make SPLIT_SHARED_LIBRARIES=OFF more robust
Refs: #6915
Closes: #9006
Fixes: #9005
2020-02-18 07:09:03 +03:00
Pavel Kovalenko
33443c4bea Merge branch 'master' into storage-stripe-log-s3
# Conflicts:
#	dbms/src/Compression/CompressedReadBufferFromFile.h
#	dbms/src/IO/ReadBufferFromFileBase.h
2020-02-18 00:29:09 +03:00
Azat Khuzhin
aa252e48b8 Set O_CLOEXEC
Since clickhouse allows to execute user-specified command (i.e.
for dictionary loading), it is better not to expose them.

But there is something left for now:
- 10 -> socket:[14422712]
- 11 -> socket:[14422714]
- 12 -> anon_inode:[eventpoll]
- 13 -> anon_inode:[eventpoll]
- 14 -> anon_inode:[eventpoll]
- 15 -> socket:[14426310]
- 16 -> anon_inode:[eventpoll]
- 3 -> /proc/2739071/fd
- 6 -> socket:[14422708]
- 9 -> socket:[14422710]

And most of these (eventpoll) went from poco, for which O_CLOEXEC cannot
be passed.
2020-02-18 00:28:11 +03:00
alexey-milovidov
3fcf2d4e78
Merge pull request #9155 from ClickHouse/obfuscator-overgenerate-data
clickhouse-obfuscator: allow to generate more data than was in source
2020-02-17 23:51:57 +03:00
CurtizJ
7022376a2a remove debug prints 2020-02-17 23:45:16 +03:00
CurtizJ
2ff030be35 recalculate TTL expressions during mutations 2020-02-17 23:39:24 +03:00
Pavel Kovalenko
e849654628 Reworked ReadIndirectBuffer for DiskMemory. 2020-02-17 23:08:35 +03:00
Alexander Tokmakov
e6718e199e less Context::getTable() usages 2020-02-17 22:28:25 +03:00
alexey-milovidov
146109fe27
Merge pull request #9161 from abyss7/arcadia
Reorganize layout of repository (part 1)
2020-02-17 21:58:20 +03:00
Alexey Milovidov
a1ccd14032 Fixed error with zero bytes in haystack for constant case #9160 2020-02-17 21:53:59 +03:00
Alexey Milovidov
808e27bf30 Added a test #9160 2020-02-17 21:52:10 +03:00
alesapin
a084ee8edd Fix style 2020-02-17 21:09:04 +03:00
alesapin
38450ccb6e Slightly better code 2020-02-17 21:07:22 +03:00
chertus
a9e743d8bd minor JoinSwitcher optimisation 2020-02-17 20:41:38 +03:00
chertus
5717d48333 better includes 2020-02-17 20:21:03 +03:00
alexey-milovidov
35f1a8ed51
Fixed awful translation 2020-02-17 20:12:22 +03:00
chertus
4a658f4325 swtich HashJoin to MergeJoin if JOIN limit exceeded 2020-02-17 20:08:31 +03:00
Nikolai Kochetov
bdaeafffc1 Processors support for StorageLiveView reading. 2020-02-17 19:37:18 +03:00
Nikolai Kochetov
fbfaac6391 Processors support for StorageLiveView reading. 2020-02-17 19:35:23 +03:00
alesapin
382f6ab720 More comments and slightly better code 2020-02-17 19:33:05 +03:00
Nikolai Kochetov
34d7873524 Processors support for StorageKafka reading. 2020-02-17 19:08:22 +03:00
alesapin
6a02b99faf Slightly refactor merger mutator 2020-02-17 18:44:13 +03:00
Nikolai Kochetov
98b6ad4eff Processors support for StorageXDBC reading. 2020-02-17 18:33:16 +03:00
Nikolai Kochetov
dda0bcb9ba Processors support for StorageXDBC reading. 2020-02-17 18:32:27 +03:00
Nikolai Kochetov
728ece09f1 Processors support for StorageView reading. 2020-02-17 18:27:51 +03:00
Nikolai Kochetov
4cc3eaa9ce Processors support for StorageValues reading. 2020-02-17 18:07:42 +03:00
Nikolai Kochetov
5372942aef Processors support for StorageURL reading. 2020-02-17 18:01:03 +03:00
Pavel Kovalenko
cf474e1f09 Fixed DiskMemory->readFile() test. 2020-02-17 18:00:39 +03:00
Nikolai Kochetov
df76f1fe56 Processors support for StorageTinyLog reading. 2020-02-17 17:45:10 +03:00
Ivan Lezhankin
102dad0ca0 Merge branch 'master' into arcadia 2020-02-17 17:37:10 +03:00
Nikolai Kochetov
9eda64fcf7 Update SelectStreamFactory. 2020-02-17 17:28:44 +03:00
Ivan Lezhankin
39ea079034 More clean-up 2020-02-17 17:27:09 +03:00
Alexander Tokmakov
d710bd1812 better get... methods 2020-02-17 16:52:59 +03:00
alesapin
b59fd72f34 Remove comment 2020-02-17 16:48:59 +03:00
alesapin
55192a652f Less changes 2020-02-17 16:41:53 +03:00
alesapin
7d7fdb389d Remove redundant error code 2020-02-17 16:37:16 +03:00
alesapin
72ed29f1e8 Remove some garbage from code 2020-02-17 16:35:17 +03:00
alesapin
e531e0a0ab Add test with bad alter 2020-02-17 16:20:09 +03:00
alesapin
f1a60b6843 Better names for replicas 2020-02-17 15:51:16 +03:00
alesapin
47c649f6c3 Fix all style warnings 2020-02-17 15:47:34 +03:00
Alexey Milovidov
809b409426 Read the code 2020-02-17 15:44:58 +03:00
alesapin
777dfc774d One more test 2020-02-17 15:42:53 +03:00
Nikolai Kochetov
34e32db810 Fix build. 2020-02-17 14:55:32 +03:00
Nikolai Kochetov
bbdac39d2d Fix build. 2020-02-17 14:50:53 +03:00
alesapin
0a5403185c Add test for parallel detach and fix some bugs. 2020-02-17 14:31:42 +03:00
Nikolai Kochetov
f4d5175a12 Fix build. 2020-02-17 14:26:09 +03:00
Pavel Kovalenko
cceaf69264 Change log_family_disk_memory test number. 2020-02-17 13:51:16 +03:00