Commit Graph

25068 Commits

Author SHA1 Message Date
alesapin
55c47106d4
Merge pull request #8456 from ClickHouse/refactor_alter_addition
Refactor alter addition
2019-12-30 17:50:34 +03:00
Nikolai Kochetov
1284d2eb4e Try enable affinity 2019-12-30 15:26:14 +03:00
Alexander Tokmakov
250f170a69 Merge branch 'master' into table_name_in_istorage 2019-12-30 14:08:09 +03:00
alexey-milovidov
458f596e18
Merge pull request #8455 from amosbird/perfformat
Perf test format io without disk
2019-12-30 02:45:52 +03:00
Alexey Milovidov
8741c99677 Added threshold for linear search 2019-12-30 01:40:05 +03:00
Alexey Milovidov
434746d7c6 Improved performance of function roundDown 2019-12-30 01:00:15 +03:00
Nikolai Kochetov
40b0784528 Inline in sort cursor. 2019-12-30 00:07:20 +03:00
Nikolai Kochetov
84072fe977 Try disable affinity. 2019-12-29 23:09:11 +03:00
Alexey Milovidov
612b37b320 Minor addition to previous revision 2019-12-29 22:36:02 +03:00
Alexey Milovidov
9a2b781f4d Fixed performance degradation of "boundingRatio" aggregate function 2019-12-29 22:30:08 +03:00
Alexey Milovidov
0ef507b2e2 Fixed performance degradation in argMin/argMax 2019-12-29 22:08:10 +03:00
Amos Bird
84c7589c9a
whitelist /dev/null in StorageFile 2019-12-30 02:37:55 +08:00
Alexey Milovidov
966f46cfab Added a test from andrea-s 2019-12-29 19:52:22 +03:00
Vitaly Baranov
1fa64a2a86 Use separate variables for the database and name in dictionaries. 2019-12-29 23:48:10 +07:00
Alexey Milovidov
53826d6050 Updated tests 2019-12-29 19:42:07 +03:00
alesapin
e95fbecf03 Lock structure by default for generic alter implementation 2019-12-29 19:34:32 +03:00
alexey-milovidov
1b47aec9b5
Merge branch 'master' into enable_use_minimalistic_part_header_in_zookeeper 2019-12-29 19:30:34 +03:00
Alexey Milovidov
fc8a0a1f12 Improvement 2019-12-29 17:34:23 +03:00
Alexey Milovidov
68ef7a6e4b Added comment 2019-12-29 17:32:46 +03:00
Alexey Milovidov
4ca3720a5a Fixed error in performance test 2019-12-29 16:46:49 +03:00
Mikhail Nacharov
d6cd202860 refs #8443 fix logging 2019-12-29 18:08:33 +05:00
alexey-milovidov
4b4efa3b0b
Merge pull request #8451 from ClickHouse/BayoNet-feature/randomASKII-function
Merging #8401
2019-12-29 15:25:18 +03:00
alesapin
44370467f0 More comments 2019-12-29 14:25:26 +03:00
alesapin
247906a4d7 Move check alter to alter interpreter 2019-12-29 14:09:10 +03:00
alesapin
9ee7807f45 Remove redundant file 2019-12-29 14:04:42 +03:00
Nikolai Kochetov
d3060f42e0 Remove commented code. 2019-12-29 10:30:26 +03:00
Alexey Milovidov
1b96ba5e10 Fixed error 2019-12-29 05:26:51 +03:00
Alexey Milovidov
88bb7b48bf Merge branch 'master' of github.com:yandex/ClickHouse into BayoNet-feature/randomASKII-function 2019-12-29 04:15:23 +03:00
Alexey Milovidov
7e1aa3da4a Fixed issue with rebuild time 2019-12-29 04:14:21 +03:00
Alexey Milovidov
84a08ff1ba Fixed possible overflow 2019-12-29 04:12:19 +03:00
Alexey Milovidov
49cfe326e3 Fixed build after merge 2019-12-29 04:08:12 +03:00
alexey-milovidov
15c67f0a0e
Merge branch 'master' into refactor_databases 2019-12-29 03:52:07 +03:00
Alexey Milovidov
d42b50456f Merging randomPrintableASCII #8401 2019-12-29 02:11:02 +03:00
Ruslan
af2b17fbcb add tests and fix build 2019-12-29 01:08:18 +03:00
Alexey Milovidov
4faf2f5485 Merge branch 'feature/randomASKII-function' of https://github.com/BayoNet/ClickHouse into BayoNet-feature/randomASKII-function 2019-12-29 00:14:18 +03:00
alexey-milovidov
6830d7fa2d
Merge pull request #8440 from excitoon-favorites/bettercheckforpartsonanotherdisks
Improved check for parts on different disks
2019-12-29 00:10:47 +03:00
Alexey Milovidov
f4f2ed7a30 Fixed errors: checking the number of arguments; managing of state #8326 2019-12-28 23:54:50 +03:00
proller
76890058b6 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-28 23:54:38 +03:00
Alexey Milovidov
4f05295402 Merge branch 'kononencheg/runningAccumulate' of https://github.com/kononencheg/ClickHouse into kononencheg-kononencheg/runningAccumulate 2019-12-28 23:18:58 +03:00
alexey-milovidov
b9c7ecfa97
Merge pull request #8439 from ClickHouse/refactor_alter
[WIP] Refactor alter
2019-12-28 23:11:51 +03:00
Amos Bird
bbc736f2d9
c++20! 2019-12-29 03:08:25 +08:00
Nikolai Kochetov
755cd1bea2 Disable logging in processors pipeline. 2019-12-28 21:42:07 +03:00
alexey-milovidov
95b43aa5ec
Merge pull request #8446 from ClickHouse/agg-throw
Added aggregate function `aggThrow`
2019-12-28 18:30:10 +03:00
Alexey Milovidov
24cc10177a Fixed another bug found by Amos Bird 2019-12-28 18:29:07 +03:00
proller
a4c8d29c96 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-28 15:12:17 +03:00
alesapin
10312a1d88 Merge with master 2019-12-28 12:56:14 +03:00
alesapin
9c42801c94 Fix stupid bug 2019-12-28 12:21:09 +03:00
Vladimir Chebotarev
1ad0c92873 Fixed logic error introduced in previous commit. 2019-12-28 10:30:12 +03:00
Alexey Milovidov
75f3075405 Updated exception message 2019-12-28 08:16:02 +03:00
Alexey Milovidov
0ec3f37921 Fixed error in "arrayReduce" aggregate function 2019-12-28 08:13:23 +03:00
Alexey Milovidov
56ec171fc0 Better check 2019-12-28 08:08:22 +03:00
Alexey Milovidov
608d8e854d Allow any number of arguments 2019-12-28 07:30:46 +03:00
Alexey Milovidov
78402ade07 Simplification 2019-12-28 07:26:55 +03:00
Alexey Milovidov
579137486b Added aggregate function aggThrow 2019-12-28 07:23:08 +03:00
alexey-milovidov
9d651526ca
Merge pull request #8343 from Felixoid/inherit_multiple_profiles
Inherit multiple profiles
2019-12-28 06:53:54 +03:00
alexey-milovidov
9d26920983
Update Settings.cpp 2019-12-28 06:52:47 +03:00
alexey-milovidov
9f7b56e926
Update SettingsConstraints.cpp 2019-12-28 06:52:21 +03:00
alexey-milovidov
1d21286209
Merge pull request #8318 from excitoon-favorites/replicatedalterttl
Fixed ALTER TTL for replicated tables
2019-12-28 06:49:42 +03:00
proller
f4d2195329 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-28 03:18:44 +03:00
Alexey Milovidov
3b6181afd5 Switched back to TurboBase64 2019-12-28 03:18:08 +03:00
Sergey Kononenko
d7b030dbff Fix bad solution 2019-12-28 02:33:37 +03:00
Alexey Milovidov
b04586ef55 Merge remote-tracking branch 'origin/master' into base64-update 2019-12-28 02:27:32 +03:00
Sergey Kononenko
0616b35ac8 Fix style 2019-12-28 01:54:01 +03:00
Sergey Kononenko
96302d4949 Prevent aggregation function destroy repeat 2019-12-28 01:52:03 +03:00
alexey-milovidov
9e8c3acffc
Merge pull request #8442 from ClickHouse/ddlworker-trash
Removed trash from DDLWorker
2019-12-28 01:27:53 +03:00
Sergey Kononenko
50f3861358 Check arguments count 2019-12-27 23:55:42 +03:00
alesapin
c48f892e13 Merge with master 2019-12-27 23:12:54 +03:00
alesapin
fef681acfe Fix style 2019-12-27 23:10:30 +03:00
Alexey Milovidov
2b04fccde7 Removed obsolete setting 2019-12-27 22:48:31 +03:00
alexey-milovidov
d989604d33
Merge pull request #8242 from achimbab/bugfix_bloomfilter
Fixed two bugs in the bloom_filter index.
2019-12-27 22:46:54 +03:00
Ruslan
bd01bdad97 git is hard(( 2019-12-27 22:45:41 +03:00
Vladimir Chebotarev
04a9e0b615 Fixed typos. 2019-12-27 22:44:54 +03:00
Ruslan
8ff8e8e7f5 trying to fix git 2019-12-27 22:42:14 +03:00
Alexander Tokmakov
94931f059d minor improvements 2019-12-27 22:30:22 +03:00
Alexey Milovidov
eb04f0ea84 Removed trash from DDLWorker 2019-12-27 22:30:13 +03:00
Ruslan
0fbbdbab24 working on git fix 2019-12-27 22:25:01 +03:00
alesapin
5334103690 More usage of StorageInMemoryMetadata 2019-12-27 22:04:30 +03:00
Nikolai Kochetov
05fe9ef179 Add sort improvement to processors. 2019-12-27 21:59:50 +03:00
Vladimir Chebotarev
3c2ddc5a81 Improved check for parts on different disks. 2019-12-27 21:58:59 +03:00
Ruslan
a7f2f8bb61 codestyle fix, bug fix 2019-12-27 21:52:18 +03:00
Ruslan
366171a959 Merge branch 'master' of github.com:yandex/ClickHouse 2019-12-27 21:37:53 +03:00
Alexey Milovidov
b17048f07a Remove sleep by Azat suggestion, https://github.com/ClickHouse/ClickHouse/pull/8288#pullrequestreview-336615781 2019-12-27 21:24:22 +03:00
Alexey Milovidov
f394692728 Updated tests 2019-12-27 21:22:08 +03:00
Alexey Milovidov
cb3a5b26f7 Merge branch 'master' into enable-experimental-indices-and-make-settings-obsolete 2019-12-27 21:12:30 +03:00
proller
7fd8452d56 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-27 20:57:47 +03:00
Mikhail f. Shiryaev
06fb37dd42
Add tests and documentation for settings and constraints order 2019-12-27 18:15:55 +01:00
alexey-milovidov
1c28fccd9a
Merge pull request #8428 from amosbird/trivialbuildfix
trivial build fix
2019-12-27 20:09:28 +03:00
alesapin
2d40b33120 More usage of metadata 2019-12-27 19:34:50 +03:00
Nikolai Kochetov
11ee56213d
Merge pull request #8433 from ClickHouse/fix-sorting-aggregated-transform
Fix SortingAggregatedTransform.
2019-12-27 19:28:37 +03:00
proller
5be338b1e8 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-27 18:29:38 +03:00
alesapin
fcf3552750 Better changes 2019-12-27 18:07:53 +03:00
alesapin
d610bb215a Remove cerr 2019-12-27 18:05:23 +03:00
alesapin
166c1da6c9 Removed redundat changes 2019-12-27 18:03:49 +03:00
alesapin
7ad59edf8f Slightly more comments 2019-12-27 18:01:41 +03:00
alesapin
6916ac08c2 Rename fields 2019-12-27 17:46:11 +03:00
alesapin
716648bfa4 Something working 2019-12-27 17:36:59 +03:00
Ivan Lezhankin
212a3234c1 Support Ctrl+C like shell does. 2019-12-27 16:17:36 +03:00
Ivan Lezhankin
bf22e12e4e Initial replacement readline → replxx 2019-12-27 16:17:36 +03:00
Ivan Lezhankin
1268cddc61 Temporary build fix 2019-12-27 16:17:36 +03:00
Alexander Tokmakov
a2a155dcbd Merge branch 'master' into table_name_in_istorage 2019-12-27 15:47:29 +03:00
Nikolai Kochetov
2398dc954c Fix SortingAggregatedTransform. 2019-12-27 15:46:39 +03:00
chertus
3e13157994 better engine Join tests 2019-12-27 15:41:55 +03:00
Alexander Tokmakov
8987b027ba fixes 2019-12-27 15:18:49 +03:00
proller
0f46f6d74e Merge remote-tracking branch 'upstream/master' into fix27 2019-12-27 14:52:19 +03:00
Nikolai Kochetov
330676737a Disable quota . 2019-12-27 13:59:43 +03:00
Alexander Burmak
9df9983641 Added fileName and parentPath utility functions 2019-12-27 13:42:30 +03:00
Alexander Burmak
f13f4c1617 Fixed merge issues 2019-12-27 12:49:23 +03:00
alesapin
ccb4ad450c Merge branch 'master' into refactor_alter 2019-12-27 12:07:20 +03:00
Alexander Burmak
170bcf041a Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs_log 2019-12-27 09:55:54 +03:00
Amos Bird
5570431a04
trivial 2019-12-27 13:51:52 +08:00
Amos Bird
a61a62e0b2
fix 2019-12-27 13:51:28 +08:00
Amos Bird
b4578c4be0
build fix 2019-12-27 11:41:11 +08:00
Amos Bird
1b52b8cbd5
groupArraySample 2019-12-27 11:41:11 +08:00
Vitaly Baranov
b75771be61
Merge pull request #7808 from vitlibar/RBAC-3
RBAC-3
2019-12-27 09:44:24 +07:00
alexey-milovidov
d021d5e0ec
Merge pull request #8419 from apbodrov/url_fix
[ISSUE-8157] incorrect parsing of file extension in URL
2019-12-27 02:25:39 +03:00
Mikhail f. Shiryaev
e0f43e99e2
Add tests for multiple profiles inheritance 2019-12-26 23:18:59 +01:00
Mikhail f. Shiryaev
a940a25684
Add a way to set multiple parent profiles 2019-12-26 23:18:21 +01:00
alexey-milovidov
d2e5827307
Merge pull request #8410 from excitoon-favorites/ttlcheckvaliddeestination
Added check for valid destination in a move TTL rule
2019-12-27 00:29:55 +03:00
alexey-milovidov
a16d0068dc
Merge pull request #8421 from maxulan/arrow_flatc_cleanup
Arrow flatc cleanup
2019-12-27 00:28:43 +03:00
alexey-milovidov
2934c09796
Merge pull request #8424 from ClickHouse/arg-min-max-simplification
Simplification of "use arena" property of min/max/any/argMin... aggregate functions
2019-12-27 00:28:27 +03:00
Alexander Kuzmenkov
fd3889b817 [wip] perf comparison: docker + some tweaks 2019-12-26 23:51:53 +03:00
Vladimir Chebotarev
77944584fc Fixed replicated alters of TTLs. 2019-12-26 22:34:15 +03:00
Vladimir Chebotarev
cff368c1d1 Updated test_alter_multiple_ttls. 2019-12-26 22:34:15 +03:00
Vladimir Chebotarev
7ed19c2a2d Added test for ALTER TTL.
Co-authored-by: Vitaliy Zakaznikov <vzakaznikov@protonmail.com>
2019-12-26 22:34:08 +03:00
alexey-milovidov
89eeaa50e9
Merge branch 'master' into enable-experimental-indices-and-make-settings-obsolete 2019-12-26 22:16:50 +03:00
alexey-milovidov
1adc3cfb88
Merge pull request #8118 from excitoon-favorites/scan_all_disks
Check extra parts of `MergeTree` at different disks, in order to not allow to miss data parts at undefined disks
2019-12-26 22:10:53 +03:00
alexey-milovidov
938100dbe2
Update MergeTreeData.cpp 2019-12-26 22:10:04 +03:00
alexey-milovidov
6b997a0c61
Merge pull request #8288 from PerformanceVision/reload_dictionary
Implement ON CLUSTER syntax when we want to reload a dictionary
2019-12-26 22:05:41 +03:00
Alexey Milovidov
b77ac978d1 Changed the code from bad to normal #8341 #5311 2019-12-26 21:54:37 +03:00
Alexey Milovidov
fa1ef74fdb Simplification, part 1 #8341 2019-12-26 21:46:08 +03:00
alexey-milovidov
ef8b28b74b
Merge pull request #8341 from 769344359/fix_8325
Fix 8325
2019-12-26 21:24:53 +03:00
Nikolai Kochetov
0034afdf10 Better task queue for PipelineExecutor. 2019-12-26 21:23:31 +03:00
alexey-milovidov
98ff26d78e
Update HelpersMinMaxAny.h 2019-12-26 21:22:47 +03:00
proller
08a6f33511 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-26 18:21:04 +00:00
alesapin
d341b648d2 Better alter 2019-12-26 21:17:05 +03:00
Alexander Tokmakov
42296cc80a remove separate getTableName() and getDatabaseName() 2019-12-26 21:11:49 +03:00
Alexander Tokmakov
ef129b4b7c use StorageID in views 2019-12-26 20:59:47 +03:00
Artem Zuikov
c8c4a3595b
Merge pull request #8415 from 4ertus2/some
Add test for storage join in view
2019-12-26 20:32:56 +03:00
Alexander Tokmakov
9319863a59 refactor table dependencies 2019-12-26 20:23:24 +03:00
alexey-milovidov
dd87b49203
Merge pull request #8370 from zhang2014/keep_alias_type_name
Keep alias type name to metadata
2019-12-26 20:08:34 +03:00
alexey-milovidov
1e7123083b
Update DataTypesDecimal.h 2019-12-26 20:06:01 +03:00
Alexander Tokmakov
2e5d61cd81 better constructors of storages 2019-12-26 20:04:08 +03:00
Nikolai Kochetov
5a5d15c095 Enable quota for more processors. 2019-12-26 19:52:15 +03:00
Andrei Bodrov
1516a252ee one line 2019-12-26 19:51:17 +03:00
alexey-milovidov
4dda687114
Merge pull request #8407 from excitoon-favorites/testalterttl
Added `test_ttl_move::test_ttls_do_not_work_after_alter` test
2019-12-26 19:48:47 +03:00
Alexander Burmak
682b72551f Fixed merge issues 2019-12-26 19:38:10 +03:00
Nikolai Kochetov
bb19e22bd7 Add threads quota for processors. 2019-12-26 19:34:08 +03:00
alexey-milovidov
7183c3a7b0
Update CompressionCodecDoubleDelta.cpp 2019-12-26 19:25:19 +03:00
alexey-milovidov
f7e87f18a4
Update CompressionCodecDoubleDelta.cpp 2019-12-26 19:24:07 +03:00
Alexander Tokmakov
cf5c998b30 refactor storage name 2019-12-26 19:23:38 +03:00
Nikolai Kochetov
9d9ab833b7 Add threads quota for processors. 2019-12-26 19:15:31 +03:00
Maxim Ulanovskiy
32995e3ad5 cosmetic doc fixes 2019-12-26 18:59:38 +03:00
chertus
8d60988e79 add test for storage join in view 2019-12-26 18:56:33 +03:00
Nikolai Kochetov
9417f672b0 Enable processors by default. 2019-12-26 18:51:25 +03:00
Artem Zuikov
b282cbcc91
Merge pull request #8400 from 4ertus2/joins
New ANY JOIN + SEMI, ANTI JOIN for StorageJoin
2019-12-26 18:35:50 +03:00
proller
b96d3509df Merge remote-tracking branch 'upstream/master' into fix27 2019-12-26 15:18:53 +00:00
Alexander Tokmakov
abcc7d30b9 fix 2019-12-26 18:17:54 +03:00
Vladimir Chebotarev
64b2b18d5b Added a check for bad disk/volume as a destination of move TTL expression. 2019-12-26 18:04:55 +03:00
Vladimir Chebotarev
187d72d78d Improved test_ttl_move::test_rule_with_invalid_destination. 2019-12-26 18:04:51 +03:00
alexey-milovidov
cd95ece0ed
Merge pull request #8349 from Enmk/codecs_perf_tests
Perf tests for all supported codecs against Float64 and UInt64.
2019-12-26 17:54:36 +03:00
Nikolai Kochetov
fbbab2486f Update pipelineExecutor 2019-12-26 17:47:48 +03:00
alexey-milovidov
f70632b95b
Merge pull request #8413 from achulkov2/shutted-down-storages-fix
Fix incorrect past tense in log
2019-12-26 17:38:59 +03:00
alexey-milovidov
db96e1deb6
Merge pull request #8375 from Enmk/toDateTime64_type_check_fix
Fixed type check in toDateTime64
2019-12-26 17:35:47 +03:00
alexey-milovidov
af3c52d5fc
Merge pull request #8334 from maxulan/parquet_list_reading_fix
Parquet list reading fix
2019-12-26 17:33:30 +03:00
Alexander Burmak
3f1832355f Added WriteMode enumeration 2019-12-26 17:28:22 +03:00
Nikolai Kochetov
3b2d6a66d1 Update pipelineExecutor 2019-12-26 17:23:34 +03:00
achulkov2
f691143593 Fix incorrect past tense in log 2019-12-26 17:09:36 +03:00
Alexander Burmak
764b506fd5 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs_log 2019-12-26 17:03:32 +03:00
proller
c8301b69cc Merge remote-tracking branch 'upstream/master' into fix27 2019-12-26 16:59:34 +03:00
Nikolai Kochetov
a5a8372713 Update pipelineExecutor 2019-12-26 15:58:09 +03:00
Alexander Tokmakov
50200e245b Merge branch 'master' into refactor_databases 2019-12-26 15:00:07 +03:00
alesapin
6f28e69e97
Merge pull request #8345 from azat/fix-flaky-test--Buffer_and_max_memory_usage
Fix buffer overcommit and 01019_Buffer_and_max_memory_usage flakiness
2019-12-26 13:21:47 +03:00
alexey-milovidov
3dd0e16a11
Merge pull request #8403 from ClickHouse/base64-update-2
Fixed TSan report in base64 library.
2019-12-26 13:15:22 +03:00
alexey-milovidov
c1d86809b5
Merge pull request #8404 from ClickHouse/compression-codec-fix
Fixed potential buffer overrun in decompress
2019-12-26 13:08:45 +03:00
alesapin
093d56f474
Merge pull request #8382 from ClickHouse/relative_paths_in_storages
Use relative paths in Storages
2019-12-26 13:05:37 +03:00
Nikolai Kochetov
3ccd33eeb8
Merge pull request #8362 from ClickHouse/processors-4.5
Affinity for processors pipeline. Fix integration tests.
2019-12-26 12:14:32 +03:00
Nikolai Kochetov
348b13af8c Disable processors by default. 2019-12-26 12:13:14 +03:00
Sergei Shtykov
4b81715ad8 Fix. 2019-12-26 12:02:20 +03:00
Vladimir Chebotarev
1236c8a09a Added test_ttl_move::test_rule_with_invalid_destination test. 2019-12-26 11:42:19 +03:00
Vladimir Chebotarev
a9c4127c9d Added test_ttl_move::test_ttls_do_not_work_after_alter test. 2019-12-26 09:57:27 +03:00
zhang2014
1db716088c Keep alias type name to metadata 2019-12-26 13:49:18 +08:00
Vasily Nemkov
9f08dbacff Fixed style 2019-12-26 07:32:15 +03:00
Vasily Nemkov
d480cfba7e DD decoding: LUT for write spec when reading from BinReader 2019-12-26 06:56:11 +03:00
Alexey Milovidov
7833ee3973 One more check 2019-12-26 06:07:38 +03:00
Alexey Milovidov
056b2fe1dd Added test 2019-12-26 05:54:23 +03:00
Alexey Milovidov
0b894cf000 Merge branch 'master' into compression-codec-fix 2019-12-26 05:37:18 +03:00
Alexey Milovidov
51685f35e8 Fixed TSan report in base64 library 2019-12-26 04:42:51 +03:00
alexey-milovidov
a6bac3a60a
Merge pull request #8395 from ClickHouse/aku/log-to-console
Make log_to_console.xml log to stderr always.
2019-12-26 02:31:27 +03:00
Vladimir Chebotarev
c4e9784464 Fixed skipping parts algorithm while checking parts on other disks. 2019-12-26 01:12:17 +03:00
Vasily Nemkov
33b422d8cc Argument validation fixes
* Fixed crash when converting nullptr char pointer to std::string
* Updatedexepected error code for toDateTime64
2019-12-26 00:07:53 +03:00
Vladimir Chebotarev
91b67af54f Better cleaning up in test_multiple_disks::test_freeze. 2019-12-25 23:32:15 +03:00
Vladimir Chebotarev
ab5171f403 Fixed tests. 2019-12-25 23:32:15 +03:00
Vladimir Chebotarev
29068663ea Fixed build. 2019-12-25 23:32:15 +03:00
Vladimir Chebotarev
80056551ce Check extra parts of MergeTree at different disks, in order to not allow to miss data parts at undefined disks. 2019-12-25 23:32:15 +03:00
proller
b449ccb955 fix 2019-12-25 20:22:01 +00:00
Alexey Milovidov
063682ef9c Changed one base64 library to another 2019-12-25 22:44:00 +03:00
Nikolai Kochetov
438ea5bc22
Remove context from formats (#8388)
* Remove Context from formats.
2019-12-25 22:17:41 +03:00
alesapin
fe6a63a12a
Merge pull request #8361 from ClickHouse/immutable_parts
More correct alters for non replicated MergeTree
2019-12-25 22:08:20 +03:00
Nikolai Kochetov
5b2847fb90 Fix mysql_protocol integration tests. 2019-12-25 21:46:37 +03:00
tavplubix
982da98e60
Update InterpreterDropQuery.cpp 2019-12-25 20:36:13 +03:00
chertus
4fd7340416 New ANY JOIN for StorageJoin + SEMI, ANTI 2019-12-25 20:32:55 +03:00
Sergei Shtykov
a2b2aa950a Pre-PR edits. 2019-12-25 20:26:40 +03:00
Alexander Tokmakov
f2d98731ae remove getCreate from Context 2019-12-25 19:33:26 +03:00
Alexander Tokmakov
01de226df0 abstract path to table data 2019-12-25 19:18:08 +03:00
Vasily Nemkov
6f877abfb6 Merge branch 'toDateTime64_type_check_fix' of github.com:Enmk/ClickHouse into toDateTime64_type_check_fix 2019-12-25 17:58:10 +03:00
Vasily Nemkov
9947324d9f Fixed failing tests
* Throwing with ErrorCodes::ILLEGAL_COLUMN (44) when column validation fails
 * added ignored optional argument to toDate() function to preserve compatibility
 * fixed toUnixTimestamp

Other minor fixes:
 * Better documentation on FunctionArgumentDescriptor and validateFunctionArgumentTypes
 * Fixed typos in validateFunctionArgumentTypes
 * FunctionArgumentDescriptor::expected_type_description can now be null to avoid confusing type names in case of generic functions.
2019-12-25 17:50:13 +03:00
Alexander Tokmakov
7ab471ef5e merge similar functions 2019-12-25 16:58:15 +03:00
Alexander Tokmakov
7c48396689 refactor databases: inherit from DatabaseOnDisk 2019-12-25 16:23:38 +03:00
alexey-milovidov
8d1165ed92
Merge pull request #8387 from ClickHouse/stack-trace-physical-addresses
Show physical addresses in stack traces
2019-12-25 16:02:41 +03:00
Alexander Tokmakov
86e55e34d6 refactor databases: add DatabaseWithDictionaries 2019-12-25 15:39:28 +03:00
alesapin
3b6e3db0c2 Remove redundant alter_lock, because parts cannot be altered concurrently. 2019-12-25 15:34:04 +03:00
Alexander Tokmakov
73203a4b6b refactor IDatabase 2019-12-25 15:20:16 +03:00
Alexander Kuzmenkov
e3cb9043ab log_to_console.xml should log to console.
Confusingly, it doesn't specify 'logger.console' now.
2019-12-25 14:01:58 +03:00
alesapin
d4987f86d3 Merge branch 'master' into immutable_parts 2019-12-25 11:44:47 +03:00
Alexander Burmak
544bfd105b Corrected naming based on review feedback 2019-12-25 11:24:13 +03:00
Maxim Ulanovskiy
6db46e600d updated parquet func test 2019-12-25 07:48:28 +03:00
Maxim Ulanovskiy
b98e85851a cosmetics 2019-12-25 07:47:53 +03:00
Maxim Ulanovskiy
d3b827272f fixed excessive var copy 2019-12-25 04:37:40 +03:00
Maxim Ulanovskiy
b43ea04548 Merge branch 'master' into parquet_list_reading_fix 2019-12-25 04:09:39 +03:00
Sergei Shtykov
0139d5003d Fixed bug with multiple blocks output. 2019-12-25 04:09:15 +03:00
alexey-milovidov
e2d2f02d59
Merge pull request #8383 from ClickHouse/fix-race-in-directory-monitor
Fix race in StorageDistributedDirectoryMonitor
2019-12-25 01:30:16 +03:00
alexey-milovidov
1150169e55
Merge pull request #8385 from 4ertus2/joins
Relax ambiguous column check for multiple JOIN ON section
2019-12-25 01:28:17 +03:00
Alexey Milovidov
80f42a1f3b Show physical addresses in StackTrace 2019-12-24 23:07:44 +03:00
alesapin
34d2afa354 Fix obvious bug 2019-12-24 23:03:33 +03:00
chertus
afaf860810 relax ambiguous column check for multiple JOIN ON section 2019-12-24 21:51:37 +03:00
Nikolai Kochetov
6a1dccd27c Change initialization order for StorageDistributedDirectoryMonitor members. 2019-12-24 21:25:00 +03:00
alesapin
05b933b1d3 Better 2019-12-24 21:07:51 +03:00
Alexander Tokmakov
6325f8507c fixes 2019-12-24 20:41:24 +03:00
Alexey Milovidov
8d190e6807 Fixed build 2019-12-24 20:16:38 +03:00
Alexey Milovidov
bc36c3f1a9 Avoid std::terminate in destructors of some WriteBuffers 2019-12-24 20:12:08 +03:00
Nikolai Kochetov
2148f09220 Disable affinity for apple and FreeBSD. 2019-12-24 20:00:43 +03:00
Nikolai Kochetov
2e8cf5356f
Merge pull request #8376 from ClickHouse/try-fix-tests-with-processors
Try fix tests with processors.
2019-12-24 19:59:04 +03:00
Alexander Tokmakov
60a47c3453 Merge branch 'master' into relative_paths_in_storages 2019-12-24 19:58:34 +03:00
tavplubix
7c1a6c726d
Merge pull request #8359 from ClickHouse/more_readable_interpreter_create
Refactor table creation
2019-12-24 18:07:43 +03:00
alexey-milovidov
aef617c144
Update FunctionHelpers.cpp 2019-12-24 16:59:00 +03:00
Nikolai Kochetov
6541b2db9e
Merge pull request #8351 from ClickHouse/fix-dict-with-clickhouse-source-and-subquery
Fix dict with clickhouse source and subquery
2019-12-24 16:56:48 +03:00
Nikolai Kochetov
e53b68d00f Fix apple build. 2019-12-24 16:55:28 +03:00
Alexander Tokmakov
514868cebc use relative paths in IStorage::rename(...) 2019-12-24 16:35:50 +03:00
Nikolai Kochetov
6fbc202bb3 Try fix tests with processors. 2019-12-24 16:30:28 +03:00
Vasily Nemkov
ded1ac0bc9 Test cases for now64 and toDateTime64 2019-12-24 16:16:23 +03:00
Vasily Nemkov
87f58864d3 Fixed type check in toDateTime64 2019-12-24 16:15:25 +03:00
Alexey Milovidov
94318c50a1 Renamed a test because it's inconvenient to do Ctrl+F and type 'fail' in browser 2019-12-24 15:13:20 +03:00
alexey-milovidov
780481a4f9
Merge pull request #8372 from ClickHouse/compiled-aggregator-remove-unused-function
Removed unused method that is unneeded after removing compiled aggregator
2019-12-24 15:11:14 +03:00
Vasily Nemkov
6118fc7c9f BitWriter with 128-bit buffer 2019-12-24 14:52:11 +03:00
Vasily Nemkov
1c87af33cf Split into INSERT ans SELECT tests 2019-12-24 14:44:49 +03:00
Alexander Burmak
97f03ab064 Fixed CI errors 2019-12-24 13:25:14 +03:00
alexey-milovidov
28c7e78d36
Merge pull request #8344 from ClickHouse/system-stack-trace
Added system.stack_trace table.
2019-12-24 12:15:48 +03:00
Alexey Milovidov
8bd22bf190 Removed unused method that is unneeded after removing compiled aggregator 2019-12-24 12:06:44 +03:00
alesapin
a8ab28b612 Remove flaps from kill mutation test 2019-12-24 12:05:06 +03:00
Maxim Ulanovskiy
ee5df8bc4f Merge branch 'master' into parquet_list_reading_fix 2019-12-24 10:03:21 +03:00
Alexey Milovidov
bdefa9248c Removed test because it cannot run in Sandbox (CI) 2019-12-24 03:54:32 +03:00
Alexey Milovidov
badbee2385 Added another mode of diagnostic trap 2019-12-23 23:26:46 +03:00
Alexander Tokmakov
ac3f53f300 refactor StorageFile construction 2019-12-23 23:07:31 +03:00
Alexey Milovidov
3b7f3b07cd Better handling of signals 2019-12-23 22:23:54 +03:00
Alexey Milovidov
e907ce103e Fixed warning 2019-12-23 21:58:42 +03:00
Alexey Milovidov
9da4b63fe9 Fixed Darwin build 2019-12-23 21:56:57 +03:00
alesapin
88c05c4a1f
Merge pull request #8237 from ClickHouse/synchronous_mutations
Add ability to execute mutations synchronously
2019-12-23 21:55:48 +03:00
Azat Khuzhin
775b7c7395 Fix 00553_buff_exists_materlized_column after Buffer overcommit fix 2019-12-23 20:35:52 +03:00
Nikolai Kochetov
a82079ccc2 Set affinity for PipelineExecutor threads. 2019-12-23 19:55:11 +03:00
Alexey Milovidov
f04a2a5f7b Fixed Darwin build 2019-12-23 19:54:51 +03:00
Nikolai Kochetov
9482cf2469 Enable processors by default. 2019-12-23 19:49:41 +03:00
Alexey Milovidov
56870c6b3b Fixed -Wshadow 2019-12-23 19:49:06 +03:00
alesapin
25ecc38615 More correct separation between metadata and data alters for non replicated MergeTree. 2019-12-23 19:44:50 +03:00
Alexey Milovidov
239451a24d Merge branch 'master' into system-stack-trace 2019-12-23 19:41:23 +03:00
Alexey Milovidov
131e1660aa Merge remote-tracking branch 'origin/master' into compression-codec-fix 2019-12-23 18:55:45 +03:00
Alexander Tokmakov
5fab732408 use arbitrary relative path in *MergeTree 2019-12-23 18:37:55 +03:00
Alexander Tokmakov
4f58d662f7 make data path relative 2019-12-23 18:20:08 +03:00
Ruslan
ec04f54d14 OptimizeIfChains added 2019-12-23 18:08:18 +03:00
alesapin
73c9f0e71c Remove redundant code 2019-12-23 17:46:00 +03:00
alesapin
f168977b9a Merge branch 'master' into synchronous_mutations 2019-12-23 16:24:50 +03:00
Alexander Burmak
0894ed9f33 Integration of log storages with IDisk interface 2019-12-23 16:11:56 +03:00
Vitaly Baranov
297a5fd627
Merge pull request #8342 from vitlibar/fix-checks-localhost-is-allowed
Fix checks if a client host is allowed in case it's the localhost.
2019-12-23 16:03:29 +03:00
alesapin
cfeaea2627 Better exception message in case of duplicate dictionary 2019-12-23 12:35:37 +03:00
Nikolai Kochetov
4f641b05d4 Added test. 2019-12-23 12:28:09 +03:00
Nikolai Kochetov
68305165d1 Create query context for clickhouse dictionary source. 2019-12-23 12:25:58 +03:00
alesapin
4555d1398c
Merge pull request #8267 from ClickHouse/fix_coverage_one_more_time
More strict coverage flush.
2019-12-23 11:43:49 +03:00
maxulan
031dbe465d
Merge branch 'master' into parquet_list_reading_fix 2019-12-23 10:01:41 +03:00
Maxim Ulanovskiy
e9021f6377 flatbuffers lib downloading replaced with contrib/flatbuffers 2019-12-23 09:51:35 +03:00
Vasily Nemkov
b022fa43ad Perf tests for all supported codecs against Float64 and UInt64. 2019-12-23 09:40:10 +03:00
Guillaume Tassery
483d6287eb cosmetic 2019-12-23 07:22:51 +01:00
Guillaume Tassery
15fb9ad6de
Merge branch 'master' into reload_dictionary 2019-12-23 10:46:02 +07:00
Azat Khuzhin
2e6d924bb5 Fix 00753_alter_destination_for_storage_buffer after Buffer overcommit fix 2019-12-23 01:58:36 +03:00
Azat Khuzhin
eae56e2d02 Fix 01019_Buffer_and_max_memory_usage flakiness
If within one INSERT the background worker will flush the buffer, then
it will steal the allocation, and if it will steal enough then
max_memory_usage for the INSERT query context could be exceeded.

Fix this by forcing the buffer flush from the query context.
2019-12-23 01:39:37 +03:00
Azat Khuzhin
58055e6a94 Do not overcommit Buffer memory usage
During INSERT the check against existing rows and rows from the INSERT
block is performed and if they exceeded threshold the Buffer should be
flushed to avoid overcommit, while before this patch the second check
(in flushBuffer()) will ignore rows from INSERT block.
2019-12-23 01:39:37 +03:00
Alexey Milovidov
4d349e9ed0 Added TODO 2019-12-23 00:01:12 +03:00
Alexey Milovidov
c78443d939 Avoid using query_id from old threads 2019-12-22 23:50:33 +03:00
Alexey Milovidov
1e83ebe521 Added test 2019-12-22 23:50:00 +03:00
Alexey Milovidov
ca25e2f30f Added query_id to "system.stack_trace" 2019-12-22 23:37:29 +03:00
Alexey Milovidov
9c868c910a Simplification 2019-12-22 23:17:16 +03:00
Alexey Milovidov
e0000bef98 Added "system.stack_trace" table (development) 2019-12-22 20:20:33 +03:00
Vitaly Baranov
2e4174a54c Fix checks if a client host is allowed in case it's the localhost. 2019-12-22 23:24:43 +07:00
dinosaur
daace9d5a7 add test file 2019-12-22 23:05:05 +08:00
Alexey Milovidov
8613b90d84 Using SortingHeap in MergingSortedTransform 2019-12-22 17:22:42 +03:00
dinosaur
17e1428813 Merge branch 'fix_8325' of github.com:769344359/ClickHouse 2019-12-22 22:04:30 +08:00
dinosaur
5f8f5458f2 fix_8325 2019-12-22 21:53:37 +08:00
Alexey Milovidov
906bfdbaa7 Merge branch 'master' into better-priority-queue 2019-12-22 14:13:21 +03:00
Alexey Milovidov
bd7eed1204 Cache comparison between next elements in heap 2019-12-22 14:13:10 +03:00
Alexey Milovidov
7ffa78ee95 Fixed error 2019-12-22 14:00:30 +03:00
Alexey Milovidov
53606c6e8f Using optimization of single column sort in Processors 2019-12-22 12:55:43 +03:00
Alexey Milovidov
b4ba1becd4 Removed wrong code from MergingSortedBlockInputStream 2019-12-22 12:53:31 +03:00
alexey-milovidov
fee9fda34c
Merge pull request #8130 from CurtizJ/optimize-storage-merge
Implement ORDER BY optimization for Storage Merge.
2019-12-22 12:43:18 +03:00
alexey-milovidov
08669e512c
Merge pull request #8332 from Vdimir/prometheus-endpoint-fixes
Prometheus endpoint fixes
2019-12-22 12:37:31 +03:00
alexey-milovidov
89e3793db1
Merge pull request #8311 from ClickHouse/gcc-libcxx
Using libc++ even with gcc
2019-12-22 12:32:27 +03:00
maxim
558324e773 fixed reading of parquet files containing columns of type list 2019-12-22 10:15:51 +03:00
CurtizJ
d941643416 fix build 2019-12-22 05:44:04 +03:00
Alexey Milovidov
48505446af Addition to prev. revision 2019-12-22 04:49:38 +03:00
Alexey Milovidov
401c5eef81 Attempt to optimize merging sorted blocks 2019-12-22 04:37:56 +03:00
Alexey Milovidov
9f3afed5ff Optimization of priority queue 2019-12-22 03:19:07 +03:00
Alexey Milovidov
eb9d6983c8 Added optimization for Processors; added reserve. 2019-12-22 01:16:39 +03:00
Alexey Milovidov
de4d7a5297 Optimization of sorting heap: minor modification that seems to be better 2019-12-22 01:02:12 +03:00
Alexey Milovidov
360c85c818 Merge remote-tracking branch 'origin/better-priority-queue' into gcc-libcxx 2019-12-22 00:51:47 +03:00
Alexey Milovidov
bc845ebce5 Optimization of sorting heap 2019-12-22 00:51:22 +03:00
Alexey Milovidov
2c63baa52a Merge remote-tracking branch 'origin/better-priority-queue' into gcc-libcxx 2019-12-21 23:29:40 +03:00
Alexey Milovidov
8ff361eda4 Optimization of sorting heap 2019-12-21 23:28:51 +03:00
VDimir
5a84f4782f Set prometheus default port to 9363 2019-12-21 17:56:24 +00:00
VDimir
e301c1fe59 Fix test_prometheus_endpoint 2019-12-21 20:50:02 +03:00
VDimir
cc5af3174e Update async methics at program srartup 2019-12-21 17:48:35 +00:00
VDimir
0e9daded94 Repcale dots in prometheus metric names with underscores 2019-12-21 17:47:44 +00:00
alexey-milovidov
d52547dc75
Merge pull request #8082 from moon03432/master
fix bitmapAnd error when intersecting an aggregated bitmap and a scalar bitmap
2019-12-21 18:14:27 +03:00
Sergei Shtykov
8747a1e538 Fixes. 2019-12-21 16:29:46 +03:00
Sergei Shtykov
1b9b326e4f Merge branch 'master' of github.com:ClickHouse/ClickHouse into feature/randomASKII-function 2019-12-21 14:51:05 +03:00
Sergei Shtykov
6710279687 Fixes. 2019-12-21 14:48:20 +03:00
tyrionhuang
caedf9d91d add bitmapAnd sql & reference 2019-12-21 17:22:39 +08:00
Alexey Milovidov
6997e9199c Merge remote-tracking branch 'origin/better-priority-queue' into gcc-libcxx 2019-12-21 03:00:15 +03:00
Alexey Milovidov
6c03e1e91a Optimization of sorting heap 2019-12-21 03:00:07 +03:00
Alexey Milovidov
b2ffab7cca Merge remote-tracking branch 'origin/better-priority-queue' into gcc-libcxx 2019-12-21 02:59:25 +03:00
Alexey Milovidov
0820dc0c84 Optimization of sorting heap 2019-12-21 02:59:08 +03:00
Alexey Milovidov
9638d7c4b2 Merge remote-tracking branch 'origin/better-priority-queue' into gcc-libcxx 2019-12-21 02:58:29 +03:00
Alexey Milovidov
9960a79b36 Optimization of sorting heap 2019-12-21 02:57:57 +03:00
Alexey Milovidov
f483a32b5a Merge commit 'dba9766575' into gcc-libcxx 2019-12-21 02:38:45 +03:00
Alexey Milovidov
dba9766575 Better priority_queue performance, part 1 2019-12-21 02:38:07 +03:00
alexey-milovidov
ea56001fc0
Merge pull request #8324 from ClickHouse/update-libcxx
Updated libc++
2019-12-21 00:44:48 +03:00
Sergey Kononenko
c339c1ca66 Reset column for runningAccumulate 2019-12-20 23:56:39 +03:00
alexey-milovidov
980cf16873
Merge pull request #8323 from ClickHouse/minor-improvements-backquote
Added quoting of db and table names where appropriate
2019-12-20 22:14:35 +03:00
Alexey Milovidov
b26b8a25b6 Merge branch 'update-libcxx' into gcc-libcxx 2019-12-20 21:45:25 +03:00
Alexey Milovidov
61dbd52a3f Fixed build after updating libcxx 2019-12-20 21:44:40 +03:00
Alexey Milovidov
5443d4a998 Merge branch 'master' into gcc-libcxx 2019-12-20 21:30:30 +03:00
alexey-milovidov
0d119a40eb
Merge pull request #8240 from vitlibar/sync-system-reload-dictionary
Synchronous system reload dictionary
2019-12-20 20:00:03 +03:00
Alexey Milovidov
41ed1ed471 Added quoting of db and table names where appropriate 2019-12-20 19:53:37 +03:00
proller
521e2e709e Build fixes. Arm, minimal build 2019-12-20 17:46:00 +03:00
alexey-milovidov
993f3eacc2
Merge pull request #8281 from amosbird/patch-16
allow no-declared free functions
2019-12-20 16:29:02 +03:00
CurtizJ
75c5e02ec2 improve input order analyzing and turn on order by optimization with left/inner joins 2019-12-20 16:15:17 +03:00
Alexander Tokmakov
9041977bb6 InterpreterCreateQuery code cleanup 2019-12-20 15:51:51 +03:00
Alexander Tokmakov
10ad22faea refactor InterpreterCreateQuery::createTable(...) 2019-12-20 15:51:51 +03:00
alexey-milovidov
7f10630873
Merge pull request #8308 from ClickHouse/deprecate-merge_tree_uniform_read_distribution
Deprecate "merge_tree_uniform_read_distribution" setting
2019-12-20 15:28:34 +03:00
philip.han
0b79811d8e Fixed referencing invalid offset in bloom_filter with array. 2019-12-20 20:33:27 +09:00
Javi santana bot
dd5435501a check for active replicas when waiting for commands 2019-12-20 11:04:16 +01:00
Guillaume Tassery
2977289b57 update test 2019-12-20 10:49:40 +01:00
alesapin
ee851113b8 Event better test 2019-12-20 12:18:48 +03:00
alexey-milovidov
de01dd12b5
Merge pull request #8306 from ClickHouse/fix_rename_distributed
Fix rename distributed
2019-12-20 04:38:21 +03:00
alexey-milovidov
3ba09ed589
Merge pull request #8298 from 4ertus2/joins
Fix engine join crash
2019-12-20 04:12:43 +03:00
Alexey Milovidov
0ac868ed48 Deprecate "merge_tree_uniform_read_distribution" setting 2019-12-20 04:11:37 +03:00
Alexey Milovidov
4104a65bab Fixed build 2019-12-20 04:01:51 +03:00
Alexey Milovidov
371aef532c Deprecate "merge_tree_uniform_read_distribution" setting 2019-12-20 02:49:41 +03:00
Alexey Milovidov
9ce8d5fe54 Deprecate "merge_tree_uniform_read_distribution" setting 2019-12-20 01:38:05 +03:00
Alexey Milovidov
3d2af60ad2 Minor style improvement 2019-12-20 00:29:37 +03:00
chertus
b5658ef1a3 remove qualification in StorageJoin JOIN case 2019-12-19 23:37:10 +03:00
Alexander Tokmakov
d1568c1614 fix rename distributed 2019-12-19 22:51:12 +03:00
Nikolai Kochetov
54b04eb8a9 updated perftest. 2019-12-19 22:31:06 +03:00
Alexey Milovidov
5da506b67a Fixed error in compression codecs. 2019-12-19 22:23:49 +03:00
alexey-milovidov
e83eeef731
Merge pull request #8258 from ClickHouse/update-llvm-bisect
Update LLVM in contrib
2019-12-19 22:22:32 +03:00
Nikolai Kochetov
8a1ec4c379 Chenge number of threads for insert select. 2019-12-19 22:20:13 +03:00
alexey-milovidov
0b70706f04
Merge pull request #8241 from vitlibar/fix-allowed-client-hosts-checks
Fix checking if a client host is allowed.
2019-12-19 21:09:29 +03:00
Nikolai Kochetov
725ac1255b Fix possible segfault on exception. 2019-12-19 19:27:35 +03:00
Nikolai Kochetov
9a4b5992e9 Fix insert select. 2019-12-19 19:09:05 +03:00
Nikolai Kochetov
7a78bdc974 Set 0 as default for max_insert_threads. 2019-12-19 18:54:32 +03:00
chertus
c72b0d4e2a fix engine join crash [wip] 2019-12-19 18:50:28 +03:00
Vitaly Baranov
c3161b7610 Add DCL to manage row policies. 2019-12-19 18:40:21 +03:00
Vitaly Baranov
6baccb963d Add functions currentRowPolicies() and system table 'system.row_policies'. 2019-12-19 18:40:15 +03:00
Nikolai Kochetov
720c1987ed Disable parallel inserting if max_insert_threads is zero,] 2019-12-19 18:37:11 +03:00
alesapin
0cc7ccfc2e Remove unintended diff 2019-12-19 18:30:52 +03:00
alesapin
9fea941009 Make wait endless 2019-12-19 18:27:56 +03:00
Vitaly Baranov
ba328ad48e Corrections after review. 2019-12-19 17:51:32 +03:00
Nikolai Kochetov
7e398f4731 Change implementation of copyData for multiple streams. 2019-12-19 17:44:58 +03:00
Mikhail Korotov
1fd3bbc092
Update comments 2019-12-19 17:34:16 +03:00
alexey-milovidov
ad60f990cd
Merge pull request #8291 from Enmk/now64_crash_fix
Handling error from clock_gettime properly
2019-12-19 16:12:22 +03:00
alexey-milovidov
3e90352af1
Update now64.cpp 2019-12-19 16:12:13 +03:00
alesapin
88033a4333 Merge branch 'master' into synchronous_mutations 2019-12-19 15:44:02 +03:00
alesapin
e6cc87fc20 Fix broken unit test 2019-12-19 15:31:10 +03:00
Vitaly Baranov
754fb40cc4 Transform stateless test for row policy into an integration test
with improvements.
2019-12-19 13:37:02 +03:00
Vitaly Baranov
9f5ab54fc2 Rework RowPolicy based on IAccessEntity. 2019-12-19 13:37:02 +03:00
Nikolai Kochetov
5f3d7cace4
Merge pull request #7898 from apbodrov/avg_weighted
avgWeighted
2019-12-19 12:56:38 +03:00
Vasily Nemkov
2292ec9592 Handling error from clock_gettime properly 2019-12-19 12:55:10 +03:00
alesapin
7b392d4e89
Merge pull request #8275 from ClickHouse/fix_range_dictionaries_ddl
DDL dictionaries Range fix
2019-12-19 12:54:39 +03:00
Guillaume Tassery
abbbf3e726 cosmetic 2019-12-19 10:29:13 +01:00
Guillaume Tassery
d5d8fd7004 refactor target_table to table for better hemogny 2019-12-19 10:27:12 +01:00
philip.han
89039abf69 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into bugfix_bloomfilter 2019-12-19 17:18:29 +09:00
Guillaume Tassery
1f5a11b384 Add test for ON CLUSTER on RELOAD DICTIONARY command 2019-12-19 09:01:57 +01:00
Guillaume Tassery
9e808e4a0d Let the command SYSTEM RELOAD DICTIONARY to use ON CLUSTER syntax 2019-12-19 08:54:43 +01:00
Guillaume Tassery
d5b4b40b4e Add parser 2019-12-19 04:46:20 +01:00
Vxider
c61e2aef3f set at least 1 even if settings.max_insert_threads is zero 2019-12-19 11:28:00 +08:00
Vxider
3725b6cca3 remove unnessary thread 2019-12-19 11:26:23 +08:00
Amos Bird
ee2a3b4b07
allow no-declared free functions
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

Bug Fix
Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
We have free functions implemented for factories such as https://github.com/yandex/ClickHouse/blob/master/dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp#L318
2019-12-19 09:02:01 +08:00
Vitaly Baranov
902d7860da Fix tests. 2019-12-19 03:38:30 +03:00
Vitaly Baranov
41b0ba98dd SYSTEM RELOAD db.dict syntax is now supported. 2019-12-19 03:38:24 +03:00
Vitaly Baranov
68187b5e08 Getting from a dictionary isn't blocked until SYSTEM RELOAD is finished. 2019-12-19 03:22:58 +03:00
Vitaly Baranov
bfcd437e91 Add an integration test. 2019-12-19 03:15:14 +03:00
Vitaly Baranov
fa53f0c6ba Fix using a custom hostname for a node in the integrations tests.
See https://github.com/docker/compose/issues/2925
2019-12-19 03:15:08 +03:00
Alexey Milovidov
766aced61c Merge branch 'master' of github.com:yandex/ClickHouse into update-llvm-bisect 2019-12-19 00:36:18 +03:00
Amos Bird
630ef97854 Allow table identifier as the first arg to joinGet (#7707) 2019-12-18 23:36:51 +03:00
alexey-milovidov
f5a16b1229
Update KeyCondition.cpp 2019-12-18 22:04:33 +03:00
alexey-milovidov
b5cab7c721
Update KeyCondition.cpp 2019-12-18 22:03:57 +03:00
Alexey Milovidov
90795b7d4b Added asserts to KeyCondition while evaluating RPN 2019-12-18 22:00:09 +03:00
alexey-milovidov
11db8b2b50
Merge pull request #8276 from ClickHouse/tid-preparation
Minimal change in preparation for #7477
2019-12-18 21:33:55 +03:00
Nikolai Kochetov
f3c5f2d170
Merge pull request #8272 from ClickHouse/fix_replace_running_query
Fix 00600_replace_running_query.
2019-12-18 21:33:09 +03:00
Alexey Milovidov
d0073ac7cf Minimal change in preparation for #7477 2019-12-18 19:47:51 +03:00
alesapin
742caced3f Add ability to work with different types besides Date in RangeHashed external dictionary created from DDL query. 2019-12-18 19:26:46 +03:00
Vasily Nemkov
6fee967acd now64() tests 2019-12-18 19:10:26 +03:00
Alexey Milovidov
1d0854c7af Using less number of LLVM libraries 2019-12-18 19:08:11 +03:00
Alexey Milovidov
a99773ca64 Merge branch 'master' of github.com:yandex/ClickHouse into update-llvm-bisect 2019-12-18 18:26:55 +03:00
Nikolai Kochetov
d6c34d11d9 Fix 00600_replace_running_query. 2019-12-18 18:21:45 +03:00
Vasily Nemkov
6802025eb6 Fixed crash in now64() when it argument is a result of function call. 2019-12-18 17:51:35 +03:00
Vitaly Baranov
2b93cab88f Fix checking of client hostname. 2019-12-18 16:40:51 +03:00
alesapin
9b3bc2f0b3 Fix flapping test 2019-12-18 16:00:20 +03:00
Andrei Bodrov
dd007c5ce1 typo :( 2019-12-18 15:48:40 +03:00
Mikhail Korotov
326e418434 Test added 2019-12-18 15:01:28 +03:00
Andrei Bodrov
6ffa542c4c fix build 2019-12-18 15:01:07 +03:00
Mikhail Korotov
e9ce6c97cc Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into suffix_in_settings_value 2019-12-18 15:00:41 +03:00
Andrei Bodrov
6ba5cf289c test 2019-12-18 14:57:06 +03:00
alesapin
a175ea5b73 Add coverage file flush for clickhouse-server when std::atexit is not called. Also slightly improved logging in stateless tests with coverage. 2019-12-18 13:43:40 +03:00
Andrei Bodrov
cbcc7482ff fix after merge 2019-12-18 13:05:22 +03:00
Andrei Bodrov
5ae834d153 fix conflict 2019-12-18 13:02:04 +03:00
alesapin
8116351f09 Fix setting description 2019-12-18 12:20:33 +03:00
alesapin
f110b70ad8 Merge branch 'master' into synchronous_mutations 2019-12-18 12:00:14 +03:00
Alexey Milovidov
b90b090040 Addition to prev. revision 2019-12-18 08:26:17 +03:00
Alexey Milovidov
f804ff5d1a Make the setting obsolete 2019-12-18 08:19:56 +03:00
Alexey Milovidov
4ec492a50c Merge branch 'master' into update-llvm-bisect 2019-12-18 08:12:18 +03:00
Alexey Milovidov
6d58d85579 Fixed warnings 2019-12-18 08:12:03 +03:00
Alexey Milovidov
12f21dd584 Removed useless memset 2019-12-18 08:11:26 +03:00
Alexey Milovidov
0bc4a64b89 Attempt to make it working 2019-12-18 07:21:06 +03:00
alexey-milovidov
fcbd76815c
Merge branch 'master' into update-llvm-bisect 2019-12-18 04:22:10 +03:00
Alexey Milovidov
55dd76cdbf Fixed build 2019-12-18 03:38:20 +03:00
Alexey Milovidov
ffb506b073 Fixed build 2019-12-18 03:37:35 +03:00
Alexey Milovidov
8f67b0bf3d Returned normal LLVM headers in ExpressionJIT 2019-12-18 03:35:54 +03:00
philip.han
281d2de538 Fixed bloom_filter.xml
* Surrounded the test with `STOP MERGE` and `START MERGE`
 * Added `SET allow_experimental_data_skipping_indices = 1`
2019-12-18 09:16:43 +09:00
Alexey Milovidov
5e9d7c1b9d Update to llvm-9.0.0 2019-12-18 02:29:48 +03:00
alexey-milovidov
a7384b4d07
Merge branch 'master' into MoreGCCWarnings 2019-12-18 02:01:39 +03:00
alexey-milovidov
06d124c073
Merge pull request #8229 from hczhcz/patch-2
Optimize rounding functions
2019-12-18 02:00:14 +03:00
alexey-milovidov
993ed07e11
Merge pull request #8255 from ClickHouse/fix_flappy_test
More stable kill in integration tests
2019-12-18 01:59:22 +03:00
alexey-milovidov
b2fcaff0dc
Merge pull request #8252 from 4ertus2/bugs
Fix crash in FULL JOIN with LowCard in key (attempt 2)
2019-12-18 01:58:56 +03:00
alexey-milovidov
c9887ccadc
Merge pull request #8250 from ClickHouse/no_mutation_number_by_default
No mutation number by default
2019-12-18 01:58:21 +03:00
alexey-milovidov
5afb518c47
Merge pull request #8253 from nvartolomei/nv/constraints-coverage
Improve settings constraints tests coverage
2019-12-18 01:56:50 +03:00
Alexey Milovidov
eff1a95016 Update to 4637e15844661778c871b5f9642228e79a87e6e9 2019-12-18 01:09:29 +03:00
Alexey Milovidov
5378b2ade4 Update to 079df9ab2cd137141d5444f994ecc9721a6e2b68 2019-12-18 00:58:32 +03:00
Alexey Milovidov
5945644207 Update to 6cadc7c06ba 2019-12-18 00:51:47 +03:00
Alexey Milovidov
bc827c1649 Removed support for old LLVM 2019-12-18 00:00:01 +03:00
Alexander Kuzmenkov
89a2ec3944
Check Field type in get(). (#7386)
Allow silent conversion only between Int64 and UInt64.
2019-12-17 23:48:33 +03:00
alexey-milovidov
e691762a6b
Merge pull request #8251 from GrigoryPervakov/s3-log
Attach AWS SDK logging to CH logging system
2019-12-17 23:33:47 +03:00
Alexey Milovidov
030de41a14 Merge branch 'master' of github.com:yandex/ClickHouse 2019-12-17 23:19:32 +03:00
Alexey Milovidov
9587187ce7 Adapted benchmark queries for obfuscated dataset 2019-12-17 23:19:20 +03:00
alesapin
30aa42784a More stable kill in integration tests 2019-12-17 21:07:13 +03:00
Nicolae Vartolomei
d1de5bb8d5 Improve settings constraints tests coverage 2019-12-17 17:20:15 +00:00
Vasily Nemkov
09e6e8b2d3 Improved performance of BitReader
By using 128-bit buffer and significantly simplifying code.
2019-12-17 19:37:33 +03:00
alexey-milovidov
abd7e52272
Update S3Common.cpp 2019-12-17 18:38:50 +03:00
chertus
d7a2f45299 Fix crash in FULL JOIN with LowCard in key (attempt 2) 2019-12-17 18:02:42 +03:00
Pervakov Grigory
bdb9156843 Attach AWS SDK logging to CH logging system 2019-12-17 17:25:18 +03:00
Andrei Bodrov
3a7384b585 AvgData 2019-12-17 17:00:40 +03:00
alesapin
1c09a8b8aa Revert tests 2019-12-17 16:03:23 +03:00
alesapin
3c4f12cb7f Fix config subst test 2019-12-17 15:41:22 +03:00
alesapin
937eee15fe Fix check_table test 2019-12-17 15:40:18 +03:00
alesapin
9a005d27ea Merge branch 'master' into synchronous_mutations 2019-12-17 15:27:36 +03:00
alesapin
b2979546c3 Fix mutation number by default 2019-12-17 15:23:17 +03:00
alesapin
97e388db8e Add missed test for system.mutations 2019-12-17 15:22:28 +03:00
Vitaly Baranov
d0d5c72e4d Reloading of a dictionary now waits for results and shows errors.
Clearer names for load and reload functions in ExternalLoader.
2019-12-17 13:45:47 +03:00
Alexander Kuzmenkov
94b98e7f29
Set: initialize filter for Null values as well. (#8235)
Found with MemorySanitizer.
2019-12-17 13:20:04 +03:00
Alexander Kuzmenkov
8b1dae3f3d
Fix some implicit Field casts (#8209) 2019-12-17 13:19:21 +03:00
Guillaume Tassery
bdcee8b382 Merge branch 'master' of github.com:ClickHouse/ClickHouse into move_partition 2019-12-17 11:18:11 +01:00
alesapin
3ad6b482ab
Merge pull request #8127 from ClickHouse/restrictions_for_external_dictionaries_from_ddl
Add restrictions for several sources of external dictionaries
2019-12-17 12:18:39 +03:00
philip.han
d5d8b2cefa Added a performance test for insertion of bloom_filter. 2019-12-17 17:59:02 +09:00
Vxider
0490510b0b resolve conflicts 2019-12-17 16:18:17 +08:00
Olga Khvostikova
b47863a0c6
Fix segfault in table function file while inserting into it (#8177)
* Fix segfault in table function file while inserting into it
2019-12-17 11:06:39 +03:00
Guillaume Tassery
de9ab66935 fix merge conflict 2019-12-17 08:20:54 +01:00
Guillaume Tassery
595815bdf5 Add table as part destination type 2019-12-17 07:51:40 +01:00
Guillaume Tassery
dca0c83809
Merge branch 'master' into move_partition 2019-12-17 13:49:18 +07:00
alexey-milovidov
7092520617
Update BloomFilterHash.h 2019-12-17 08:46:46 +03:00
Vxider
f31d61e450 add performance test 2019-12-17 12:22:58 +08:00
Vxider
ec784150b3 fix code style 2019-12-17 12:22:58 +08:00
Vxider
49065a6348 use threadPool and code style update 2019-12-17 12:22:58 +08:00
Vxider
f564d524e5 parallel insert support for ReplicatedMergeTree 2019-12-17 12:22:58 +08:00
Vxider
2a94832ef6 parallel INSERT in INSERT SELECT query 2019-12-17 12:22:58 +08:00
hcz
dabaef2836 Fix correctness 2019-12-17 10:57:11 +08:00
kreuzerkrieg
9612bb0e79 More GCC warnings 2019-12-16 23:19:50 +02:00
alesapin
a2180b0bb3 Merge branch 'master' into restrictions_for_external_dictionaries_from_ddl 2019-12-16 23:07:16 +03:00
alesapin
9e7033cc68 Simplify test and sligtly increase timeouts 2019-12-16 22:56:17 +03:00
alexey-milovidov
fcca420e91
Merge pull request #8231 from ClickHouse/enabling_values_optimization_by_default
Enable Values optimization by default
2019-12-16 22:13:50 +03:00
Alexey Milovidov
4cf540b621 Applied a patch from Nicolae Vartolomei 2019-12-16 22:03:03 +03:00
Alexey Milovidov
0bc1c6d91d Changes after review of #8034 2019-12-16 21:51:42 +03:00
Alexey Milovidov
0042c8271e Changes after review of #8034 2019-12-16 21:41:51 +03:00
alexey-milovidov
12b3dcdcb8
Merge pull request #8034 from hombit/h3support
h3 functions required for circle search
2019-12-16 21:35:19 +03:00
alexey-milovidov
ed942ce29c
Update h3kRing.cpp 2019-12-16 21:34:51 +03:00
Konstantin Malanchev
f0b6a540ec Fix style of registerFunctionsGeo.cpp 2019-12-16 20:46:39 +03:00
Konstantin Malanchev
590627a658 Add h3EdgeAngle function 2019-12-16 20:46:39 +03:00
Konstantin Malanchev
1c1794d3d8 Add h3EdgeLengthM function 2019-12-16 20:46:38 +03:00
Konstantin Malanchev
9937fc7ff9 Add h3kRing function 2019-12-16 20:46:38 +03:00
alexey-milovidov
dd58ddbc9a
Merge pull request #8234 from ClickHouse/fix_insert_select_mysql
Fix insert select from mysql(...)
2019-12-16 20:42:02 +03:00
alesapin
2695aa13c4 Add ability to execute mutations asynchronously 2019-12-16 18:51:15 +03:00
alesapin
a67540e658
Merge pull request #8230 from Melancholic/master
Fixed #5335. clickhouse-local. Print help if no arguments are passed
2019-12-16 17:47:00 +03:00
Alexander Tokmakov
9e566d997e fix insert select from mysql(...) 2019-12-16 17:28:44 +03:00
hcz
a563ad0b21 Optimize rounding functions 2019-12-16 18:39:35 +08:00
Alexander Tokmakov
2980c1101e update tests 2019-12-16 13:24:02 +03:00
Alexander Tokmakov
cab852dd0e enable values optimization by default 2019-12-16 12:25:31 +03:00
nagorny
03f0909552 Fixed #5335. clickhouse-local. Print help if no arguments are passed 2019-12-16 12:05:26 +03:00
alexey-milovidov
bf1414cc76
Merge pull request #8225 from ClickHouse/tcmalloc-deprecate
Deprecate tcmalloc
2019-12-16 03:20:56 +03:00
Alexey Milovidov
952351a033 Fixed build after merge 2019-12-16 02:54:56 +03:00
alexey-milovidov
575984b4a0
Merge pull request #8189 from ClickHouse/regions-more-languages
More languages for regions
2019-12-16 02:47:20 +03:00
alexey-milovidov
d0ef4b6b96
Merge branch 'master' into more-accurate-using-load-reload 2019-12-16 02:42:45 +03:00
alexey-milovidov
38353d1253
Merge pull request #8197 from filimonov/fix_kafka_mv_subqueries
Init query context for Kafka to make subqueries work
2019-12-16 02:40:00 +03:00
Alexey Milovidov
d5d2959a5f Minor changes after merge #7900 2019-12-16 01:53:52 +03:00
Alexey Milovidov
ebf16a8a17 Deprecated tcmalloc 2019-12-16 01:37:27 +03:00
alexey-milovidov
d498e14ff8
Merge pull request #7900 from Vdimir/prometheus-metrics-7369
Prometheus endpoint
2019-12-16 01:16:52 +03:00
alexey-milovidov
3399f9a73c
Merge pull request #8112 from hczhcz/patch-1210
Add function bankerRound
2019-12-15 23:57:13 +03:00
Andrei Bodrov
e2f347a5ad fix test 2019-12-15 16:41:50 +03:00
Andrei Bodrov
cae40d3d94 fix name, add exception, add tests 2019-12-15 16:36:44 +03:00
hcz
3ff7c1e4dc Improve roundBankers implementation 2019-12-15 16:30:54 +08:00
Alexey Milovidov
6a34958fd2 Minor modifications 2019-12-15 02:00:18 +03:00
alexey-milovidov
3a265cd9f3
Merge pull request #8213 from ClickHouse/fix-exists-query
Fixed segfault in EXISTS query
2019-12-14 23:02:08 +03:00
Vitaliy Zakaznikov
cf22cde702 Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into live_view_support_for_subquery 2019-12-14 19:21:44 +01:00
Vitaliy Zakaznikov
0f9450433f * Reverting back to the old logic.
* Removing redundant catch clauses.
* Updating createStorage function signature in StorageBlocks.h.
2019-12-14 18:29:34 +01:00
Alexey Milovidov
22301e534b Don't use https in test to postpone fix of UBSan report in libressl 2019-12-14 19:48:19 +03:00
alexey-milovidov
cd556a35e6
Merge pull request #8210 from 4ertus2/bugs
Fix `There's no column` error for materialized and alias columns
2019-12-14 19:45:07 +03:00
alexey-milovidov
39a8f1e9c7
Merge pull request #8202 from zhang2014/feature/support_drop_mysql_database
ISSUES-6063 support drop mysql database engine
2019-12-14 19:44:17 +03:00
VDimir
d413c4a7d5 Add test_prometheus_endpoint 2019-12-14 19:40:50 +03:00
alexey-milovidov
e009584086
Merge pull request #8164 from nicelulu/master
Fix trivial count query with ConvertingBlockInputStream.
2019-12-14 19:39:49 +03:00
Vitaliy Zakaznikov
969dc1ba2c Adding another live view subquery test. 2019-12-14 13:55:31 +01:00
root
22bc508dc4 use currentDatabase(). 2019-12-14 13:28:16 +08:00
Nikita Mikhaylov
f055239cde
Merge pull request #8207 from nikitamikhaylov/fix-parallel-cancel-test
Light fix of parallel cancel test
2019-12-14 01:59:32 +03:00
Nikita Mikhaylov
69f32e007c
remove comment 2019-12-14 01:59:17 +03:00
Alexey Milovidov
0998dcbda6 Fixed segfault in EXISTS query 2019-12-13 23:24:03 +03:00
Winter Zhang
690502a435
update _remove.flag suffix to .remove_flag suffix 2019-12-14 04:15:40 +08:00
chertus
8c9ca6891f fix 'There's no column' error for materialized and alias columns 2019-12-13 21:46:55 +03:00
alexey-milovidov
8727f30ef8
Merge pull request #7790 from bgranvea/simple-aggregate-function-fix
Fix "Sizes of columns doesn't match" error with SimpleAggregateFunction
2019-12-13 20:56:03 +03:00
alexey-milovidov
d0408e8265
Merge pull request #8204 from ClickHouse/nullable-rand
rand and nullable argument
2019-12-13 20:50:07 +03:00
alexey-milovidov
86e1cbf80b
Merge pull request #8199 from Enmk/DateTime64_performance
Improved performance of max(), min(), argMin(), argMax() for DateTime64
2019-12-13 20:49:43 +03:00
Nikolai Kochetov
28fcc6902f Try to simplify code in StorageLiveView 2019-12-13 20:08:21 +03:00
Nikita Mikhaylov
9936fd2bc4 fix added 2019-12-13 19:44:33 +03:00
hcz
6171e8b70c Rename roundBankers 2019-12-13 22:50:14 +08:00
Alexander Kuzmenkov
5b67c55ec6 Update containers for #6892. 2019-12-13 16:57:10 +03:00
Nikolai Kochetov
1de6b244aa Fix randConstant. 2019-12-13 16:47:28 +03:00
Vasily Nemkov
d8473c17a3 Improved performance of max(), min(), argMin(), argMax() for DateTime64 2019-12-13 16:40:09 +03:00
Boris Granveaud
3502e3858a provide test case 2019-12-13 14:10:49 +01:00
Nikolai Kochetov
bd2517343d Fi rand and randConstant for nullable types. 2019-12-13 16:10:02 +03:00
zhang2014
713923e451 Support detach and drop table for mysql database engine 2019-12-13 19:48:38 +08:00
vxider
142932ebdf fix gcc 8.2.1 build (#8162) 2019-12-13 14:18:09 +03:00
philip.han
fe7ae014d8 Fixed bloom_filter bug that counting error for Array(Nullable(String)). 2019-12-13 18:38:03 +09:00
Konstantin Malanchev
4eae32d438 Add h3IsValid function 2019-12-13 11:39:50 +03:00
Konstantin Malanchev
947fb39d5e Add h3getResolution function 2019-12-13 11:39:50 +03:00
root
63aaf64e93 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into lulu-master1 2019-12-13 16:12:43 +08:00
alesapin
d894d1df3d
Merge pull request #8135 from excitoon/patch-4
Fixed `test_multiple_disks::test_kill_while_insert` a little
2019-12-13 11:06:34 +03:00
zhangxiao018
9e0b1c9f65 add test. 2019-12-13 12:01:23 +08:00
zhangxiao018
8a2b8647e4 add test. 2019-12-13 11:59:51 +08:00
Mikhail Filimonov
f3fa71c707 Init query context for Kafka to make subqueries work 2019-12-13 02:21:40 +01:00
alexey-milovidov
399995d60b
Merge pull request #7812 from infinivision/fix_part_mutation
fix part mutation
2019-12-13 03:45:59 +03:00
alexey-milovidov
ad76a1bafb
Merge pull request #8185 from vitlibar/fix-drop-dictionary-if-exists
Fix DROP DICTIONARY IF EXISTS
2019-12-13 02:47:06 +03:00
alexey-milovidov
575208c6e2
Merge pull request #8182 from ClickHouse/aku/msan-exception
Suppress an msan false positive in exception handling.
2019-12-13 02:41:28 +03:00
alexey-milovidov
31e4d40501
Merge pull request #8106 from ClickHouse/function-refactoring
Function refactoring
2019-12-13 02:30:55 +03:00
alexey-milovidov
d0cf282204
Merge pull request #8179 from ClickHouse/parts_to_do_names
Add parts_to_do_names column to system.mutations.
2019-12-13 02:30:03 +03:00
alexey-milovidov
efb916c556
Merge pull request #8176 from ClickHouse/fix_tmp_drop_relative_path
Fix loading of partially dropped table
2019-12-13 02:28:13 +03:00
alexey-milovidov
be08e4cdf1
Merge pull request #8190 from filimonov/issue5142test
Test for issue #5142
2019-12-13 02:27:53 +03:00
alexey-milovidov
69535078fd
Merge pull request #8192 from excitoon-favorites/better-logging-disks
Better logging in background move task.
2019-12-13 02:27:38 +03:00
alexey-milovidov
32f42c4e92
Merge pull request #8194 from excitoon-favorites/fixed-move-pool
Fixed metrics in `BackgroundProcessingPool`
2019-12-13 02:26:52 +03:00
alexey-milovidov
d354628010
Merge pull request #8088 from dingxiangfei2009/ClusterCopier/refine-zxid-def
ClusterCopier: refine zxid definition
2019-12-13 02:25:41 +03:00
alexey-milovidov
d2c7a10340
Update ClusterCopier.cpp 2019-12-13 02:25:12 +03:00
Vladimir Chebotarev
8a423a94b6 Fixed a typo. 2019-12-13 01:18:25 +03:00
Artem Zuikov
5783142f39
Merge pull request #8178 from 4ertus2/some
Refactoring: extract getTableExpressions() variants into own file
2019-12-13 01:09:47 +03:00
Vladimir Chebotarev
e413cd6e6c Fixed metrics in BackgroundProcessingPool. 2019-12-13 01:08:54 +03:00
Vladimir Chebotarev
9882c7c5ad Minor fix in logging. 2019-12-13 00:38:05 +03:00
Vladimir Chebotarev
9393bb0f12 Better logging in background move task. 2019-12-13 00:34:57 +03:00
alexey-milovidov
989671cffe
Update 01046_materialized_view_with_join_over_distributed.sql 2019-12-13 00:01:33 +03:00
Mikhail Filimonov
32cd2912b7 Test for https://github.com/ClickHouse/ClickHouse/issues/5142 2019-12-12 21:49:45 +01:00
Alexey Milovidov
df5f1f7433 More languages for regions 2019-12-12 22:34:58 +03:00
Alexey Milovidov
f88c94ed56 Changes after review of #8149 2019-12-12 22:12:18 +03:00
alexey-milovidov
0dc62d20e1
Merge pull request #8149 from zhang2014/feature/array_zip
Add arrayZip function
2019-12-12 22:00:39 +03:00
alexey-milovidov
e917b8563e
Merge pull request #8186 from ClickHouse/proper-fix-for-variant-conversion
Proper fix for #8147
2019-12-12 21:55:47 +03:00
alexey-milovidov
b67c1ecffa
Revert "fix compilation (std::variant with narrowing) with system libcxx" 2019-12-12 21:55:12 +03:00
Alexey Milovidov
8580f8b56c Proper fix for #8147 2019-12-12 21:53:48 +03:00
Vitaly Baranov
4c157007f5 Refactoring of using ExternalLoader in dictionary DDL:
Instead of using ExternalLoader::reload() now it's used reloadConfig() which reloads only what necessary.
Functions attachDictionary() and detachDictionary() are simplified and have lesser number of parameters.
Instead of injecting into LoadablesConfigReader's internals for creating dictionary a temp repository is used.
2019-12-12 21:45:58 +03:00
Alexey Milovidov
575da23573 Fixed build 2019-12-12 21:40:46 +03:00
Vitaly Baranov
f81d9b4e73 Fix DROP DICTIONARY IF EXISTS db.dict - now it doesn't throw exceptions
even if db doesn't exist.
2019-12-12 21:37:44 +03:00
Alexander Kuzmenkov
f0ed2bd233 Suppress an msan false positive in exception handling.
See https://github.com/google/sanitizers/issues/1155
2019-12-12 21:28:58 +03:00
alexey-milovidov
51ed10ed78
Merge pull request #8011 from Jokser/aws-s3-sdk-integration
AWS SDK S3 integration
2019-12-12 20:43:16 +03:00
Nikolai Kochetov
d29561984a Fix build. 2019-12-12 19:59:17 +03:00
chertus
77ab1dbccb move one more function 2019-12-12 19:54:04 +03:00
alesapin
b7622c8fd9 Add parts_to_do_names column to system.mutations 2019-12-12 19:24:03 +03:00
chertus
68a33863ab extract getTableExpressions variants into own file 2019-12-12 19:06:18 +03:00
alexey-milovidov
5774078854
Merge pull request #8173 from excitoon/patch-5
Fixed flapping `test_ttl_move::test_moves_after_merges_work`
2019-12-12 18:22:34 +03:00
alexey-milovidov
c47acef529
Merge pull request #8163 from ClickHouse/dictionaries_ddl_on_cluster
Dictionaries ddl on cluster
2019-12-12 18:20:15 +03:00
alexey-milovidov
1bb14bb67e
Merge pull request #8147 from podshumok/patch-3
fix compilation (std::variant with narrowing) with system libcxx
2019-12-12 18:19:22 +03:00
alexey-milovidov
29b2e26074
Merge pull request #8144 from 4ertus2/decimal
Decimal specializations for min/max
2019-12-12 18:18:14 +03:00
alesapin
8fb9541958
Merge pull request #7946 from Alex-Burmak/filesystem_abstraction
Filesystem abstraction layer
2019-12-12 18:12:35 +03:00
Nikolai Kochetov
7082f8028b Merged with master. 2019-12-12 18:04:30 +03:00
Nikolai Kochetov
06f2fa8433 Add more comments, rename classes, move functions adaptors to separate file. 2019-12-12 17:56:03 +03:00
Nikolai Kochetov
168a55b617 Fix build. 2019-12-12 17:55:55 +03:00
Nikolai Kochetov
7dba6849c8 Fix concat and reverse for arrays. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
17af1ed25f Fix FunctionExpression. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
9c4d123f87 Style fixes. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
187cc83702 update tuple comparison. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
5289b67b70 update LLVMFunction. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
63a8dcd2e8 update yestarday. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
7336f3fa7f update transform. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
a18f0c5aa6 update FunctionArrayMapped. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
db08cc1b5a update toTypeName. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
b401dc521a update reverse. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
d7b08b166b update now and today. 2019-12-12 17:55:35 +03:00
Nikolai Kochetov
a9f1a2e382 Fix compile errors. 2019-12-12 17:55:36 +03:00
Alexander Tokmakov
1a6c973055 use absolute path and try to load table 2019-12-12 17:47:31 +03:00
Vladimir Chebotarev
3630b06cf9 Fixed flapping test_ttl_move::test_moves_after_merges_work 2019-12-12 16:42:03 +03:00
hcz
c0028c3942 Add aggregate function categoricalInformationValue (#8117)
* Add categorical iv aggregate function with tests
2019-12-12 16:28:28 +03:00
chertus
c63a0e88ed add perf test for decimal aggregates 2019-12-12 16:11:07 +03:00
chertus
16844012e4 Merge branch 'master' into decimal 2019-12-12 15:35:30 +03:00
alexey-milovidov
604a31bb66
Merge pull request #8143 from Akazz/race_condition/process_ordinary_query
Resolved data race in DB::BlockStreamProfileInfo::calculateRowsBeforeLimit()
2019-12-12 15:32:47 +03:00
Alexander Burmak
1f69a7a015 Fixed merge issues 2019-12-12 14:10:18 +03:00
alesapin
e7f5b92b19 Add ability to create external dictionaries ON CLUSTER 2019-12-12 13:27:02 +03:00
zhangxiao018
c03f126057 fix trivial count query with ConvertingBlockInputStream. 2019-12-12 18:21:08 +08:00
Ding Xiang Fei
21c571c5b5
Add reference to Zookeeper Internals manual 2019-12-12 18:16:14 +08:00
Nikolai Kochetov
7ad2a6dd0b
Merge pull request #7170 from Enmk/DateTime64
DateTime64 data type
2019-12-12 12:20:22 +03:00
Alexander Burmak
c514ec3278 Minor code cleanup 2019-12-12 12:18:46 +03:00
Alexander Burmak
2ce6136de5 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs 2019-12-12 12:10:50 +03:00
Alexander Kazakov
954d5072e9 Returned the terminating sendProgress() in processOrdinaryQuery 2019-12-12 07:46:39 +03:00
CurtizJ
d17f785260 fix tests 2019-12-12 00:51:06 +03:00
CurtizJ
d6058322e5 add test for special engines with order by 2019-12-11 23:07:41 +03:00
CurtizJ
890bfeb4eb fix order description analyzing 2019-12-11 21:52:59 +03:00
Nikolai Kochetov
1d90c4c555 Fix build. 2019-12-11 20:09:42 +03:00
zhang2014
194ab5526d add arrayZip function 2019-12-12 00:22:14 +08:00
Nikolai Kochetov
ea05ab293d Fix PVS check. 2019-12-11 19:09:43 +03:00
Konstantin Podshumok
7635cf93bd
fix compilation (std::variant with narrowing) with system libcxx 2019-12-11 18:33:14 +03:00
Alexander Kazakov
eb5040771b Minor correction 2019-12-11 17:54:19 +03:00
Vasily Nemkov
f8fec0402b Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64 2019-12-11 17:38:32 +03:00
Pavel Kovalenko
daf064d13b Merge remote-tracking branch 'jokser/aws-s3-sdk-integration' into aws-s3-sdk-integration 2019-12-11 17:32:33 +03:00
Vasily Nemkov
61197370bb Merge branch 'DateTime64' of github.com:Enmk/ClickHouse into DateTime64 2019-12-11 17:25:34 +03:00
Vasily Nemkov
514847609d PR fixes:
* Fixed precision calculation in DataTypeDecimalBase c-tor
* Fixed max precision calculation in getLeastSupertype
* Fixed reading past end of vector in FunctionsConversion with extractToDecimalScale
* More verbose comments on FunctionArgumentTypeValidator and validateFunctionArgumentTypes
* style and other minor fixes.
2019-12-11 17:24:59 +03:00
Pavel Kovalenko
c7f016fc4e AWS SDK integration - code cleanup. 2019-12-11 17:21:48 +03:00
chertus
4907ca734c Decimal specializations for min/max 2019-12-11 17:16:59 +03:00
Alexander Kazakov
292e3a0d24 Reworked TCPHandler::processOrdinaryQuery() to resolve race condition 2019-12-11 16:30:27 +03:00
Nikolai Kochetov
20026d7931 Added perftest. 2019-12-11 16:17:30 +03:00
CurtizJ
6834fbf03d implement ORDER BY optimization for some other meta-storages 2019-12-11 16:09:46 +03:00
alesapin
3229261c91 Fix dictionary_source check 2019-12-11 14:09:21 +03:00
alesapin
2940aeff23 Fix style 2019-12-11 13:24:20 +03:00
alesapin
fd9483efbe Just trigger CI 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
0ff0a52249 Missed review fixes. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f2aee64072 Minor style fix. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e41deb5848 Added comment to MergeTreePartsMover::selectPartsForMove(). 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7fd1668fde Review fixes. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
065b681a8c Boosted test_ttl_move::test_moves_to_volume_work a little. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e3ed311273 Fixed Clang build. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
67aa268bbb Finally fixed tests and logic for extended TTL syntax. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f83b28a1c1 Fixed a typo in MergeTreeData::selectMoveDestination(). 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
618a39cc8c Don't move anything if part already belongs their destination. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f72da4ab0c Removing expired rows shall not be triggered on move TTL expiration. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
8ed37801ca Finally fixed selection of destination of move TTL. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
15fb64f54b Fixed move TTL expiration logic. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
164360e7ad Fixed test_ttl_move again. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
2e853e3211 Fixed more typos in test_ttl_move. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
df002f20b1 Fixed move TTL metadata. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
14cf530542 Added move TTL rules to metadata of ReplicatedMergeTree. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7407f7c39d Placed move TTL rules to a vector. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
ae4b2b4ace Fixed some typos in test_ttl_move test. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
3250955b07 Refactored tests a little bit. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
b3427af0c1 Fixed typos in a test. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
108e2b33eb Fixed a bug with erasing columns with same name. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
0da7234d99 Added few FIXMEs to not forget. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
b3e261800d Fixes of tests for extended TTL syntax. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
ce851fc782 Fixed MergeTreeData::hasTableTTL() method according to extended TTLs. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e163ebb7f0 Fixed more typos in test_ttl_move test. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
cc70f717ed Fixed typos in test_ttl_move test. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
617bf4214f Added first version of tests for extended TTL expressions (still need refactoring). 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
cb777f6c50 Removed redundant template from updateTTL() method. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
62016feab0 Renamed TTLDestinationType to PartDestinationType. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
cc0c21604f Fixed Clang build one more time. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
ce066d3bb0 Style fixes. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
88c7220256 Fixed Clang build. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
07c4fa3cc0 Correct merge of background move pool. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
3e3e9ac56f Moved settings for BackgroundProcessingPool to configuration. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e519c04bbe Minor fix of JSON handling in MergeTreeDataPartTTLInfo. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
342ea5c30a Removed TODO comments. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
773bf7b35c Removed 'DELETE' keyword from default TTL syntax description. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
58e824b6a1 Refactored, added move enforcement on merges, fixed a bug with wrong disk selection in ReplicatedMergeTree. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
dfe0edc03f Style fix. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
76c4ac9f60 Fixed ttl move logic in background move task and added ttl enforcement on inserts. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
4cd75f926b Fixed 00933 ttl tests. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
575de5ada6 Attempt to add background moves by TTL expressions. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
893e0de37a Minor fix. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
33ded274a3 First attempt to store min/max for move ttl expressions. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
5a12986159 Updated ttl test according to new TTL syntax. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
3e984609fb Fixed ClickHouse after changing syntax. 2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7a37c4f6a9 Parser for extended TTL expressions. 2019-12-11 13:24:20 +03:00
alesapin
4385aab4a1 Merge branch 'master' into restrictions_for_external_dictionaries_from_ddl 2019-12-11 12:29:55 +03:00
Vasily Nemkov
c781908e6d Post-PR fixes
* More precise overflow check in readIntTextImpl
* writeDateTimeText now always writes sub-second part for DateTime64
* comment for validateFunctionArgumentTypes
* DateTime64-related fixes for FunctionConvertFromString
* other minoe fixes: comments, removed commented out code, variable
  renamings, etc.
2019-12-11 12:20:05 +03:00
Vladimir Chebotarev
1ca9cefa1d
Fixed typo. 2019-12-11 11:58:53 +03:00
Vladimir Chebotarev
f5d162c5ed
Fixed test_multiple_disks::test_kill_while_insert a little. 2019-12-11 07:59:37 +03:00
Vasily Nemkov
f56b2b64f2 Post-review refactoring and tests for DateTime64 and Decimal.
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
  (if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
Alexey Milovidov
4f9cd8a3c8 Update contributors 2019-12-11 06:13:33 +03:00
hcz
3a18d6b494 Add performance tests 2019-12-11 10:44:04 +08:00
hcz
2f276c2bb7 Rename bankerRound as bankersRound 2019-12-11 10:43:47 +08:00
alexey-milovidov
3540dd5c53
Update ClusterCopier.cpp 2019-12-11 04:53:29 +03:00
CurtizJ
fd5b23730e implement order by optimization for storage Merge 2019-12-11 04:35:47 +03:00
CurtizJ
45a9751c31 refactoring of order by optimization 2019-12-11 04:34:39 +03:00
Zhichang Yu
ff1b8d46e2 fixed part mutation, added test_backup_restore integration test case 2019-12-11 09:31:37 +08:00
alexey-milovidov
e73e19dc97
Merge pull request #8111 from azat/dictionary-reload-test-hotfix
Fix async nature of reload in 01036_no_superfluous_dict_reload_on_create_database*
2019-12-11 04:20:17 +03:00
alexey-milovidov
aecd5a5493
Merge pull request #8123 from ClickHouse/aku/field-prepare
Prepare for stricter type checking in Field.
2019-12-11 02:21:34 +03:00
CurtizJ
9e75892516 refactoring of order by optimization 2019-12-11 02:18:24 +03:00
alexey-milovidov
309653f60d
Merge pull request #7182 from ClickHouse/aku/zlib-msan
Update zlib-ng to fix MemorySanitizer problems.
2019-12-11 02:15:16 +03:00
alexey-milovidov
85d668ebf4
Update S3Common.cpp 2019-12-11 02:03:45 +03:00
alesapin
6842ff02c9 Fix shared build 2019-12-10 23:39:36 +03:00
alesapin
ea8994b9e4 Add restrections for several sources of external dictionaries 2019-12-10 20:27:29 +03:00
Pavel Kovalenko
c4b3cce847 AWS SDK integration - move s3 storage syntax tests to integration. 2019-12-10 19:11:13 +03:00
alesapin
67f1ff1c8b
Merge pull request #8104 from excitoon-favorites/test_move_after_merge
FIxed behavior with ALTER MOVE ran immediately after merge finish moves superpart of specified
2019-12-10 17:15:08 +03:00
Alexander Kuzmenkov
50a8a7197f Prepare for stricter type checking in Field. 2019-12-10 16:40:45 +03:00
Alexander Kuzmenkov
3df94283b3 Remove a workaround for zlib-ng MemorySanitizer problems. 2019-12-10 13:15:18 +03:00
alesapin
397a3fc2e7
Merge pull request #8098 from ClickHouse/fix_dictionary_properties
Fix dictionary properties
2019-12-10 12:55:29 +03:00
Vladimir Chebotarev
269a0246aa Added explicit check for existence of part and pair of log messages. 2019-12-10 12:47:23 +03:00
Vladimir Chebotarev
ed719f38b2 Added test_multiple_disks::test_move_after_merge. 2019-12-10 12:47:23 +03:00
VDimir
b6aadf468a Prometheus metric prefixes in CamelCase 2019-12-10 08:31:59 +00:00
hcz
8ed416ed41 Add bankerRound 2019-12-10 14:13:05 +08:00
Azat Khuzhin
65572a23fe Fix async nature of reload in 01036_no_superfluous_dict_reload_on_create_database*
Due to the async nature of SYSTEM RELOAD DICTIONARY/DICTIONARIES the
test can fail, if the reload will happen after the dictGet*():

    .862801 [ 36 ] {61df55ee-4a17-4bf3-8cfb-9478490393c3} <Debug> executeQuery: (from [::1]:37422) SYSTEM RELOAD DICTIONARY `foo 1234.dict`
    .863681 [ 36 ] {cd55d9f9-d176-4b19-bc97-d25575da2d15} <Debug> executeQuery: (from [::1]:37422) SELECT query_count FROM system.dictionaries WHERE (database = 'foo 1234') AND ...
    .863678 [ 54 ] {} <Debug> executeQuery: (internal) SELECT `key`, `val` FROM `foo 1234`.`dict_data`;

This is just a hotfix, long-term solution will be to make SYSTEM RELOAD
DICTIONARY syncronous (by adding another command or making already
existing).

Refs: #7916
2019-12-10 08:31:51 +03:00
Ding Xiang Fei
0f22f90ee5
refine zxid definition: it has two warping uint32 counters 2019-12-10 09:44:06 +08:00
Vladimir Chebotarev
ea44510b44 Minor fix of test. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
6afd8d7805 Added test_multiple_disk::test_kill_while_insert, reworked log message and fixed logic of treating stale copies. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
a2f238d8da Added more logging and switched to detaching stale part instead of removing. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
9cf7ef03af Fixed handling of MergeTreeData::DataPartPtr's in MergeTreeData::swapActivePart(). 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
374e0f7bb5 Finally fixed tests. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
c283776e84 Really fixed tests. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
89659a9129 Fixed a typo. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
fe3e89fb38 Fixed tests. 2019-12-09 23:29:44 +03:00
filimonov
f545da40e6 style 2019-12-09 23:29:44 +03:00
filimonov
0ab67c7b1f Log when part is removed after move 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
efa73608b8 Separated constant path to DeleteOnDestroy marker. 2019-12-09 23:29:44 +03:00
Vladimir Chebotarev
13c5c621c1 Attempt to ignore redundant copies of parts after move and restart. 2019-12-09 23:29:44 +03:00
alexey-milovidov
cce78ef018
Merge pull request #8036 from yurriy/mysql
Compatibility with MySQL clients which don't support sha2_password auth plugin
2019-12-09 23:11:31 +03:00
Alexey Milovidov
285139585c Updated test 2019-12-09 23:08:19 +03:00
Alexey Milovidov
da72203ceb Added a comment 2019-12-09 22:53:40 +03:00
Alexey Milovidov
2fe7472a63 Added function "greatCircleAngle"; changed earth radius 2019-12-09 22:35:25 +03:00
Alexey Milovidov
67fd108848 Added a test for "greatCircleAngle" 2019-12-09 22:34:00 +03:00
Alexey Milovidov
1e3b9af66f Added clarifications 2019-12-09 20:25:16 +03:00
Alexey Milovidov
2db25df706 Merge branch 'master' into geodist-less-wrong 2019-12-09 18:42:37 +03:00
Nikolai Kochetov
fd62c09a8b Update FunctionCapture and FunctionExpression. 2019-12-09 17:36:47 +03:00
Alexander Burmak
5a93441445 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs 2019-12-09 17:18:47 +03:00
alesapin
85aac386aa Missed commit 2019-12-09 17:06:28 +03:00
alesapin
642ce2d751 Fix escaping and add string expressions support 2019-12-09 17:05:58 +03:00
Nikolai Kochetov
18bfa684a2 Rename IFunction.h to IFunctionImpl.h in functions implementations. 2019-12-09 16:12:54 +03:00
Pavel Kovalenko
ba59991912 AWS SDK integration - added new lines at the end of files. 2019-12-09 15:36:06 +03:00
Pavel Kovalenko
971c48e1cf AWS SDK integration - fixed test with remote host filter. 2019-12-09 15:05:16 +03:00
Pavel Kovalenko
94e9638006 AWS SDK integration added url checking. 2019-12-09 13:58:57 +03:00
alexey-milovidov
9106b2854a
Merge pull request #8084 from azat/read-temporary-tables-on-failure
Read temporary tables on failure to avoid interpreting that bits as query
2019-12-09 13:49:09 +03:00
Alexander Burmak
f27d462986 Minor amendments 2019-12-09 08:47:12 +03:00
alexey-milovidov
d051a03794
Merge pull request #8042 from excitoon-favorites/gmtime
Removed `localtime` from `HTTPDictionarySource::getUpdateFieldAndDate…
2019-12-09 04:57:18 +03:00
alexey-milovidov
79215bd029
Merge pull request #8025 from excitoon/patch-2
Added `-D LINKER_NAME=lld` to instruction to sanitizers.
2019-12-09 04:56:17 +03:00
alexey-milovidov
4aa6b61859
Update sanitizers.md 2019-12-09 04:55:58 +03:00
alexey-milovidov
624be3679b
Merge branch 'master' into mysql 2019-12-09 04:53:30 +03:00
alexey-milovidov
0d278b414c
Merge pull request #8046 from amosbird/interpose
Interpose malloc symbols entirely.
2019-12-09 04:33:49 +03:00
alexey-milovidov
abb823af7f
Merge pull request #8079 from yurriy/mysql-types-test
Fixed Float64 conversion in MySQL protocol
2019-12-09 04:32:22 +03:00
alexey-milovidov
a3c6402e8b
Added perf test for collations (#8087) 2019-12-09 04:23:58 +03:00
Alexey Milovidov
b5e05d761b Whitespace 2019-12-09 04:15:42 +03:00
Alexey Milovidov
9399b39070 Fixes 2019-12-09 04:09:03 +03:00
Alexey Milovidov
41a6eedadc Added comment 2019-12-09 04:02:09 +03:00
Alexey Milovidov
c6cc5770cc Merge branch 'geodist-less-wrong' of github.com:yandex/ClickHouse into geodist-less-wrong 2019-12-09 03:20:45 +03:00
Alexey Milovidov
2afdb4f6a8 Added a test 2019-12-09 03:20:34 +03:00
Alexey Milovidov
fb908eae0a Fixed comments 2019-12-09 03:02:50 +03:00
Alexey Milovidov
b977aa3cdf Fixed error 2019-12-09 02:59:25 +03:00
Alexey Milovidov
c738d92411 Maybe better memory layout 2019-12-09 02:55:56 +03:00
Alexey Milovidov
171bb14614 Addition to prev. revision 2019-12-09 02:41:34 +03:00
Alexey Milovidov
1835087291 Added function geoDistance and returned the old behaviour of greatCircleDistance 2019-12-09 02:40:53 +03:00
Alexey Milovidov
109542c445 Small improvements 2019-12-09 02:09:05 +03:00
Alexey Milovidov
09df6a0c00 Small improvements 2019-12-09 02:02:44 +03:00
Alexey Milovidov
f7320e50b7 Renamed variables 2019-12-09 02:00:34 +03:00
Alexey Milovidov
a04ed4883d Added comments 2019-12-09 01:44:17 +03:00
Alexey Milovidov
4f3e7427e8 Fixed error in perf test 2019-12-09 01:41:45 +03:00
Alexey Milovidov
19f05c4594 Removed too strict type check 2019-12-09 01:09:32 +03:00
Alexey Milovidov
3d71cb0596 Make the code of greatCircleDistance less wrong 2019-12-09 00:59:41 +03:00
Alexey Milovidov
eca601239f Removed a test with typo in its name 2019-12-09 00:37:04 +03:00
Nikolai Kochetov
a73eb4292b Functions refactor part 1. 2019-12-09 00:06:37 +03:00
alexey-milovidov
7e8b177a3b
Merge pull request #8077 from nvartolomei/nv/system-query-parser
Fix SYSTEM query parser suggestions
2019-12-09 00:04:14 +03:00
alexey-milovidov
cf194edfaf
Merge pull request #8016 from filimonov/kafka_fixes
Kafka fixes
2019-12-09 00:03:36 +03:00
alexey-milovidov
ee7d675f86
Update KafkaBlockInputStream.cpp 2019-12-09 00:03:09 +03:00
alexey-milovidov
a7f5ac7099
Merge pull request #8081 from errx/master
Added new function JSONExtractArrayRaw
2019-12-08 23:52:56 +03:00
alexey-milovidov
21a7a53491
Update FunctionsJSON.h 2019-12-08 23:48:34 +03:00
alexey-milovidov
16754bfff5
Merge pull request #8043 from excitoon-favorites/systemmergespaths
Added information about paths to `system.merges`.
2019-12-08 23:30:39 +03:00
Azat Khuzhin
7b4fcc5fc5 Read temporary tables on failure to avoid interpreting that bits as query
Before this patch if the query failes (due to "Too many simultaneous
queries" for example) it will not read external tables info, and the
next request will interpret them as the query beginning at got:

  DB::Exception: Unknown packet 11861 from client

v2: reordering in the executeQuery() is not enough, since the query
    can fail in other places, before, i.e. quotas
v3: I cannot make non-intergration test (since there is no ability to
    receive "Unknown packet" via client, only from the server log),
    hence added one
2019-12-08 23:26:43 +03:00
Alexander Burmak
edd11abad1 Addressed code review comments 2019-12-08 19:47:51 +03:00
tyrionhuang
6cf7ac045b fix BitmapAnd error, like issue #5479: bitmapHasAny in scalar subquery causes segment fault 2019-12-08 23:10:37 +08:00
Oleg Matrokhin
8ea7cab7e4 simplify expression 2019-12-08 18:07:06 +03:00
tyrionhuang
213e2dd700 fix BitmapAnd error, like issue #5479: bitmapHasAny in scalar subquery causes segment fault 2019-12-08 22:44:17 +08:00
Oleg Matrokhin
2cab90b9f4 fmt 2019-12-08 17:36:31 +03:00
Oleg Matrokhin
36303a82f7 add tests 2019-12-08 17:24:37 +03:00
Alexander Burmak
8104395dd2 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs 2019-12-08 11:45:18 +03:00
alesapin
af7b8f9274
Merge pull request #8051 from ClickHouse/fix_collations_behaviour
Fix several bugs with collations.
2019-12-08 11:10:23 +03:00
Sergei Shtykov
b4839c52db The most working of all the previous versions. 2019-12-08 10:56:07 +03:00
Yuriy
e0796261aa mysql protocol: fixed Float32 conversion and added types test 2019-12-08 08:40:08 +03:00
Oleg Matrokhin
10cf9e5b9f implement new function 2019-12-08 03:18:24 +03:00
Nicolae Vartolomei
f5e764eba1 Fix SYSTEM query parser suggestions 2019-12-07 23:05:57 +00:00
Vladimir Chebotarev
984e81876a Fixed Clang build. 2019-12-07 22:30:37 +03:00
Vladimir Chebotarev
bb0de2509a Fixed test_system_merges/test.py::test_mutation_simple[replicated] test. 2019-12-07 22:23:25 +03:00
Vladimir Chebotarev
c60493fe72 Fixed test_system_merges/test.py::test_merge_simple[replicated] test. 2019-12-07 22:02:01 +03:00
alesapin
2fffe2802f Review fixes 2019-12-07 16:13:14 +03:00
Vladimir Chebotarev
ed2ec2d15d Fixed test_system_merges to correctly check replicated node set. 2019-12-07 13:35:13 +03:00
Vladimir Chebotarev
1513e5a854 Added replicated tests for system.merges. 2019-12-07 13:15:01 +03:00
Vladimir Chebotarev
1fbfb50fba Fixed updating result_part_path while merging and mutating. 2019-12-07 12:54:05 +03:00
Vladimir Chebotarev
b64b2cff09 Added simple non-replicated tests for system.merges. 2019-12-07 11:40:49 +03:00
alesapin
b9591a8bb4 Fix variable scope 2019-12-07 11:17:01 +03:00
Vladimir Chebotarev
05a05b5fb6 Fixed result_part_part of a mutation. 2019-12-07 11:10:08 +03:00
millb
eb26a00c4e Fixed bugs 2019-12-07 02:29:06 +03:00
alesapin
5b828a6cbf Better test 2019-12-07 01:25:14 +03:00
alesapin
3881a85c39 Review fixes 2019-12-07 01:22:12 +03:00
alexey-milovidov
56b2ec8b4a
Merge pull request #7693 from millb/hashes_from_values_of_UUID_type
Created cityHash for decimal and UUID types.
2019-12-07 00:30:28 +03:00
millb
6a5762d86c Fixed bugs 2019-12-06 22:31:33 +03:00
millb
baf1bb4b58 Fixed bugs 2019-12-06 22:29:58 +03:00
millb
11e0b333dc Fixed bugs 2019-12-06 22:27:34 +03:00
alexey-milovidov
113ddb2588
Update FunctionsHashing.h 2019-12-06 22:21:22 +03:00
alexey-milovidov
1c1351d644
Update FunctionsHashing.h 2019-12-06 22:19:19 +03:00
alexey-milovidov
e0aa12717b
Update FunctionsHashing.h 2019-12-06 22:18:47 +03:00
alexey-milovidov
bef3a0d2d2
Merge pull request #8071 from azat/Connection-sendCancel-SIGSEGV
Avoid null dereference after "Unknown packet X from server"
2019-12-06 22:15:18 +03:00
alexey-milovidov
36203721de
Update Connection.cpp 2019-12-06 22:14:27 +03:00
millb
6799feaba6 Merge branch 'hashes_from_values_of_UUID_type' of github.com:millb/ClickHouse into hashes_from_values_of_UUID_type 2019-12-06 22:08:40 +03:00
millb
b13cd85613 Applied the required changes 2019-12-06 22:08:21 +03:00
millb
16ce798345 Suffix for integral values 2019-12-06 21:59:48 +03:00
Azat Khuzhin
e4209d6a3f Avoid null dereference after "Unknown packet X from server"
stracktrace:
  ...
  2  DB::WriteBuffer::nextIfAtEnd (this=0x0) at ../dbms/src/IO/WriteBuffer.h:66
  3  DB::writeVarUInt (ostr=..., x=3) at ../dbms/src/IO/VarInt.h:191
  4  DB::Connection::sendCancel (this=0x7f0b7f5e5610) at ../dbms/src/Client/Connection.cpp:444
  5  0x0000561738d0b565 in DB::MultiplexedConnections::sendCancel (this=0x7f0c9b0173e0) at ../dbms/src/Client/MultiplexedConnections.cpp:174
  6  0x00005617387d22df in DB::RemoteBlockInputStream::tryCancel (this=0x7f0cc45f9810, reason=<optimized out>) at /usr/include/c++/9/bits/unique_ptr.h:352
  7  0x00005617387d2a37 in DB::RemoteBlockInputStream::cancel (this=<optimized out>, kill=false) at ../dbms/src/DataStreams/RemoteBlockInputStream.cpp:121
  8  0x000056173891f10c in DB::ParallelInputsProcessor<DB::UnionBlockInputStream::Handler>::cancel (this=0x7f0c370ec168, kill=kill@entry=false)
  9  0x000056173892cfce in DB::UnionBlockInputStream::cancel (kill=false, this=<optimized out>) at ../dbms/src/DataStreams/UnionBlockInputStream.h:99
  10 DB::UnionBlockInputStream::Handler::onException (this=0x7f0c370ec160, exception=...) at ../dbms/src/DataStreams/UnionBlockInputStream.h:240
  11 DB::ParallelInputsProcessor<DB::UnionBlockInputStream::Handler>::thread (this=0x7f0c370ec168, thread_group=..., thread_num=<optimized out>)
      at ../dbms/src/DataStreams/ParallelInputsProcessor.h:217

And in onException frame there is:
  (gdb) p ((DB::Exception *)exception._M_exception_object)._msg._M_dataplus._M_p
  $6 = (...) 0x7f0c9b1e7a40 "Unknown packet 9 from server HOSTNAME:PORT"

And on "Unknown packet" there is disconnect() before, see default in
switch statement at Connection::receivePacket().
2019-12-06 21:55:17 +03:00
Mikhail Korotov
688ca7bfde performance test added 2019-12-06 21:10:03 +03:00
Mikhail Korotov
f63fe65e53 Simple tests added 2019-12-06 20:23:41 +03:00
Mikhail Korotov
3528555174
Update FunctionsHashing.h 2019-12-06 19:33:37 +03:00
Amos Bird
971770a040
Interpose malloc symbols entirely. 2019-12-07 00:32:00 +08:00
Mikhail Korotov
5a1ad17736
Update FunctionsHashing.h 2019-12-06 19:30:46 +03:00
millb
c801845185 Applied the required changes 2019-12-06 19:27:45 +03:00
millb
e3426e39e8 Fixed bugs 2019-12-06 18:43:50 +03:00
Pavel Kovalenko
6b8d599956 AWS SDK integration formatting issues. 2019-12-06 18:42:55 +03:00
Vxider
47f8d9713a build fix 2019-12-06 23:35:23 +08:00
millb
41008c9cca Merge branch 'master' into hashes_from_values_of_UUID_type 2019-12-06 18:22:06 +03:00
millb
56c7e53bdc Changes applied 2019-12-06 18:21:58 +03:00
Pavel Kovalenko
621d3dd2d1 AWS SDK integration formatting issues. 2019-12-06 18:14:39 +03:00
Pavel Kovalenko
dbcc06cc80 Removed CH docker image building in tests. 2019-12-06 17:57:43 +03:00
Pavel Kovalenko
81b4b1a538 AWS SDK added doc. 2019-12-06 17:54:20 +03:00
Pavel Kovalenko
c840fdefc0 Merge branch 'master' into aws-s3-sdk-integration
# Conflicts:
#	dbms/src/Common/ErrorCodes.cpp
#	dbms/src/IO/ReadBufferFromS3.cpp
#	dbms/src/IO/ReadBufferFromS3.h
#	dbms/src/IO/WriteBufferFromS3.cpp
#	dbms/src/IO/WriteBufferFromS3.h
#	dbms/src/Storages/StorageS3.cpp
2019-12-06 17:52:29 +03:00
Pavel Kovalenko
52b26b1376 AWS SDK formatting issues. 2019-12-06 17:48:56 +03:00
alexey-milovidov
3d279499d0
Merge pull request #7632 from hczhcz/patch-2
Allow relative user_files_path
2019-12-06 17:44:18 +03:00
Pavel Kovalenko
a9dfefd37f AWS SDK integration rework. 2019-12-06 17:37:21 +03:00
robot-clickhouse
6d56509109 Auto version update to [19.19.1.1] [54430] 2019-12-06 17:22:00 +03:00
robot-clickhouse
114db61c84 Auto version update to [19.18.1.1805] [54429] 2019-12-06 17:21:25 +03:00
Vitaliy Zakaznikov
f7b4768642 Adding more live view tests. 2019-12-06 15:19:21 +01:00
Nikolai Kochetov
a73975d6a3
Merge pull request #8063 from Akazz/tests/better_server_pid_detection
Improved getting ClickHouse server pid in clickhouse-test
2019-12-06 16:26:47 +03:00
Vitaliy Zakaznikov
191afb11b0 Fixing dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.sql 2019-12-06 14:01:17 +01:00
Vitaliy Zakaznikov
16d6674c00 Adding test case from https://github.com/ClickHouse/ClickHouse/issues/7773. 2019-12-06 13:57:28 +01:00
Vitaly Baranov
8bd9709d1d
Merge pull request #8044 from vitlibar/simplify-format-of-header-of-distributed-send
Simplify format of the header of data sent to a shard in a distributed query.
2019-12-06 15:46:00 +03:00
Vitaliy Zakaznikov
590a1f7b87 Updating tests to use a column alias in addition to the table alias. 2019-12-06 13:34:52 +01:00
Vitaliy Zakaznikov
435ce84939 Setting table alias when replacing subquery with a table.
Adding extra tests that use table aliases.
2019-12-06 13:31:08 +01:00
Mikhail Filimonov
4e4957e052 returning allowNext() to the proper position 2019-12-06 12:22:36 +01:00
Alexander Kazakov
faedac0b95 Rewrite command line for getting server pid 2019-12-06 13:58:46 +03:00
Nikita Mikhaylov
34d20a0ef4
updating test after resolving conflicts 2019-12-06 13:17:51 +03:00
Nikita Mikhaylov
6fc5248a27
Merge branch 'master' into limit_with_ties 2019-12-06 13:16:54 +03:00
alesapin
de6cd490ef
Merge pull request #8037 from vitlibar/system-reload-dictionary-causes-complete-reloading
SYSTEM RELOAD DICTIONARY reloads a dictionary completely
2019-12-06 12:55:41 +03:00
Yuriy
5237e3c059 better exception text 2019-12-06 04:42:12 +03:00
Yuriy
6c8e2d8b85 fixed getting double SHA1 in mysql_native_password auth plugin 2019-12-06 04:35:49 +03:00
Yuriy
e91d4722a4 fixed occasional federated server test failures 2019-12-06 04:35:49 +03:00
Vitaly Baranov
2133492598
Merge pull request #7257 from vitlibar/RBAC-2
RBAC-2
2019-12-06 03:19:39 +03:00
Vitaliy Zakaznikov
ae3749d764 Fixing clang error in dbms/src/Storages/LiveView/StorageBlocks.h 2019-12-05 19:08:40 -05:00
Vitaliy Zakaznikov
2d6645cc1b Fixing clang error. 2019-12-05 17:04:55 -05:00
Vitaliy Zakaznikov
613c343c09 Fixing styling issues. 2019-12-05 16:48:25 -05:00
Vitaliy Zakaznikov
32fe9ea9d5 Fixing issue with support for nested subqueries.
Adding additional live view with subquery tests.
2019-12-05 22:42:00 +01:00
Mikhail Filimonov
7d760a964d Fix for timestamp & style 2019-12-05 22:21:15 +01:00
Nikita Mikhaylov
46478db2f8 Merge branch 'master' of github.com:ClickHouse/ClickHouse 2019-12-05 22:09:15 +03:00
Nikita Mikhaylov
88027947a1
update test after resolving conflicts 2019-12-05 21:59:30 +03:00
Nikita Mikhaylov
4946409a78
Merge branch 'master' into limit_with_ties 2019-12-05 21:58:47 +03:00
Nikita Mikhaylov
de2d996063
Merge pull request #7786 from nikitamikhaylov/incorrect_count
Incorrect count() with condition query result for SummingMergeTree.
2019-12-05 21:56:54 +03:00
Nikita Mikhaylov
5e60e0661f
delete useless reference 2019-12-05 21:54:18 +03:00
Nikita Mikhaylov
826a675974
delete useless reference 2019-12-05 21:53:44 +03:00
Nikita Mikhaylov
7783475aaa
delete useless test 2019-12-05 21:53:26 +03:00
alesapin
6afafef86c
Merge pull request #8047 from ClickHouse/fix_check_query_again
Fix bug in checkDataPart
2019-12-05 21:31:36 +03:00
Vitaly Baranov
6306e2ab91 Add DCL to manage quotas. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
8035af3a79 Make Field::getScaleMultiplier() inline to allow using FieldVisitorConvertToNumber
in the "clickhouse_parsers" library.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
3e6619c076 Move IntervalKind-related functions to a separate file. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
ae29628779 Add an integration test for quotas. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
38fa1af5ca Disable quota consumptions for the system queries and for selecting
from the `system.quota` and `system.quotas` tables.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
d9b1a733fc Add table system.quotas. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
55a05e5643 Add functions currentQuota() and currentQuotaKey(). 2019-12-05 21:03:57 +03:00
Vitaly Baranov
0e21673271 Rework Quota based on IAccessEntity. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
c733e5b50b Add functions for writing std::chrono to string. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
7db6c60bb1 Add AccessControlManager and an interface for the storage. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
44f3ab5f96 Extend typeid_cast() for shared_ptr. 2019-12-05 21:03:57 +03:00
Vitaly Baranov
4d784d6f44 Add test. 2019-12-05 20:07:33 +03:00
Vitaly Baranov
9b44848179 SYSTEM RELOAD DICTIONARY now reloads a dictionary with update_field completely. 2019-12-05 19:45:05 +03:00
alesapin
772bb0b70b Fix collation locales 2019-12-05 18:35:09 +03:00
Nikita Mikhaylov
4f74974492 fixed warning unique_lock 2019-12-05 17:34:35 +03:00
Vasily Nemkov
5b1a3b24e5 Disabled codec performance tests
Since those significantly delay unit test execution by generating huge
amount of data used only for performance tests.
Also it makes little sense running those on CI.
2019-12-05 17:21:26 +03:00
Vasily Nemkov
ae5a4f15d0 Fixed style and compilation error on GCC9 2019-12-05 16:49:56 +03:00
Vitaliy Zakaznikov
28db10fd7d Fixing styling errors. 2019-12-05 14:26:47 +01:00
alesapin
227d0ba9d6 Add one more test 2019-12-05 15:39:02 +03:00
alesapin
cd43debd79 Test with non adaptive parts 2019-12-05 15:18:18 +03:00
alesapin
ee46a73d25 Fix bug in checkDataPart when last granule has same number of rows as in .mrk file 2019-12-05 15:01:36 +03:00
chertus
852e891499 better comment 2019-12-05 15:01:34 +03:00
Vitaliy Zakaznikov
e20793b2dc Merge remote-tracking branch 'origin/master' into live_view_support_for_subquery 2019-12-05 06:54:04 -05:00
Vitaliy Zakaznikov
1e0e00b7e4 Small fixes to empty lines and style. 2019-12-05 06:53:36 -05:00
Nikolai Kochetov
26e415736a
Merge pull request #7665 from 4ertus2/joins
New ANY, SEMI, ANTI JOIN (HashJoin only)
2019-12-05 14:38:20 +03:00
Nikolai Kochetov
86ff01d3aa
Merge pull request #7988 from ClickHouse/processors-4.4
Better updated ports check in processors
2019-12-05 13:54:40 +03:00
Vitaly Baranov
133675a86a Simplify format of the header of data sending to a shard in a distributed query. 2019-12-05 13:34:25 +03:00
Mikhail Korotov
88e37020e0 JSONCompactEachRow and JSONCompactEachRowWithNamesAndTypes (#7841)
* Research commit

* Created Output EachRow Format

* Fixed bugs

* Created output format JSONCompactEachRowWithNamesAndTypes without totals

* Fixed bugs

* Fixed bugs

* Totals for JSONCompactEachRowWithNamesAndTypes

* Deleted needless debug

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Working commit

* Tests added

* Input Format for JSONCompactEachRow

* Fixed bugs for JSONCompactEachRow Input format

* Fixed bugs for JSONCompactEachRowRowInputFormat.cpp

* JSONCompactEachRow and JSONCompactEachRowWithNamesAndTypes united

* Created input format for both formats

* fixed bugs

* fixed bugs

* Working commit

* Working commit

* Working commit

* Working commit

* tests

* Working commit

* Final tests

* Performance tests added
2019-12-05 13:13:40 +03:00
Vladimir Chebotarev
73b0315b2f Added information about lld to instruction to sanitizers. 2019-12-05 13:08:34 +03:00
Vladimir Chebotarev
b9db05e1fd Revert "Added -D LINKER_NAME=lld to instruction to sanitizers."
This reverts commit c5a30d39a0.
2019-12-05 13:04:53 +03:00
Vladimir Chebotarev
60077e2311 Revert "Minor typo was fixed."
This reverts commit e436bf140c.
2019-12-05 13:04:47 +03:00
Nikita Mikhaylov
a3f3a333e2 better test 2019-12-05 12:55:06 +03:00
Nikita Mikhaylov
b6413d4a04 better 2019-12-05 12:52:49 +03:00
Nikita Mikhaylov
9d005d1565 true changes 2019-12-05 12:50:42 +03:00
Vladimir Chebotarev
7c7562987d Removed is_move from system.merges. 2019-12-05 12:31:45 +03:00
hcz
8a464995e7 Fix 2019-12-05 17:22:00 +08:00
Vladimir Chebotarev
3c35b3db60 Removed localtime from HTTPDictionarySource::getUpdateFieldAndDate(). 2019-12-05 12:18:51 +03:00
Vitaly Baranov
2cc78413ed
Merge pull request #7914 from azat/dist-send-extra-checksum
Add checksum for extra info/query in distributed sends
2019-12-05 11:43:08 +03:00
alesapin
a524e82a7f
Merge pull request #8029 from ClickHouse/fix_dict_partially_update_failover
Fix external dictionaries failover, when they have invalidate_query.
2019-12-05 11:12:17 +03:00
Yuriy Baranov
1df4250b2f
Update MySQLHandler.cpp 2019-12-05 04:52:48 +03:00
Yuriy Baranov
67d72f35b9
Update Authentication.cpp 2019-12-05 03:35:52 +03:00
Yuriy
9a222c6a2a compare with proper variable 2019-12-05 03:23:12 +03:00
Yuriy
4b170ae769 fixed compilation error 2019-12-05 03:19:36 +03:00
Yuriy
564b58d2f6 using mysql_native_password for passwordless users 2019-12-05 02:37:11 +03:00
Yuriy
9d0a0d0db0 fixed type 2019-12-05 02:32:17 +03:00
Yuriy
dbe7dc1185 using SHA1 MySQL auth plugin for plaintext passwords 2019-12-05 02:30:06 +03:00
Vitaliy Zakaznikov
7f92e6a21f Draft of proper support for subquries in live view tables. 2019-12-05 00:29:37 +01:00
chertus
d3d2e39955 fix SEMI RIGHT JOIN 2019-12-04 23:23:07 +03:00
Azat Khuzhin
3a72e1c12a Add checksum for extra info/query in distributed sends
This extras includes:
- server revision
- query settings
- query

Otherwise the code can try to interpret data, and got for instance
std::length_error exception, which is not catched (to mark the part as
broken). Also this will protect from the corruptions on disk.

And add a simple test, since dbms/tests/integration/test_insert_into_distributed too complex.

Also simplify the code by using readStringBinary() over
readVarUInt()+b.readStrict() (this also gains additional checks that
string is not bigger then 1GB).

Refs: #4852 (8ef7f3589a)
v2: avoid ABI breakage (suggested by @vitlibar)
v3: minor code fixes (suggested by @vitlibar) and as a consequence clang-8 build fix
v4: drop DBMS_MIN_REVISION_WITH_EXTRAS_CHECKSUM_IN_DIST_BATCH and also
    revert some renames to make the patch cleaner
2019-12-04 22:54:38 +03:00
alesapin
172bbb1a2f Fix flappy test, because dictionaries are loaded lazily 2019-12-04 21:30:47 +03:00
alesapin
cfa1b37fd6
Merge pull request #8032 from ClickHouse/ddl_dictionaries_if_not_exists
Create dictionary if not exists
2019-12-04 21:28:05 +03:00
Nikolai Kochetov
715d7a6455 Disable processors by default. 2019-12-04 20:24:53 +03:00
alesapin
7b8443710d Better code 2019-12-04 19:20:24 +03:00
alesapin
40c6966223 Don't check dictionary modification if it's already have an exception. 2019-12-04 18:23:18 +03:00
alesapin
2592e44eef
Merge pull request #8028 from ClickHouse/fix_libc_compatibility_of_odbc_bridge
Fix unintendent dependency from GLIBC 2.16 in clickhouse-odbc-bridge
2019-12-04 18:15:26 +03:00
alesapin
3128b62f0e Create dictionary if not exists 2019-12-04 18:11:36 +03:00
alesapin
a41764cccc Reload dictionary with invalidate query if it has exception 2019-12-04 17:45:56 +03:00
alesapin
ce05cea192 Add sleep for test 2019-12-04 17:22:49 +03:00
alesapin
711fb5e667 Added tests for external dictionary invalidate query failover 2019-12-04 16:53:05 +03:00
Nikolai Kochetov
3ac103f21c Fix the number of rows in MergingSortedTransform. 2019-12-04 16:45:42 +03:00
alesapin
516876becb Fix unintendent dependency from GLIBC 2.16 in clickhouse-odbc-bridge 2019-12-04 15:39:09 +03:00
Nikolai Kochetov
901a6b4627 Style fix. 2019-12-04 12:56:08 +03:00
Nikolai Kochetov
efe1616fda Fix optimization for 'WHERE column in (empty set)' case. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
81b5b17828 Fix pvs studio varning. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
fa98587c19 Init update_info in port. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
4337fc20b5 Enable processors by default. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
8524a75580 Check once if filter column can be always false in filter transform. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
9465183408 Add info about affected ports after prepare. 2019-12-04 12:55:01 +03:00
Nikolai Kochetov
4f2f474fde Add info about affected ports to IProcessor::prepare 2019-12-04 12:55:01 +03:00
alesapin
eb17d51dd4 Remove unused function 2019-12-04 12:49:54 +03:00
alesapin
d1d3bac744 Better 2019-12-04 12:48:08 +03:00
Vladimir Chebotarev
e436bf140c
Minor typo was fixed. 2019-12-04 12:47:51 +03:00
Vladimir Chebotarev
c5a30d39a0
Added -D LINKER_NAME=lld to instruction to sanitizers. 2019-12-04 12:46:39 +03:00
alesapin
ace44e0717 Add test for incorrect settings 2019-12-04 12:34:05 +03:00
alesapin
9e5f13e7af Merge branch 'fix_metric_suffix_in_settings_value' of https://github.com/millb/ClickHouse into millb-fix_metric_suffix_in_settings_value 2019-12-04 12:22:29 +03:00
alesapin
8877129d60
Merge pull request #8012 from ClickHouse/millb-url_engine_problem
Merging [#7154]
2019-12-04 12:13:15 +03:00
VDimir
29312f5153 Revert "Metric names in prometheus-friendly snake_case format"
This reverts commit 2ddb801d0b.
2019-12-04 07:54:09 +00:00
Mikhail Filimonov
34275626de Fix for https://github.com/ClickHouse/ClickHouse/issues/8003 : old producers do not write timestamp, but column still should have enough rows 2019-12-03 23:03:43 +01:00
Mikhail Filimonov
3de3ba336a Fix Native format in Kafka 2019-12-03 22:12:47 +01:00
Mikhail Filimonov
6e426592a7 Make the formats like RowBinaryWithNamesAndTypes work in Kafka & do not try to parse buffer when it at eof 2019-12-03 22:03:22 +01:00
alesapin
fa4728d44f Fix style 2019-12-03 20:57:00 +03:00
alesapin
f0e9715f10 Fix test 2019-12-03 20:36:02 +03:00
Nikolai Kochetov
7b3c56990d
Merge pull request #8005 from ClickHouse/add-more-checks-to-chunk
Add forgotten rows number check to chunk constructor.
2019-12-03 20:26:19 +03:00
alesapin
2a43daec5c Buildable code 2019-12-03 20:15:16 +03:00
alesapin
20e4e92c49 Fix some conflicts 2019-12-03 19:32:41 +03:00
Pavel Kovalenko
a9e2327ec0 AWS S3 SDK integration. 2019-12-03 19:23:24 +03:00
alexey-milovidov
8cb5402179
Merge pull request #8006 from CurtizJ/and_perftest
Add perf test for function 'and'.
2019-12-03 19:06:26 +03:00
Alexander Burmak
21623c3308 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs 2019-12-03 18:16:19 +03:00
chertus
3829df0e7b fix comment 2019-12-03 17:38:13 +03:00
chertus
e160d35e54 more Join.addJoinedBlock() refactoring 2019-12-03 17:30:51 +03:00
Nikolai Kochetov
31d5c66867 Fix num rows in IRowInputFormat 2019-12-03 16:43:40 +03:00
Alexander Burmak
108c792fd9 Fixed typos in ExternalLoader.h and CrossToInnerJoinVisitor.cpp 2019-12-03 16:39:42 +03:00
chertus
46b27e4dd1 perf: move heavy addJoinedBlock() operations out of lock 2019-12-03 16:31:52 +03:00
CurtizJ
828f3ac3b2 add perf test for function and 2019-12-03 16:28:07 +03:00
chertus
3dc6ef421e perf: do not make row filter if not needed 2019-12-03 15:55:20 +03:00
alesapin
54088db46a
Merge pull request #8001 from ClickHouse/add_time_to_func_tests
Added argument --print-time to tests.
2019-12-03 15:38:11 +03:00
alexey-milovidov
1b2297bcee
Merge pull request #7999 from litao91/typo_fix
Fix a minor typo on formatting UNION ALL AST
2019-12-03 15:29:49 +03:00
alexey-milovidov
aadf7c689c
Merge pull request #7993 from ClickHouse/merge-great-circle-distance
Merging #7307
2019-12-03 15:23:38 +03:00
alexey-milovidov
f09c29a2b6
Merge pull request #7992 from ClickHouse/excitoon-favorites-s3auth
Merging #7623
2019-12-03 15:21:12 +03:00
Vasily Nemkov
37832c9497 Removed code duplication and cleaned up headers mess a bit 2019-12-03 15:14:07 +03:00
Nikolai Kochetov
448d755a3b Add forgotten rows number check to chunk constructor. 2019-12-03 14:56:51 +03:00
Vasily Nemkov
b49e3eae86 Performance improvement for Gorilla and DoubleDelta: through BitReader and BitWriter
BitWriter and BitReader are now operating on memory directly rather than via Read/Write buffers.
2019-12-03 14:45:26 +03:00
Vasily Nemkov
b29ed823ed Performance improvement for DoubleDelta:
* inlined getDeltaWriteSpec
 * got rid of std::singbit()
2019-12-03 14:45:26 +03:00
Vasily Nemkov
b6372d40f0 More accurate and complex test for BitWriter and BitReader 2019-12-03 14:45:23 +03:00
Nikolai Kochetov
f2ff3b3ddd Added argument --print-time to tests. 2019-12-03 12:59:41 +03:00
litao91
d9607c50fe
Fix a minor typo on formatting UNION ALL AST 2019-12-03 16:58:00 +08:00
Alexey Milovidov
40b0f12755 Removed tons of garbage from "greatCircleDistance" function. But algorithm is still unclear. 2019-12-03 05:25:23 +03:00
alexey-milovidov
0c904f1484
Merge pull request #7721 from 4ertus2/decimal
Basic GatherUtils support for Decimals
2019-12-03 05:15:38 +03:00
alexey-milovidov
0734d4695b
Merge pull request #7724 from 4ertus2/some
Missing array functions for Decimals
2019-12-03 05:14:33 +03:00
alexey-milovidov
812df3aef3
Merge pull request #7755 from nikitamikhaylov/storage_set
Using the Set engine happen Exception: Method read is not supported by storage Set
2019-12-03 05:09:47 +03:00
alexey-milovidov
f1d75d9722
Update 01030_storage_set_supports_read.sql 2019-12-03 05:09:33 +03:00
alexey-milovidov
ef66c453c4
Update ExpressionAnalyzer.h 2019-12-03 05:09:05 +03:00
alexey-milovidov
cdaa913d1f
Update ExpressionAnalyzer.h 2019-12-03 05:08:41 +03:00
alexey-milovidov
4159e77e1a
Merge pull request #7835 from filimonov/fix_redis_builds
Fix build with Poco Redis
2019-12-03 05:06:51 +03:00
Alexey Milovidov
2474cdfa09 Removed tons of garbage from "greatCircleDistance" function. But algorithm is still unclear. 2019-12-03 04:55:46 +03:00
Alexey Milovidov
0da80b3c7b Merge branch 'master' of github.com:yandex/ClickHouse into enable-experimental-indices-and-make-settings-obsolete 2019-12-03 04:35:42 +03:00
alexey-milovidov
f5e88f8cd5
Merge pull request #7307 from ClickHouse/new-branch-for-new-geodist
Speed up greatCircleDistance function with test
2019-12-03 04:34:35 +03:00
alexey-milovidov
dbc95e27be
Update greatCircleDistance.cpp 2019-12-03 04:33:36 +03:00
Alexey Milovidov
eef44d3fc5 Merge branch 'master' into enable-experimental-indices-and-make-settings-obsolete 2019-12-03 04:31:08 +03:00
Alexey Milovidov
49d25e06a8 Added a test 2019-12-03 04:29:19 +03:00
Alexey Milovidov
93ef18501f Added a test 2019-12-03 04:27:48 +03:00
Alexey Milovidov
199a209c82 Added a test 2019-12-03 04:23:17 +03:00
Alexey Milovidov
8fa05a212b Fixed bug in #7623 2019-12-03 04:22:25 +03:00
alexey-milovidov
839cfd1f4b
Update ProfileEvents.cpp 2019-12-03 04:17:37 +03:00
alexey-milovidov
30029e5800
Update ProfileEvents.cpp 2019-12-03 04:16:53 +03:00
alexey-milovidov
4183266a02
Update CurrentMetrics.cpp 2019-12-03 04:15:56 +03:00
alexey-milovidov
937386a7c9
Update Server.cpp 2019-12-03 04:14:01 +03:00
alexey-milovidov
edede563c9
Merge pull request #7747 from hczhcz/patch-1113
Fix empty array handling in arraySplit
2019-12-03 04:00:31 +03:00
alexey-milovidov
87adf355e8
Merge pull request #7935 from filimonov/kafka_perf
[wip] attempt to improve kafka parsing performance
2019-12-03 03:52:40 +03:00
alexey-milovidov
b6edda194f
Update KafkaBlockInputStream.cpp 2019-12-03 03:52:02 +03:00
alexey-milovidov
6fdfdcfd4e
Update ValuesBlockInputFormat.cpp 2019-12-03 03:51:10 +03:00
alexey-milovidov
4d65ad4034
Update ValuesBlockInputFormat.cpp 2019-12-03 03:50:50 +03:00
alexey-milovidov
4a69082fbb
Update ProtobufRowInputFormat.h 2019-12-03 03:49:50 +03:00
alexey-milovidov
a7521b97f9
Update IInputFormat.cpp 2019-12-03 03:49:05 +03:00
Alexey Milovidov
d70b73f033 Merge branch 's3auth' of https://github.com/excitoon-favorites/ClickHouse into excitoon-favorites-s3auth 2019-12-03 03:06:01 +03:00
alexey-milovidov
fe05565cec
Update StorageS3.cpp 2019-12-03 03:03:44 +03:00
Alexey Milovidov
fc174dce6e More simple 2019-12-03 02:50:53 +03:00
Alexey Milovidov
9d099bde8e Merge branch 'master' into fix_check_table_with_empty_pk 2019-12-03 02:36:21 +03:00
alexey-milovidov
3355492f02
Merge pull request #7983 from ClickHouse/fix_dictionary_lifetime
Fix bug with minimal dictionary lifetime equals zero
2019-12-03 02:32:38 +03:00
Alexey Milovidov
254d203a61 Reverted bad modifications 2019-12-03 02:28:51 +03:00
Alexey Milovidov
e86047bd72 Merge branch 'sigrtmin' of https://github.com/abyss7/ClickHouse into abyss7-sigrtmin 2019-12-03 02:27:53 +03:00
alexey-milovidov
7af2dc34d2
Merge pull request #7990 from ClickHouse/filimonov-lc_empty_part_bug
Merging #7985
2019-12-03 02:26:44 +03:00
Alexey Milovidov
166e9e414c Fixed bad test 2019-12-03 02:26:15 +03:00
Alexey Milovidov
07d7fd413f Fixed bad test 2019-12-03 02:25:08 +03:00
alexey-milovidov
e44dc0a6c8
Merge pull request #7981 from ClickHouse/fix_number_of_streams_for_storages_with_globs
Limit number of streams for read from StorageFile and StorageHDFS
2019-12-03 02:23:10 +03:00
alexey-milovidov
43c47bdb55
Merge pull request #7717 from MaxFedotov/support_mysql_federated
support clickhouse as mysql federated server
2019-12-03 02:21:35 +03:00
alexey-milovidov
972156066d
Update MySQLHandler.cpp 2019-12-03 02:20:58 +03:00
alexey-milovidov
b08446a8c5
Update MySQLHandler.cpp 2019-12-03 02:18:19 +03:00
Alexey Milovidov
58c40dc234 Merge branch 'master' of github.com:yandex/ClickHouse into filimonov-lc_empty_part_bug 2019-12-03 02:14:35 +03:00
alexey-milovidov
41f1224d59
Merge pull request #7987 from achulkov2/dict-small-refactoring
Very small code refactoring for external dictionaries
2019-12-03 02:13:31 +03:00
alexey-milovidov
8338be47dd
Merge pull request #7975 from yurriy/mysql-protocol-text
Support more column types in MySQL compatibility server
2019-12-03 02:08:24 +03:00
Alexey Milovidov
272715cb71 Merge branch 'lc_empty_part_bug' of https://github.com/filimonov/ClickHouse into filimonov-lc_empty_part_bug 2019-12-03 01:58:41 +03:00
alexey-milovidov
bd72b570a3
Update 01035_lc_empty_part_bug.sql 2019-12-03 01:56:37 +03:00
Alexey Milovidov
060e4db596 Fixed build 2019-12-03 01:37:24 +03:00
Alexey Milovidov
034ef665f1 Merge branch 'master' of github.com:yandex/ClickHouse into enable-experimental-indices-and-make-settings-obsolete 2019-12-03 00:36:31 +03:00
chertus
a179c5025f Merge branch 'master' into joins 2019-12-02 21:08:39 +03:00
chertus
5ce65546e9 semi & anti join 2019-12-02 21:08:04 +03:00
Ivan Lezhankin
2118b33d9a Replace SIGRTMIN with SIGTSTP 2019-12-02 20:29:19 +03:00
achulkov2
6c6db598b1 Very small refactoring for external dictionaries 2019-12-02 18:59:45 +03:00
Mikhail Filimonov
5228f5f2eb Test case for altering to LowCardinality when data part is empty 2019-12-02 16:11:28 +01:00
alesapin
7410d17892 Fix bug with minimal dictionary lifetime equals zero 2019-12-02 16:05:43 +03:00
Vitaly Baranov
b2685a3710
Merge pull request #7727 from kekekekule/master
Added lifetime to system.dictionaries #6820
2019-12-02 15:15:44 +03:00
chertus
0251f4e442 perf: move applyLazyDefaults() out of cycle for ALL JOIN 2019-12-02 14:45:21 +03:00
Maksim Fedotov
6381d33981 support clickhouse as mysql federated server. apply code review notes p4 2019-12-02 14:32:45 +03:00
Ivan Lezhankin
0e276ad887 Fix build 2019-12-02 14:29:52 +03:00
alesapin
08dfd1d1c4 Limit number of streams for read from StorageFile and StorageHDFS 2019-12-02 14:25:41 +03:00
Ivan Lezhankin
4f56e03729 Use SIGRTMIN instead of SIGPROF for user debugging purposes 2019-12-02 13:50:57 +03:00
alesapin
a4ca30b5fd Fix bug in check table for tables without primary key 2019-12-02 13:30:04 +03:00
alesapin
af85eb8f80
Merge pull request #7916 from azat/dict-avoid-RELOAD-on-CREATE-DATABASE
Do not reload *all* dictionaries on CREATE DATABASE
2019-12-02 11:50:44 +03:00
Yuriy
211e1364f6 fixed style 2019-12-02 06:12:27 +03:00
Vladimir Chebotarev
8dbfcdb3c3 Fixed failing tests. 2019-12-01 20:41:35 +03:00
Vladimir Chebotarev
ef5c4fb5a4 Remake of result_part_path. 2019-12-01 20:41:35 +03:00
Vladimir Chebotarev
b23d411f84 Filling result_part_path column of system.merges during the merge. 2019-12-01 20:41:35 +03:00
Vladimir Chebotarev
41c965e4ba Attempt to add is_move, source_part_paths, result_part_path columns to system.merges. 2019-12-01 20:41:35 +03:00
Vladimir Chebotarev
03ec61fff3 Fixed 01030_storage_s3_syntax stateless test. 2019-12-01 15:35:04 +03:00
Yuriy
3677d1dcfa implemented ProtocolText 2019-12-01 15:17:49 +03:00
Vladimir Chebotarev
d0760bc169 Fixed tests and logic of authorization in S3. 2019-12-01 14:24:55 +03:00
Vladimir Chebotarev
0a19b4fbd6 Attempt to add S3 authentication. 2019-12-01 10:56:11 +03:00
Vladimir Chebotarev
94684c07bf Added syntax for access_key_id and secret_access_key in S3 table function and storage. 2019-12-01 10:56:11 +03:00
Артем Стрельцов
25aa2114b2 Deleted redundant empty lines 2019-12-01 03:49:11 +03:00
Артем Стрельцов
95124e910a Fixed test for lifetime 2019-12-01 03:40:59 +03:00
Alexey Milovidov
8916b8f2e6 Make data skipping indices non-experimental. Make settings about data skipping indices, multiple JOINs and CROSS to INNER JOIN conversion obsolete, 2019-11-30 23:41:02 +03:00
Vasily Nemkov
70512f8289 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-30 21:49:15 +03:00
Nikolay Degterinsky
b0eabb690b Test added 2019-11-29 21:46:26 +03:00
Alexander Burmak
e5ffdc0224 Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs 2019-11-29 18:27:56 +03:00
Nikolay Degterinsky
6b39253b71 Fixed naming 2019-11-29 17:15:12 +03:00