Commit Graph

8741 Commits

Author SHA1 Message Date
Nikita Mikhailov
c3288c3fbf Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format 2020-12-28 15:09:37 +03:00
pingyu
d81392c539 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into func_byte_size 2020-12-28 19:32:08 +08:00
pingyu
d2ce110a6d bug fix 2020-12-28 19:29:54 +08:00
Alexander Kuzmenkov
1c52fdb265 cleanup 2020-12-28 13:08:38 +03:00
hexiaoting
4adbdf364e Fix bug for orderby withfill with limit clause 2020-12-28 13:05:16 +03:00
Alexander Kuzmenkov
2905f70cce fix aliases in partition by/order by 2020-12-28 12:56:38 +03:00
alexey-milovidov
bf3187010b
Merge pull request #18145 from myrrc/improvement/multiply-decimals-and-floats
Allow multiplication of Decimal and Float
2020-12-27 22:37:09 +03:00
alexey-milovidov
b086a78f81
Update FunctionBinaryArithmetic.h 2020-12-27 22:35:38 +03:00
awesomeleo
5337d4e2dc fix 18450, DB::Exception: Unsupported type FixedString 2020-12-27 23:51:14 +08:00
Nikolai Kochetov
ca6ddfafc4 Fix style 2020-12-27 16:55:55 +03:00
Nikolai Kochetov
2e69757062 Fix style 2020-12-27 16:53:42 +03:00
Nikolai Kochetov
1ebab1dc48 Try fix Pipeline stuck 2020-12-27 14:25:43 +03:00
Nikolai Kochetov
da6bfc2cfb Try fix Pipeline stuck 2020-12-27 14:22:46 +03:00
Nikolai Kochetov
7064a8500b Try fix Pipeline stuck 2020-12-27 14:16:40 +03:00
Nikolai Kochetov
30bbba6ed5 Try fix Pipeline stuck 2020-12-27 14:13:17 +03:00
Nikolai Kochetov
b19146065f Try fix Pipeline stuck 2020-12-27 14:06:14 +03:00
Nikolai Kochetov
a85cfa81db Try fix Pipeline stuck 2020-12-27 14:02:21 +03:00
Nikolai Kochetov
d6f501f497 Try fix Pipeline stuck 2020-12-27 13:30:00 +03:00
Nikolai Kochetov
be4832de6d Try fix test. 2020-12-27 12:54:59 +03:00
alexey-milovidov
1e8b180e50
Merge pull request #18522 from ClickHouse/fix_concurrent_bounded_queue_timeout
Fix usage of concurrent bounded queue in test keeper storage
2020-12-27 11:49:13 +03:00
alexey-milovidov
d84f308291
Merge pull request #18521 from ClickHouse/implement_create_or_replace
Implement [CREATE OR] REPLACE TABLE
2020-12-27 11:48:06 +03:00
alexey-milovidov
6ce3bd6962
Merge pull request #18548 from vdimir/fix-ip-dict-exception
Do not throw logical error from IPAddressDictionary ctor
2020-12-27 11:43:38 +03:00
alexey-milovidov
5c459e74c9
Update IPAddressDictionary.cpp 2020-12-27 11:43:27 +03:00
pingyu
f8e55a9c9b wip #17540 2020-12-27 12:11:38 +08:00
vdimir
b1d7778287 Merge remote-tracking branch 'upstream/master' into speedup-apply-cidr-mask-v6 2020-12-26 19:53:06 +00:00
vdimir
46791d4908 Do not throw logical error from IPAddressDictionary ctor 2020-12-26 19:16:57 +00:00
Vitaly Baranov
9271b3d627 SELECT JOIN now requires the SELECT privilege on each of the joined tables. 2020-12-26 18:35:32 +03:00
alesapin
e81485653b
Merge pull request #18491 from ClickHouse/add_nuraft
Add NuRaft to contrib
2020-12-26 16:19:05 +03:00
alesapin
f91ea5be4f
Merge pull request #18515 from ClickHouse/more_correct_exception
More correct error code on incorrect interserver protocol
2020-12-26 16:18:20 +03:00
alexey-milovidov
8eb9788955
Merge pull request #18523 from CurtizJ/fix-cast-to-map
Fix cast to map from tuple of arrays with unequal sizes
2020-12-26 10:00:01 +03:00
pingyu
bb0558a01e Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into func_byte_size 2020-12-26 11:25:53 +08:00
Nikita Mikhaylov
c3ad122142
Merge pull request #18520 from nikitamikhaylov/fuzz-17876
NaN argument in function 'bar'
2020-12-26 04:32:05 +03:00
Nikita Mikhaylov
7b23b866a2
Merge pull request #18475 from nikitamikhaylov/andyyzh-bitmap64A
Merging #17858
2020-12-26 04:31:49 +03:00
Azat Khuzhin
a3ab429129 Split MemoryTracker header
Allocator.h is included into almost everything (via PODArray.h), so keep
only small part of MemoryTracker.h for it.
2020-12-25 23:49:22 +03:00
Azat Khuzhin
9d64ae2895 Extend BlockerInThread/LockExceptionInThread interface
- Add level for BlockerInThread/LockExceptionInThread to make decisions
  based on the level
- Add block_fault_injections for LockExceptionInThread
2020-12-25 23:49:22 +03:00
alexey-milovidov
230f9b6ad4
Merge pull request #18449 from vladimir-golovchenko/fix-AM-abbreviation-handling-for-parseDateTimeBestEffort
Bug fix '#18402 parseDateTimeBestEffort should not ignore AM abbreviation for 12th hour'
2020-12-25 22:32:43 +03:00
alexey-milovidov
849ca482c9
Merge pull request #18458 from spongedu/support_exists_database
support EXISTS DATABASE syntax
2020-12-25 22:28:02 +03:00
Nikolai Kochetov
f1d433be4c Add min word size. 2020-12-25 21:03:08 +03:00
Nikolai Kochetov
31191d8396 Add min word size. 2020-12-25 20:58:44 +03:00
Alexander Tokmakov
2836936079 fix 2020-12-25 20:43:03 +03:00
Nikolai Kochetov
f8854fed5c Update test. 2020-12-25 20:30:44 +03:00
Anton Popov
721bb60edd fix cast to map from tuple of arrays with unequal sizes 2020-12-25 20:12:47 +03:00
Nikolai Kochetov
63de06fa31 Fixing build. 2020-12-25 20:02:19 +03:00
Nikolai Kochetov
b53442e521 Fixing build. 2020-12-25 20:00:42 +03:00
Nikolai Kochetov
2c06a65e1c Fixing build. 2020-12-25 19:56:51 +03:00
Nikolai Kochetov
309b0a860a Fixing build. 2020-12-25 19:55:15 +03:00
alesapin
d204ad7ef1 Fix usage of concurrent bounded queue 2020-12-25 19:54:13 +03:00
Nikolai Kochetov
ba5d2617ff Fixing build. 2020-12-25 19:49:55 +03:00
myrrc
80b96f2c23 Merge remote-tracking branch 'upstream/master' into improvement/multiply-decimals-and-floats 2020-12-25 19:34:26 +03:00
myrrc
e335ba29fc fixing build on gcc 2020-12-25 19:32:59 +03:00
Alexander Tokmakov
42911e2438 implement CREATE OR REPLACE TABLE 2020-12-25 19:32:09 +03:00
Nikolai Kochetov
7e7998f121 Fixing build. 2020-12-25 19:11:05 +03:00
Nikolai Kochetov
281d87a007 Fixing build. 2020-12-25 19:04:55 +03:00
Nikita Mikhailov
4da4388132 better 2020-12-25 18:59:31 +03:00
Nikita Mikhailov
2239f9b0c6 done 2020-12-25 18:54:38 +03:00
alesapin
0950c16fb2 Fix unexpected change 2020-12-25 18:49:29 +03:00
alesapin
2c1d443944 Control alter sequential execution more correctly 2020-12-25 18:47:17 +03:00
Nikolai Kochetov
94f4a15cd0 Feractoring StringHash 2020-12-25 18:19:30 +03:00
Nikolai Kochetov
1a8dcc2b27 Feractoring StringHash 2020-12-25 17:18:41 +03:00
alesapin
a50615a22b More correct error code 2020-12-25 16:38:04 +03:00
Anton Popov
ed623a1c6a
Merge pull request #18436 from CurtizJ/remove-unused-code-1
Remove unused code
2020-12-25 14:22:56 +03:00
Nikolai Kochetov
04d55dc495 Feractoring StringHash 2020-12-25 14:22:48 +03:00
alexey-milovidov
aba7b5f60d
Merge pull request #18493 from ClickHouse/fix-flaky-test-buffer
Fix flaky test 01584_distributed_buffer_cannot_find_column
2020-12-25 12:07:03 +03:00
Alexander Kuzmenkov
a17f0b50ad Merge remote-tracking branch 'origin/master' into tmp 2020-12-25 10:34:28 +03:00
Alexander Kuzmenkov
998bd17877 fix column name clash w/agg fns
also fix some test references influenced by the explain changes
2020-12-25 07:59:17 +03:00
Alexander Kuzmenkov
5bd025a180 fix DISTINCT and ORDER BY 2020-12-25 06:13:30 +03:00
alexey-milovidov
491f481713
Merge pull request #18481 from ClickHouse/disable_write_with_aio
Disable write with AIO even for big merges
2020-12-25 04:24:43 +03:00
Alexey Milovidov
a671f13595 Fix flaky test 01584_distributed_buffer_cannot_find_column 2020-12-25 04:20:09 +03:00
Denis Glazachev
07aa3fe30d Refine the caching 2020-12-25 03:46:08 +04:00
Denis Glazachev
b1e46ccef8 Remove unneeded include 2020-12-25 01:57:13 +04:00
Denis Glazachev
3ce0731630 Move caching and LDAP credential verification code to ExternalAuthenticators 2020-12-25 01:49:19 +04:00
alesapin
4b1fdded45 Remove non existing binary 2020-12-24 23:12:50 +03:00
alesapin
3c104035b1 Add NuRaft library 2020-12-24 23:10:47 +03:00
vdimir
1e3bd37380 Add option access_to_key_from_attributes to ip dictionary 2020-12-24 19:13:49 +00:00
Nikolai Kochetov
e8f4a19a10 Feractoring StringHash 2020-12-24 21:57:31 +03:00
Alexander Tokmakov
21c3fc0e16 check settings constraints in setProfile(...) 2020-12-24 20:48:54 +03:00
alexey-milovidov
30e3900235
Merge pull request #18435 from vdimir/ip-dict-minor-fix
Raise an error if more than one key is provided to ip_dictionary
2020-12-24 20:16:07 +03:00
pingyu
f1a044c72a wip #17540 2020-12-25 01:15:11 +08:00
alesapin
5d94b7eec0 Remove non working code 2020-12-24 19:30:53 +03:00
myrrc
8e5279cf69 fix gcc explicit namespace bug 2020-12-24 19:14:09 +03:00
Nikolai Kochetov
e7ffc13524 Renames. 2020-12-24 18:49:05 +03:00
alesapin
cf4337ca41 Some intermediate stage 2020-12-24 18:47:38 +03:00
Nikita Mikhaylov
6818b24fe5
Merge pull request #18381 from CurtizJ/part-types-merge
Restrict merges from wide to compact parts
2020-12-24 17:47:14 +03:00
Amos Bird
a797ac6d80 fix test again... 2020-12-24 17:43:20 +03:00
Amos Bird
6648b89843 fix test 2020-12-24 17:43:20 +03:00
Amos Bird
e42f83ae72 small fix 2020-12-24 17:43:20 +03:00
Amos Bird
c19ce7dad3 rewrite with better code 2020-12-24 17:43:20 +03:00
Andy Yang
cc75c33064 modify code style 2020-12-24 17:43:20 +03:00
Andy Yang
ccb2fcc161 Support bitmap64 feature 2020-12-24 17:43:20 +03:00
Ilya Yatsishin
608b9a28ba
Merge pull request #18463 from qoega/codespell-changes
Fix codespell warnings. Split style checks. Update style checks docker
2020-12-24 16:53:11 +03:00
myrrc
fe80f98186 last fix add 2020-12-24 16:46:55 +03:00
myrrc
4c4f72786e replaced name shadowing in gcc 2020-12-24 16:45:43 +03:00
Kruglov Pavel
0529c2906a
Merge pull request #18349 from spongedu/support_is_ipv4
Support builtin function isIPv4String && isIPv6String
2020-12-24 14:52:07 +03:00
Alexander Kuzmenkov
8c72fa063d boop the CI 2020-12-24 13:59:58 +03:00
Yatsishin Ilya
f36e8f13c0 more fixes after rebase 2020-12-24 13:48:10 +03:00
tavplubix
5fbfc1935c
Merge pull request #18445 from ClickHouse/fix_to_nullable_conversion
Try fix 'value is too short' when converting from String to Nullable(T)
2020-12-24 13:38:43 +03:00
Yatsishin Ilya
ce1e2b18a3 Fix codespell warnings. Split style checks. Update style checks docker 2020-12-24 13:17:52 +03:00
alexey-milovidov
eb95a5a030
Update ParserTablePropertiesQuery.cpp 2020-12-24 13:14:17 +03:00
alexey-milovidov
34508f466f
Update ParserTablePropertiesQuery.cpp 2020-12-24 13:14:01 +03:00
spongedc
71ab8c18fa support EXISTS DATABASE syntax 2020-12-24 17:16:47 +08:00
Alexander Kuzmenkov
5e8cf89b9d cleanup 2020-12-24 12:13:54 +03:00
Alexander Kuzmenkov
61a35cdafd final cleanup 2020-12-24 12:12:34 +03:00
Alexander Kuzmenkov
c6c2b3ba00 Remove the forward declaration changes 2020-12-24 12:12:34 +03:00
Alexander Kuzmenkov
2bb0f5772e proper signature 2020-12-24 12:12:34 +03:00
alexey-milovidov
4561527d4d
Merge pull request #18404 from amosbird/fixsimplestate
-SimpleState function arg type = return type
2020-12-24 12:12:29 +03:00
Alexander Kuzmenkov
912995cbae some provision for aggregate fns as window fn args
(doesn't work yet)

also a perf test w/LIMIT BY
2020-12-24 11:49:55 +03:00
alexey-milovidov
ee96c8142b
Merge pull request #18443 from azat/poco-build-fixes
Poco build fixes
2020-12-24 11:44:58 +03:00
vdimir
54448ad4ce Remove unnecessary IPAddressDictionary::has overload 2020-12-24 07:38:10 +00:00
Alexander Kuzmenkov
8deb8e4808 Merge origin/master into tmp (using imerge) 2020-12-24 10:00:35 +03:00
Alexander Kuzmenkov
23d77a1698 remove debug output 2020-12-24 09:59:38 +03:00
Alexander Kuzmenkov
844239b1c3 tmp fixes (split me) 2020-12-24 07:03:33 +03:00
vladimir golovchenko
ed4fe206aa Fixed the parseDateTimeBestEffort*-functions to correctly handle '12 am' time. 2020-12-23 18:10:00 -08:00
Alexander Tokmakov
c49a6302fa fix, add test 2020-12-24 03:13:53 +03:00
alexey-milovidov
1be0df5e04
Merge pull request #18396 from ClickHouse/filimonov-pipe-message
Fix exception text from Pipe.cpp
2020-12-24 01:24:57 +03:00
alexey-milovidov
c4bbb95b0f
Merge pull request #18405 from ClickHouse/add_test_for_compact_parts
Add test for already working code
2020-12-24 01:24:09 +03:00
Alexander Tokmakov
317df5f5d2 try fix 'value is too short' when converting from String to Nullable(T) 2020-12-24 00:57:33 +03:00
Azat Khuzhin
7c76bd2def Fix ParsingException::displayText override (guard with POCO_CLICKHOUSE_PATCH) 2020-12-23 23:55:39 +03:00
alesapin
f3f5466d23
Merge pull request #18306 from amosbird/restrictsettings
Extend mergetree setting alter restriction
2020-12-23 23:09:59 +03:00
pingyu
3bd7d8f3c6 wip #17540 2020-12-24 03:39:02 +08:00
Anton Popov
857e2ef557 remove unused code 2020-12-23 21:03:41 +03:00
Anton Popov
c8cdaba180 Merge remote-tracking branch 'upstream/master' into remove-unused-code-1 2020-12-23 20:38:29 +03:00
Anton Popov
204a20fe29 remove unused code 2020-12-23 20:34:00 +03:00
Nikolai Kochetov
97ffc40321
Merge pull request #18409 from ClickHouse/try-to-fix-ya-check
Try fix ya.make
2020-12-23 20:02:53 +03:00
vdimir
05d45fcf61 Raise an error if more than one key is provided to ip_dictionary 2020-12-23 16:58:54 +00:00
Nikolai Kochetov
12a659b9c0 Fix build. 2020-12-23 19:51:49 +03:00
Anton Popov
84ec3930ba
Merge pull request #18223 from ClickHouse/delayed_last_mark_for_wide_parts
Better adaptive granularity calculation for wide parts
2020-12-23 19:37:25 +03:00
Amos Bird
6fc225e676
Distributed insertion to one random shard (#18294)
* Distributed insertion to one random shard

* add some tests

* add some documentation

* Respect shards' weights

* fine locking

Co-authored-by: Ivan Lezhankin <ilezhankin@yandex-team.ru>
2020-12-23 19:04:05 +03:00
myrrc
b48370d4bd fixed explicit type 2020-12-23 17:44:43 +03:00
myrrc
01b311c5c4 over-scale fix 2020-12-23 17:42:19 +03:00
myrrc
4988e05134 fixing the Decimal * Float aggregate case 2020-12-23 17:26:03 +03:00
Nikita Mikhaylov
c005dcdd26
Merge pull request #17641 from nikitamikhaylov/parallel_row_numbers
Added an offset to exception message for parallel parsing
2020-12-23 17:24:35 +03:00
myrrc
2516f8408e fix initialization 2020-12-23 17:23:20 +03:00
myrrc
0ab198238a fix the compile error 2020-12-23 17:21:12 +03:00
myrrc
fcfe76d703 trying to fix different types of * 2020-12-23 17:18:38 +03:00
myrrc
fec0a59082 transfered scale factor calc for multiply from the impl 2020-12-23 16:57:11 +03:00
Vitaliy Zakaznikov
26ca04c92d Merge branch 'master' of https://github.com/traceon/ClickHouse into ldap-cache-login 2020-12-23 08:17:12 -05:00
myrrc
473aef519d reverted 1 scale to fix 3 tests 2020-12-23 16:11:20 +03:00
Amos Bird
2e0a2257b8
-SimpleState function arg type = return type 2020-12-23 21:09:05 +08:00
Nikolai Kochetov
7ab38d5007 Use Port::Data instead of Chunk in LazyOutputFormat. 2020-12-23 15:54:20 +03:00
alexey-milovidov
0f98fe3c0c
Merge pull request #18365 from CurtizJ/fix-group-by-distinct
Fix race in aggregation with combinator distinct
2020-12-23 15:41:20 +03:00
alexey-milovidov
2c7979dd64
Merge pull request #18379 from vitlibar/fix-filling-table-system-settings-profile-elements
Fix filling table system.settings_profile_elements.
2020-12-23 15:34:00 +03:00
Nikolai Kochetov
7a9282ee7b Try fix ya.make 2020-12-23 15:31:16 +03:00
alesapin
fb1c6c4eb4
Update MergeTreeSettings.h 2020-12-23 15:03:55 +03:00
alesapin
54455b4740 Add test for already working code 2020-12-23 14:53:49 +03:00
Anton Popov
518cac6150 fix for review 2020-12-23 13:11:24 +03:00
Nikolai Kochetov
3fd0b69fab
Merge pull request #7649 from ucasFL/master
Add simhash, minhash, and hammingdistance function
2020-12-23 12:22:38 +03:00
Nikolai Kochetov
af7f5c9518
Merge pull request #17868 from ClickHouse/async-read-from-socket
Async read from socket
2020-12-23 12:20:42 +03:00
Alexander Kuzmenkov
22a0edc596
Update IStorage.cpp 2020-12-23 09:44:44 +03:00
Alexander Kuzmenkov
51b2329295
Merge branch 'master' into aku/window-prototype 2020-12-23 09:26:11 +03:00
filimonov
497a93095b
Update Pipe.cpp
Fixes #18240
2020-12-23 06:30:45 +01:00