Commit Graph

26533 Commits

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

* Fixed execution of inversed predicates in functional index

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

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

After:

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

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

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

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

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

And most of these (eventpoll) went from poco, for which O_CLOEXEC cannot
be passed.
2020-02-18 00:28:11 +03:00
alexey-milovidov
3fcf2d4e78
Merge pull request #9155 from ClickHouse/obfuscator-overgenerate-data
clickhouse-obfuscator: allow to generate more data than was in source
2020-02-17 23:51:57 +03:00
CurtizJ
7022376a2a remove debug prints 2020-02-17 23:45:16 +03:00
CurtizJ
2ff030be35 recalculate TTL expressions during mutations 2020-02-17 23:39:24 +03:00
Pavel Kovalenko
e849654628 Reworked ReadIndirectBuffer for DiskMemory. 2020-02-17 23:08:35 +03:00
Alexander Tokmakov
e6718e199e less Context::getTable() usages 2020-02-17 22:28:25 +03:00
alexey-milovidov
146109fe27
Merge pull request #9161 from abyss7/arcadia
Reorganize layout of repository (part 1)
2020-02-17 21:58:20 +03:00
Alexey Milovidov
a1ccd14032 Fixed error with zero bytes in haystack for constant case #9160 2020-02-17 21:53:59 +03:00
Alexey Milovidov
808e27bf30 Added a test #9160 2020-02-17 21:52:10 +03:00
alesapin
a084ee8edd Fix style 2020-02-17 21:09:04 +03:00
alesapin
38450ccb6e Slightly better code 2020-02-17 21:07:22 +03:00
chertus
a9e743d8bd minor JoinSwitcher optimisation 2020-02-17 20:41:38 +03:00
chertus
5717d48333 better includes 2020-02-17 20:21:03 +03:00
alexey-milovidov
35f1a8ed51
Fixed awful translation 2020-02-17 20:12:22 +03:00
chertus
4a658f4325 swtich HashJoin to MergeJoin if JOIN limit exceeded 2020-02-17 20:08:31 +03:00
Nikolai Kochetov
bdaeafffc1 Processors support for StorageLiveView reading. 2020-02-17 19:37:18 +03:00
Nikolai Kochetov
fbfaac6391 Processors support for StorageLiveView reading. 2020-02-17 19:35:23 +03:00
alesapin
382f6ab720 More comments and slightly better code 2020-02-17 19:33:05 +03:00
Nikolai Kochetov
34d7873524 Processors support for StorageKafka reading. 2020-02-17 19:08:22 +03:00
alesapin
6a02b99faf Slightly refactor merger mutator 2020-02-17 18:44:13 +03:00
Nikolai Kochetov
98b6ad4eff Processors support for StorageXDBC reading. 2020-02-17 18:33:16 +03:00
Nikolai Kochetov
dda0bcb9ba Processors support for StorageXDBC reading. 2020-02-17 18:32:27 +03:00
Nikolai Kochetov
728ece09f1 Processors support for StorageView reading. 2020-02-17 18:27:51 +03:00
Nikolai Kochetov
4cc3eaa9ce Processors support for StorageValues reading. 2020-02-17 18:07:42 +03:00
Nikolai Kochetov
5372942aef Processors support for StorageURL reading. 2020-02-17 18:01:03 +03:00
Pavel Kovalenko
cf474e1f09 Fixed DiskMemory->readFile() test. 2020-02-17 18:00:39 +03:00
Nikolai Kochetov
df76f1fe56 Processors support for StorageTinyLog reading. 2020-02-17 17:45:10 +03:00
Ivan Lezhankin
102dad0ca0 Merge branch 'master' into arcadia 2020-02-17 17:37:10 +03:00
Nikolai Kochetov
9eda64fcf7 Update SelectStreamFactory. 2020-02-17 17:28:44 +03:00
Ivan Lezhankin
39ea079034 More clean-up 2020-02-17 17:27:09 +03:00
Alexander Tokmakov
d710bd1812 better get... methods 2020-02-17 16:52:59 +03:00
alesapin
b59fd72f34 Remove comment 2020-02-17 16:48:59 +03:00
alesapin
55192a652f Less changes 2020-02-17 16:41:53 +03:00
alesapin
7d7fdb389d Remove redundant error code 2020-02-17 16:37:16 +03:00
alesapin
72ed29f1e8 Remove some garbage from code 2020-02-17 16:35:17 +03:00
alesapin
e531e0a0ab Add test with bad alter 2020-02-17 16:20:09 +03:00
alesapin
f1a60b6843 Better names for replicas 2020-02-17 15:51:16 +03:00
alesapin
47c649f6c3 Fix all style warnings 2020-02-17 15:47:34 +03:00
Alexey Milovidov
809b409426 Read the code 2020-02-17 15:44:58 +03:00
alesapin
777dfc774d One more test 2020-02-17 15:42:53 +03:00
Nikolai Kochetov
34e32db810 Fix build. 2020-02-17 14:55:32 +03:00
Nikolai Kochetov
bbdac39d2d Fix build. 2020-02-17 14:50:53 +03:00
alesapin
0a5403185c Add test for parallel detach and fix some bugs. 2020-02-17 14:31:42 +03:00
Nikolai Kochetov
f4d5175a12 Fix build. 2020-02-17 14:26:09 +03:00
Pavel Kovalenko
cceaf69264 Change log_family_disk_memory test number. 2020-02-17 13:51:16 +03:00
Pavel Kovalenko
f3bec50d22 Fixed getPositionInFile() method usages. 2020-02-17 13:49:36 +03:00
Pavel Kovalenko
f9965a7d29 Merge branch 'master' into storage-stripe-log-s3
# Conflicts:
#	dbms/tests/config/disks.xml
2020-02-17 13:46:06 +03:00
Nikolai Kochetov
4599fbd798 Added force_tree_shaped_pipeline flag to SelectQueryInfo. 2020-02-17 13:42:14 +03:00
chertus
c2d6167f2a Merge branch 'master' into joins 2020-02-17 13:19:15 +03:00
Alexander Tokmakov
964b775c80 Merge branch 'master' into split_databases_from_context 2020-02-17 13:04:36 +03:00
Nikolai Kochetov
9b2d03f58c Fix StorageMerge. 2020-02-17 12:26:15 +03:00
CurtizJ
1612fefd66 better test 2020-02-17 12:21:57 +03:00
alesapin
4300cc523d Fix test 2020-02-17 12:12:01 +03:00
alesapin
659fba4b97 Fix constraints 2020-02-17 11:57:59 +03:00
Alexey Milovidov
d66d1c7930 Added a test for obfuscator 2020-02-17 11:05:48 +03:00
Alexey Milovidov
76153ed8ac clickhouse-obfuscator: allow to generate more data than was in source 2020-02-17 10:52:13 +03:00
Alexey Milovidov
09e18f05ce Fixed error, added a test #9143 2020-02-17 09:54:24 +03:00
Alexey Milovidov
35e7197c8f Merge branch 'master' into bit-test-many-fuzz 2020-02-17 08:43:44 +03:00
Alexey Milovidov
b88238dffc Added 9th reason why parts can appear to be non byte-identical after download 2020-02-17 08:16:48 +03:00
alexey-milovidov
ca00c9c4cd
Merge pull request #9150 from ClickHouse/fix-bug-demangle
Fix bug in "demangle" function
2020-02-17 07:22:11 +03:00
alexey-milovidov
e0b6019878
Merge pull request #9014 from amosbird/joingetfix2
Fix joinGet with nullable return types.
2020-02-17 06:59:40 +03:00
alexey-milovidov
930cb5c3c3
Merge pull request #9152 from azat/poco-1.7.6-fix
Drop unused ALL_ADDRESSES const (fixes poco 1.7.6+dfsg1-5+deb9u1)
2020-02-17 06:58:35 +03:00
Amos Bird
0dee987831
Fix joinGet with nullable return types. 2020-02-17 07:32:32 +08:00
Azat Khuzhin
c2d7922413 Drop unused ALL_ADDRESSES const (fixes poco 1.7.6+dfsg1-5+deb9u1)
With poco 1.7.6+dfsg1-5+deb9u1:
  5  0x00007f9921e48085 in __cxa_throw ()
  6  0x00007f9918dfca88 in Poco::Net::IPAddress::IPAddress(void const*, unsigned int, unsigned int) () from /usr/lib/libPocoNet.so.46
  7  0x00007f9918dfcf91 in Poco::Net::IPAddress::operator&(Poco::Net::IPAddress const&) const () from /usr/lib/libPocoNet.so.46
  8  0x00007f991737a623 in DB::AllowedClientHosts::IPSubnet::set (this=0x7f991742afa0 <DB::(anonymous namespace)::ALL_ADDRESSES>, prefix_=..., mask_=...) at AllowedClientHosts.h:146
  9  0x00007f991737a2da in DB::AllowedClientHosts::IPSubnet::IPSubnet (this=0x7f991742afa0 <DB::(anonymous namespace)::ALL_ADDRESSES>, prefix_=..., mask_=...) at AllowedClientHosts.h:24
  10 0x00007f991737a0a2 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at AllowedClientHosts.cpp:25

Fixes: 2e4174a54c
2020-02-16 21:24:38 +03:00
Alexey Milovidov
01d4805989 Merge branch 'master' into bit-test-many-fuzz 2020-02-16 15:05:20 +03:00
Alexey Milovidov
405630d38e Added test #8985 2020-02-16 14:58:54 +03:00
Alexey Milovidov
9cd79c8a38 Fixed bug in "demangle" #8985 2020-02-16 14:55:45 +03:00
alexey-milovidov
4db0eac979
Merge pull request #9149 from ClickHouse/fix-bad-join-test
Fixed non-deterministic test
2020-02-16 13:53:11 +03:00
Alexey Milovidov
2e8d42a188 Additions to prev. revision 2020-02-16 13:44:24 +03:00
alexey-milovidov
a3eac2688b
Merge pull request #9144 from ClickHouse/describe-query-profiler-when-unavailable
Describe reasons when query profiler cannot work
2020-02-16 11:57:59 +03:00
Alexey Milovidov
ecbc3c5f33 Fixed non-deterministic test 2020-02-16 11:54:41 +03:00
alexey-milovidov
355ff00c2e
Revert "Build fixes" 2020-02-16 11:48:01 +03:00
Ivan Lezhankin
4cedd4619d Code clean-up 2020-02-16 11:04:03 +03:00
Alexey Milovidov
3772ffdc9d Describe reasons when query profiler cannot work 2020-02-16 09:51:52 +03:00
Alexey Milovidov
63b7d6e5ac Describe reasons when query profiler cannot work 2020-02-16 09:49:24 +03:00
Alexey Milovidov
724be6d08f Fixed fuzz test and incorrect behaviour of bitTestAll/Any functions 2020-02-16 09:46:29 +03:00
alexey-milovidov
41c883ace3
Merge pull request #8911 from millb/secure_password
Changed format for path in replicas
2020-02-16 07:17:12 +03:00
alexey-milovidov
4ebb240be6
Update Cluster.h 2020-02-16 07:13:54 +03:00
alexey-milovidov
5ebabe519f
Update Cluster.cpp 2020-02-16 07:12:48 +03:00
alexey-milovidov
480881563a
Slightly more readable. 2020-02-16 07:11:19 +03:00
alexey-milovidov
6f51f089ec
Merge pull request #9138 from ClickHouse/system-replicas-add-zookeeper-exception-column
Add zookeeper_exception column to system.replicas table.
2020-02-16 06:14:22 +03:00
alexey-milovidov
76f09ec883
Merge pull request #9052 from oandrew/reinterpret-fixedstring-bugfix
Use correct implementation for reinterpretAsFixedString
2020-02-16 06:11:13 +03:00
Andrew Onyshchuk
55b9af60ca Add test for reinterpretAsFixedString 2020-02-15 17:49:32 -06:00
alesapin
0ff2b5170c Sleep some time after attach 2020-02-15 10:58:15 +03:00
Alexey Milovidov
4ae404f794 Implement #9137 2020-02-15 03:13:00 +03:00
Alexey Milovidov
07479236d7 Implement #9137 2020-02-15 03:11:09 +03:00
alexey-milovidov
e9af153819
Merge pull request #9126 from Melancholic/change_http_status
Fixed #5104. Return 503 status in /replicas_status if not ok
2020-02-15 02:59:18 +03:00
alexey-milovidov
7f581fb555
Merge pull request #9135 from den-crane/test-for-6143
tests for #6143 and #2314
2020-02-15 02:57:20 +03:00
alexey-milovidov
38c4f3ed84
Merge pull request #9131 from ClickHouse/better_temporary_live_view_syntax
Better CREATE syntax for temporary LIVE VIEW
2020-02-15 02:55:37 +03:00
alexey-milovidov
ab702acf12
Merge pull request #9105 from ClickHouse/aku/flap-faster
Make some performance tests faster.
2020-02-15 02:54:16 +03:00
alexey-milovidov
a264f4a4dc
Merge pull request #9061 from ClickHouse/aku/flappy-perf
Less flappy performance test queries
2020-02-15 02:53:10 +03:00
alexey-milovidov
f836987f31
Merge pull request #9041 from proller/fix27
Build fixes
2020-02-15 02:51:18 +03:00
alexey-milovidov
71c6430f10
Merge pull request #9129 from Jokser/disks-section-for-functional-tests
Added disks section for stateless functional testing.
2020-02-15 02:48:19 +03:00
alexey-milovidov
ec1191e4e8
Update disks.xml 2020-02-15 02:47:24 +03:00
alexey-milovidov
4d0d32da23
Merge pull request #9091 from PerformanceVision/bit_on_bitset
Implement bit operations for FixedString datatype for doing bits operation on a bitset
2020-02-15 02:43:29 +03:00
alexey-milovidov
db1c67e3e3
Merge pull request #9100 from ClickHouse/issue-9094
Prevent abort on shutdown if the fs is readonly
2020-02-15 02:38:37 +03:00
CurtizJ
cb9936cbc4 better checking if we can use polymorphic parts 2020-02-15 00:33:02 +03:00
Denis Zhuravlev
bef505a804 Merge branch 'test-for-6143' of github.com:den-crane/ClickHouse into test-for-6143 2020-02-14 16:43:41 -04:00
Denis Zhuravlev
cce9645848 test for #2314 2020-02-14 16:43:28 -04:00
Denis Zhuravlev
dada5cf6ca
Update 01080_engine_merge_prewhere_tupleelement_error.sql
optimize_move_to_prewhere=0
2020-02-14 16:17:29 -04:00
alesapin
88f46ac636 Add alters only for new mutations 2020-02-14 23:13:57 +03:00
Denis Zhuravlev
eec35ce32d test for #6143 2020-02-14 16:11:38 -04:00
Alexander Kuzmenkov
4c4448c04b
Update ngram_distance.xml 2020-02-14 22:49:54 +03:00
Alexander Kuzmenkov
e3abc3b60d
Update general_purpose_hashes_on_UUID.xml 2020-02-14 22:46:27 +03:00
Alexander Kuzmenkov
db0f2a5dba
Update codecs_int_insert.xml 2020-02-14 22:44:59 +03:00
Alexander Kuzmenkov
51815044c5
Merge pull request #8943 from ClickHouse/aku/flush-perf
[wip] Improve flush performance in SystemLog
2020-02-14 22:41:44 +03:00
alesapin
86b4ce2f24 Remove accident changes 2020-02-14 22:16:27 +03:00
CurtizJ
73b1ac0eac add integration tests for polymorphic parts 2020-02-14 22:11:51 +03:00
proller
cf39e9d64a Merge remote-tracking branch 'upstream/master' into fix27 2020-02-14 21:28:09 +03:00
Alexander Tokmakov
6889951396 better syntax for temporary LIVE VIEW 2020-02-14 21:20:20 +03:00
Nikolai Kochetov
1685c4d689 Fix build. 2020-02-14 20:50:27 +03:00
Nikolai Kochetov
52a63275ea Merge with master. 2020-02-14 20:47:39 +03:00
Nikolai Kochetov
97f0e1ffdc Fix SelectStreamFactory. 2020-02-14 20:03:23 +03:00
Pavel Kovalenko
7c585291b5 Added disks section for stateless functional testing. 2020-02-14 18:37:51 +03:00
Anton Popov
1162c22063
Merge pull request #9106 from CurtizJ/fix-range-reader
Fix segfault in MergeTreeRangeReader
2020-02-14 17:59:43 +03:00
Pavel Kovalenko
06e203d004 StorageStripeLog S3 support. 2020-02-14 17:28:33 +03:00
nagorny
15d3176d40 Ticket #5104. Return 503 status from /replicas_status if not ok 2020-02-14 17:20:27 +03:00
Nikolai Kochetov
ce6bcb77a2 Fix TreeExecutor. 2020-02-14 17:05:31 +03:00
Nikolai Kochetov
da6d43ea8a Fix TreeExecutor. 2020-02-14 17:00:39 +03:00
alesapin
42d0e27bfa Fix tests and bugs 2020-02-14 16:17:50 +03:00
Alexander Kuzmenkov
6b09956277 review fixes 2020-02-14 16:09:51 +03:00
alesapin
39e79bb1a2 Remove header 2020-02-14 14:16:45 +03:00
Alexander Kuzmenkov
191759ba17
Update set_hits.xml 2020-02-14 14:15:26 +03:00
alesapin
11f30dcc61 Remove more comments 2020-02-14 14:15:05 +03:00
Alexander Kuzmenkov
76e2065162
Update codecs_int_insert.xml 2020-02-14 14:12:44 +03:00
Alexander Kuzmenkov
e0b7755fa7
Update general_purpose_hashes_on_UUID.xml 2020-02-14 14:03:44 +03:00
Nikolai Kochetov
96b5ef8459 Processors support for StorageStripeLog reading. 2020-02-14 13:57:09 +03:00
alesapin
027744df66 Less seconds in test 2020-02-14 13:43:10 +03:00
alesapin
389292f579 Removed alter thread 2020-02-14 13:35:39 +03:00
alesapin
958e217499 Additional metadata 2020-02-14 13:34:54 +03:00
Nikolai Kochetov
0766e46bcd Fix StorageFile. 2020-02-14 13:22:05 +03:00
alesapin
527325ef46 Correct startup logic 2020-02-14 13:17:04 +03:00
CurtizJ
ddb3a55f67 Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-02-14 13:15:16 +03:00
Nikolai Kochetov
4cf65451de Update SelectStreamFactory. 2020-02-14 12:36:00 +03:00
Nikolai Kochetov
bb6d6a37b3 Fix build. 2020-02-14 12:28:13 +03:00
alesapin
d9ebec472b More simple 2020-02-14 12:24:00 +03:00
Guillaume Tassery
0a02eca9b7 update tests 2020-02-14 10:23:55 +01:00
Guillaume Tassery
264b59de44 add bitNot performance tests 2020-02-14 10:09:46 +01:00
Guillaume Tassery
59ed5f65b5 Add bitNot function 2020-02-14 09:17:32 +01:00
Guillaume Tassery
ecbeba0f9e Set allow_fixed_string on operation instead of function generation 2020-02-14 08:11:37 +01:00
Guillaume Tassery
2c1dfab240 add tests for bitOr and bitXor 2020-02-14 05:41:25 +01:00
Guillaume Tassery
d05026ec75 add performance test 2020-02-14 04:57:03 +01:00
Guillaume Tassery
bad9848f2a use maybe_unused instead 2020-02-14 04:49:02 +01:00
Denis Zhuravlev
4857d43b6a
Update mingroupby-orderbylimit1.xml
fix for table name
2020-02-13 23:00:18 -04:00
Alexander Kuzmenkov
37b2932291
Update codecs_int_insert.xml 2020-02-14 02:11:43 +03:00
Anton Popov
7042bafda4
Update 01079_new_range_reader_segfault.sql 2020-02-14 01:58:30 +03:00
Alexander Kuzmenkov
810fe655ea
Update general_purpose_hashes_on_UUID.xml 2020-02-14 01:23:54 +03:00
Denis Zhuravlev
92a6d30d3a Added performance test for min_group_by / order_by_limit1 2020-02-13 17:34:23 -04:00
CurtizJ
7041e28077 fix segfault in MergeTreeRangeReader 2020-02-14 00:20:35 +03:00
Alexander Tokmakov
c479bbe9f9 make Context::getLock() private 2020-02-14 00:00:03 +03:00
alesapin
199c22c363 Better naming 2020-02-13 23:09:48 +03:00
Alexander Kuzmenkov
1bd2f55bc1
Update inserts_arrays_lowcardinality.xml 2020-02-13 21:58:46 +03:00
Alexander Kuzmenkov
99c6246d97 Make some performance tests faster. 2020-02-13 21:42:55 +03:00
alexey-milovidov
7aeb900922
Merge pull request #8436 from achulkov2/polygon-dict-basic-interface-improvements
[WIP] Basic interface for polygon dictionaries
2020-02-13 21:05:42 +03:00
alesapin
78d42142cf Better 2020-02-13 19:16:09 +03:00
CurtizJ
d39179b86f add integration tests 2020-02-13 17:59:15 +03:00
Alexander Kuzmenkov
e9d4bcaa75
Update general_purpose_hashes_on_UUID.xml 2020-02-13 17:58:16 +03:00
alesapin
8c160c7905 Better 2020-02-13 17:48:38 +03:00
CurtizJ
6e1734f2d7 remove rarely used createPart overload 2020-02-13 17:42:48 +03:00
alexey-milovidov
dcc6fbb7a6
Fixed idiotic translation. 2020-02-13 17:25:17 +03:00
CurtizJ
64e1883c06 better replication with compact parts 2020-02-13 17:19:43 +03:00
alexey-milovidov
296621f757
Merge pull request #9076 from sundy-li/mysql-show-tables
Show Queries more like MySQL did
2020-02-13 16:50:12 +03:00
alexey-milovidov
3cfcdcd79f
Update InterpreterShowTablesQuery.cpp 2020-02-13 16:46:35 +03:00
Alexey Milovidov
b5c79201c3 Prevent abort on shutdown if the fs is readonly 2020-02-13 16:15:54 +03:00
alesapin
e1bc499ea8 Remove comments 2020-02-13 16:13:23 +03:00
Guillaume Tassery
1642c7bb97 Merge branch 'master' of github.com:ClickHouse/ClickHouse into bit_on_bitset 2020-02-13 13:24:00 +01:00
Guillaume Tassery
d5b6b580c3 make happy gcc-9 2020-02-13 13:23:31 +01:00
alesapin
a6938cf5d9 Less verbose logging 2020-02-13 15:03:30 +03:00
alesapin
45ebf08925 Better 2020-02-13 14:38:04 +03:00
alesapin
e39b6dff54 Finally working code 2020-02-13 12:56:07 +03:00
Alexander Kuzmenkov
3a58ef03e3
Update general_purpose_hashes_on_UUID.xml 2020-02-13 12:50:25 +03:00
Alexander Kuzmenkov
b9eb40bccb
Update cpu_synthetic.xml 2020-02-13 11:56:06 +03:00
Alexander Tokmakov
1d6afe9f39 Merge branch 'master' into split_databases_from_context 2020-02-12 21:18:32 +03:00
Alexander Tokmakov
b6039f8c50 remove tryGetExternalTable 2020-02-12 21:14:12 +03:00
Alexander Tokmakov
2e6796e7d7 move ViewDependencies to DatabaseCatalog 2020-02-12 19:54:26 +03:00
Mikhail Korotov
b7a159feab Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-12 17:36:02 +03:00
Mikhail Korotov
62be802ea9 tests fixed 2020-02-12 17:35:23 +03:00
Mikhail Korotov
5d1396ca33
Update Cluster.h 2020-02-12 17:32:18 +03:00
Mikhail Korotov
12c9fbe44d Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-12 17:12:18 +03:00
millb
c4b45ddff8 fixed tests 2020-02-12 17:11:03 +03:00
Alexander Kuzmenkov
48a98773c9
Update general_purpose_hashes_on_UUID.xml 2020-02-12 15:39:44 +03:00
Ivan
bef233f450
Add simple memory profiler (#8765)
* Add new trace type to system.trace_log table

* [WIP]

* Add settings for soft limit raising.

* Remove unused diff

* Remove unused diff

* Some renames

* Fix client hanging on quit

* Remove obsolete pointer for trace collector in context.

* Use memory tracker on query level.

* Fix TSan tests

* Try to simplify TraceCollector initialization.

It allows to workaround first call inside signal handler

* Initialize TraceCollector before setting signal handlers

* Attempt to fix

* Fix Int64 → UInt64 for |size|

* Explicitly reset global TraceCollector instance.
2020-02-12 15:37:40 +03:00
Guillaume Tassery
4ea8cfb1e1 cosmetic 2020-02-12 12:45:31 +01:00
Guillaume Tassery
46bffd0564 add tests 2020-02-12 12:08:14 +01:00
proller
4c3b8649e3 Merge remote-tracking branch 'upstream/master' into fix27 2020-02-12 13:59:14 +03:00
Guillaume Tassery
b9954f6785 Merge branch 'master' of github.com:ClickHouse/ClickHouse into bit_on_bitset 2020-02-12 11:35:07 +01:00
Guillaume Tassery
e5b048ab51 Can use bit(And|Or|Xor) using a bitset set as a FixedString 2020-02-12 11:33:43 +01:00
Mikhail Korotov
43d4838849 Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-12 13:13:50 +03:00
millb
6abeabc1f2 fixed bugs 2020-02-12 13:13:11 +03:00
Mikhail Korotov
5bd74b464d Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-12 13:08:10 +03:00
millb
92fc1a9b2b fixed bugs 2020-02-12 13:06:09 +03:00
alesapin
526428ffe0 Better 2020-02-12 13:00:24 +03:00
Mikhail Korotov
01b03f9b1f Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into secure_password 2020-02-12 11:43:52 +03:00
CurtizJ
59c4f53fec fix polymorphic parts fetching 2020-02-12 02:29:34 +03:00
Yatsishin Ilya
fbddec5c58 Merge remote-tracking branch 'origin' into qoega/random-table-function-small 2020-02-11 23:33:25 +03:00
Yatsishin Ilya
647994fea2 pcg64_oneseq -> pcg32 2020-02-11 23:32:45 +03:00
chertus
cbf99fa8b2 Merge branch 'master' into joins 2020-02-11 22:27:47 +03:00
Alexander Kuzmenkov
f88bf5595c
Update cpu_synthetic.xml 2020-02-11 22:21:08 +03:00
Alexander Kuzmenkov
5dcca60d98
Update general_purpose_hashes_on_UUID.xml 2020-02-11 22:18:40 +03:00
Alexander Kuzmenkov
413cb601dd
Merge pull request #8969 from filimonov/kafka_producer_with_key_and_timestamp
key and timestamp in Kafka producer
2020-02-11 22:03:37 +03:00
Alexander Tokmakov
3c5d6cf6f1 fix 2020-02-11 21:47:13 +03:00
chertus
d2d4118730 add JoinSwitcher 2020-02-11 21:28:37 +03:00
Ivan
1f4ba36cbc
Fix some tests to support pytest with query tests (#9062) 2020-02-11 21:05:08 +03:00
Ilya Yatsishin
5b4b04e13b
Merge pull request #9050 from CurtizJ/fix-range-reader
Fix order of ranges in MergeTreeDataSelectExecutor
2020-02-11 18:31:34 +03:00
Ivan Lezhankin
5644fa8c41 Explicitly reset global TraceCollector instance. 2020-02-11 18:16:53 +03:00
alesapin
9e0d4b0bd4 Seems to work 2020-02-11 17:54:46 +03:00
sundy-li
9ad7f3f0e1 Update tests 2020-02-11 22:52:09 +08:00
Yatsishin Ilya
a7ec7a6c4d pcg64 -> pcg64_oneseq 2020-02-11 17:05:51 +03:00
Yuriy
68eea2ba18 send string columns to mysql client as utf8 2020-02-11 16:58:49 +03:00
CurtizJ
b26a8b5622 choose part type while selecting parts to merge 2020-02-11 16:41:26 +03:00
sundy
250475557d Show Queries more like MySQL 2020-02-11 19:36:12 +08:00
Mikhail Korotov
f8db74fca6 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into secure_password 2020-02-11 13:51:37 +03:00
alexey-milovidov
306ee519df
Merge pull request #9073 from mator/patch-1
Update config.xml
2020-02-11 13:50:51 +03:00
Artem Zuikov
840d4c5f4a
Merge pull request #9067 from 4ertus2/some
Refactoring: actualize ExpressionAnalyzer public interface
2020-02-11 13:48:56 +03:00
Anatoly Pugachev
138d3800cf
Update config.xml
correct HTTP 404 link
2020-02-11 13:33:38 +03:00
Yatsishin Ilya
9e609cc374 Merge branch 'master' of https://github.com/clickhouse/clickhouse into qoega/random-table-function-small 2020-02-11 13:13:10 +03:00
Yatsishin Ilya
db6764d0d6 Merge branch 'qoega/random-table-function-small' of github.com:qoega/clickhouse into qoega/random-table-function-small 2020-02-11 12:55:37 +03:00
Yatsishin Ilya
e2688e030d fix indufficient arguments parsing 2020-02-11 12:53:54 +03:00
Nikolai Kochetov
42692ad07b Fix typeo in ExternalModelsLoader. 2020-02-11 08:32:27 +03:00
CurtizJ
c72c38aea9 require strict part type in MergeTreeReaders 2020-02-10 23:30:49 +03:00
chertus
b4ea4ca654 actualize ExpressionAnalyzer public interface 2020-02-10 22:55:13 +03:00
Yatsishin Ilya
af34a659fa Merge remote-tracking branch 'origin' into qoega/random-table-function-small 2020-02-10 22:14:30 +03:00
Alexander Kuzmenkov
f9a7a32852 less flappy 2020-02-10 21:38:53 +03:00
Alexander Tokmakov
18dd0c8f8c move DDLGuard to DatabaseCatalog 2020-02-10 21:31:52 +03:00
Alexander Tokmakov
45338ad9ca fixes 2020-02-10 21:19:35 +03:00
alesapin
260a4687f0 Something working 2020-02-10 19:55:09 +03:00
CurtizJ
90a121cc1e remove useless line 2020-02-10 19:34:47 +03:00
CurtizJ
852772364e replace std::vector to std::deque for MarkRanges 2020-02-10 19:04:24 +03:00
Artem Zuikov
bd6d9a427b
Some InterpreterSelectQuery refactoring (#9035)
move ExpressionActionsChain logic out of InterpreterSelectQuery
2020-02-10 18:50:12 +03:00
Ivan Lezhankin
cc63739837 Fix Int64 → UInt64 for |size| 2020-02-10 18:24:26 +03:00
Alexander Tokmakov
869e20d207 move databases from Context to DatabaseCatalog 2020-02-10 17:49:44 +03:00
Alexander Tokmakov
4ff7bf78ab add DatabaseCatalog 2020-02-10 17:32:59 +03:00
Alexander Tokmakov
b7197ba531 fix build 2020-02-10 16:40:42 +03:00
Alexander Tokmakov
a508c25d05 store temporary tables in DatabaseMemory 2020-02-10 16:36:51 +03:00
alesapin
2a866043aa some trash 2020-02-10 16:32:59 +03:00
Alexander Tokmakov
93dba03e81 SHOW CREATE for DatabaseMemory 2020-02-10 16:26:03 +03:00
Alexander Kuzmenkov
d59a9a7ded less flappy 2020-02-10 15:54:16 +03:00
Alexander Kuzmenkov
17de1b7519
Merge pull request #9018 from ClickHouse/aku/flappy-perf
Less flappy performance test queries
2020-02-10 15:52:42 +03:00
alesapin
2734347cc0 More verbose logging in flacky test 2020-02-10 12:16:15 +03:00
tavplubix
4543177931 Merge pull request #9048 from ClickHouse/fix_mutation_order
Fix primary.idx corruption after delete mutation
2020-02-09 19:21:23 +03:00
Alexander Kuzmenkov
2b683f6fc9 boop 2020-02-09 17:15:29 +03:00
Alexander Kuzmenkov
dae3811e25
Merge pull request #9015 from Slach/master
Track the number of MySQL connections
2020-02-09 17:01:01 +03:00
alesapin
19de74d5bd Remove redundant lock 2020-02-09 11:52:42 +03:00
alesapin
2dca542d2e Correctly accuire lock 2020-02-09 11:42:15 +03:00
Andrew Onyshchuk
9d35b8b6ea Use correct implementation for reinterpretAsFixedString 2020-02-08 19:23:09 -06:00
alesapin
5a96eaf0e8 Add missed locks for ReplicatedMergeTree alter 2020-02-08 16:39:44 +03:00
CurtizJ
b9fc9b4569 fix order of ranges in MergeTreeDataSelectExecutor 2020-02-08 00:07:18 +03:00
Alexander Kuzmenkov
ae0044efe8
Update ConfigProcessor.cpp 2020-02-07 22:37:24 +03:00
Alexander Kuzmenkov
b125e6b393 Log which configuration files we loaded. 2020-02-07 22:32:49 +03:00
Alexander Kuzmenkov
75920565c9 Improve flush performance in SystemLog
It started having problems under heavy workloads such as saving all
memory allocations to trace_log table. To improve that, stop popping
entries one by one from the log queue, and actually stop using the queue
completely, because we don't use most of its methods or its backpressure
feature. Just keep a vector of messages and flush it to disk
periodically.
2020-02-07 22:32:49 +03:00
Ivan
1b55150701
Add row-level filter support to Distributed engine (#8926)
* Add tests
* Implement support for initial user on remote side.
2020-02-07 22:31:09 +03:00
Yatsishin Ilya
118d4e0e20 Merge branch 'qoega/random-table-function-small' of github.com:qoega/clickhouse into qoega/random-table-function-small 2020-02-07 22:03:01 +03:00
Alexander Kuzmenkov
a380c21649
Update general_purpose_hashes.xml 2020-02-07 22:01:13 +03:00
tavplubix
7cd87125c7
Merge pull request #9026 from ClickHouse/fix_poco_ssl_timeouts
Fix poco secure sockets timeouts
2020-02-07 21:46:12 +03:00
tavplubix
c6a8e4d67e
Merge pull request #8958 from ClickHouse/json-each-row-array-fix
Fixed error in JSONEachRow when data is in array.
2020-02-07 21:44:21 +03:00
tavplubix
21fdc52456
Update JSONEachRowRowInputFormat.cpp 2020-02-07 21:43:49 +03:00
alesapin
f9d70e741f
Merge pull request #9047 from ClickHouse/fix_unit_tests
Fix unit tests
2020-02-07 21:30:09 +03:00
Nikita Mikhaylov
1324f3946e
Merge pull request #8988 from nvartolomei/nv/alter-mv-modify-query
Modify Materialized View query
2020-02-07 21:28:27 +03:00
alesapin
dea937ad84 Don't use ORDER BY for empty key 2020-02-07 20:10:24 +03:00
alesapin
c3f24aa075 Fix test and improve run 2020-02-07 19:01:20 +03:00
Ivan Lezhankin
abb1220cb3 Merge branch 'master' into memory-profiler 2020-02-07 18:16:41 +03:00
alesapin
7aa71bb1dd
Merge pull request #8957 from oandrew/avro-fixes-confluent
AvroConfluent integration test
2020-02-07 16:59:37 +03:00
alesapin
1ada6e663c Missed change 2020-02-07 16:56:57 +03:00
alesapin
f3a35998e1 Fix primary.idx corruption after delete mutation 2020-02-07 16:54:17 +03:00
tavplubix
092ed1df15
Update JSONEachRowRowInputFormat.cpp 2020-02-07 16:38:37 +03:00
Alexander Tokmakov
16a3bed290 Merge branch 'master' into fix_poco_ssl_timeouts 2020-02-07 16:36:45 +03:00
Alexander Tokmakov
5fba5f97dd update submodule 2020-02-07 16:35:15 +03:00
Alexander Tokmakov
47ad022a1f disable parallel parsing for JSON in square brackets 2020-02-07 16:16:51 +03:00
Alexander Tokmakov
5956f7400f Replace ParsingStage with readPrefix() and readSuffix() 2020-02-07 14:28:05 +03:00
Anton Popov
3e8179108b
Merge pull request #8892 from PerformanceVision/select_constants
DB::Exception: Parameters are out of bound when we have a constant on the SELECT clause
2020-02-07 14:05:16 +03:00
alesapin
dcfe6524e5 Fix unit tests 2020-02-07 12:51:48 +03:00
alesapin
f4467aaa65
Merge pull request #9028 from Enmk/Gorilla_and_DoubleDelta_buffer_overflow_fix
Fixed buffer overflow on decoding small sequences with Gorilla and DoubleDelta
2020-02-07 11:40:08 +03:00
Yatsishin Ilya
ceaff363b2 recanonize linux build 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
41ffe2d9f9 style fixes 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
907037bcca Fix everything, add docs. 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
5fae4f88a4 implemented couple of generators 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
11c748d91b build fix 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
7a4143ddc3 fix 2020-02-07 10:33:00 +03:00
Yatsishin Ilya
6597176388 Added draft version of random table function.
Currently unimplemented data generators
2020-02-07 10:33:00 +03:00
Slach
8251695383 change system.metrics.MySQLConnection description after review
Signed-off-by: Slach <bloodjazman@gmail.com>
2020-02-07 08:12:00 +05:00
Slach
1bff5578b6 Merge branch 'master' of github.com:ClickHouse/ClickHouse 2020-02-07 08:03:45 +05:00
Anton Popov
9dc7577d15
Merge pull request #9038 from CurtizJ/fix-range-reader
Add test for #8914
2020-02-07 03:47:51 +03:00
Vitaly Baranov
7ebcd4b290
Merge pull request #8875 from vitlibar/RBAC-5
RBAC-5.1
2020-02-07 03:40:15 +03:00
Artem Zuikov
31948a063a
Trying to fix early constant folding (#9010)
add setting to disable early constant folding
2020-02-07 03:05:51 +03:00
Artem Zuikov
31a3f3b48b
revert TypeIndex, another fix for T64 (#9033) 2020-02-07 03:04:25 +03:00
Alexander Kuzmenkov
070ebb6bb6
boop 2020-02-07 01:42:19 +03:00
CurtizJ
cdcaef9349 add test for #8914 2020-02-06 21:57:18 +03:00
Alexander Tokmakov
acef7fc5bd add test 2020-02-06 20:23:05 +03:00
CurtizJ
2780250d05 better code near data part writer 2020-02-06 18:32:00 +03:00
Vitaly Baranov
02262e3b6e Add one more test. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
d2ff1e5dd4 Implement partial revokes. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
3706b9d92a Add tests. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
421120b997 Implement SQL queries to manipulate users and grants. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
c604ce1ca5 Add access_with_grant_option to User. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
c9f2713cc4 Remove getting user by name from Context. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
08c6061bdf Add user_id to Context. 2020-02-06 18:12:54 +03:00
Vitaly Baranov
fb3b755599 Fix granting and revoking access rights. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
328d3a8b08 Add token type '@'. 2020-02-06 18:12:53 +03:00
Vitaly Baranov
291b7c277a Move some part of the Authentication class to header to allow using in the parser. 2020-02-06 18:12:48 +03:00
proller
d69785915e Merge remote-tracking branch 'upstream/master' into fix27 2020-02-06 17:19:30 +03:00
Alexander Kuzmenkov
3df25af15f
Merge pull request #8780 from ClickHouse/aku/msan-final
Suppress the last two MemorySanitizer failures
2020-02-06 16:34:55 +03:00
Alexander Kuzmenkov
ed90f6167c
Update msan_suppressions.txt 2020-02-06 16:34:11 +03:00
Alexander Kuzmenkov
3fb8dcae55 less flappy 2020-02-06 16:11:02 +03:00
Vitaly Baranov
1e8f04b571 Add to class AllowedClientHost support for like pattern and for removing. 2020-02-06 15:25:32 +03:00
Alexander Kuzmenkov
d9073f27b7 Revert "Merge pull request #9025 from ClickHouse/revert-8303-cache-dictionary"
This reverts commit 24bdad3768, reversing
changes made to dad4f03a8f.
2020-02-06 15:18:19 +03:00
Alexander Kuzmenkov
7f9bab3fc5
Merge pull request #8985 from ClickHouse/aku/demangle-faster
Avoid extra copying when demangling names.
2020-02-06 14:57:56 +03:00
Alexander Kuzmenkov
115c89f057 less slow 2020-02-06 14:51:22 +03:00
Nicolae Vartolomei
949b498d37 Always wait for all background INSERTs to finish to catch stuck queries 2020-02-06 11:44:15 +00:00
Nicolae Vartolomei
0939a9460f Modify Materialized View query 2020-02-06 08:57:54 +00:00
Vasily Nemkov
9b64a963c4 Fixed buffer overflow on decoding small sequences with Gorilla and DoubleDelta
* When decoding 0 items with Gorilla
* When decoding 1 or 0 items with DoubleDelta
2020-02-06 16:37:21 +08:00
alesapin
29a26a87b4 Merge pull request #9022 from ClickHouse/mutations_parts_to_do_fix
Fix mutations finalization task
2020-02-06 11:26:13 +03:00
alesapin
790ef52aef
Merge pull request #9024 from CurtizJ/fix-range-reader
Fix prewhere optimization.
2020-02-06 11:25:59 +03:00
zhang2014
784230b7a8 ISSUES-8971 fix non from 2020-02-06 08:30:14 +08:00
Alexander Tokmakov
180b5d409d fix poco secure sockets timeouts 2020-02-05 23:45:16 +03:00
Alexander Kuzmenkov
189a6e65c5
boop 2020-02-05 23:07:39 +03:00
CurtizJ
db47ef923c fix prewhere 2020-02-05 19:42:27 +03:00
achulkov2
0ae0e03d52 Address latest comments 2020-02-05 19:38:03 +03:00
alesapin
1923930379 Fix mutations finalization task 2020-02-05 19:30:02 +03:00
Alexander Kuzmenkov
3368af109e
Explicit values are more conspicuous. 2020-02-05 18:08:54 +03:00
Alexander Kuzmenkov
64576c6a7a Less flappy performance test queries 2020-02-05 17:49:19 +03:00
chertus
af84814e51 fix for T64 data incompatibility 2020-02-05 17:25:33 +03:00
Slach
23b787c0d6 actualize description of system.metrics.TCPConnection
add system.metrics.MySQLConnection

Signed-off-by: Slach <bloodjazman@gmail.com>
2020-02-05 19:06:46 +05:00
Ivan Lezhankin
a5ccc72656 Merge remote-tracking branch 'upstream/master' into memory-profiler 2020-02-05 16:52:49 +03:00
zhang2014
370615de93 ISSUES-8971 add test for predicate optimizer & view 2020-02-05 19:44:18 +08:00
zhang2014
16bb4e975d ISSUES-8971 support explain & view storage 2020-02-05 19:40:18 +08:00
alesapin
f8f615dfdb Debugging 2020-02-05 14:18:11 +03:00
Alexander Kuzmenkov
64bcb78812 use proper length 2020-02-05 13:24:24 +03:00
Artem Zuikov
8c23840cc8
ExpressionActions refactoring: extract ArrayJoinAction class (#8998)
refactoring: extract ArrayJoinAction class
2020-02-05 13:12:19 +03:00
zhang2014
b9443c98fe ISSUES-8971 fix view with predicate optimizer 2020-02-05 16:00:06 +08:00
Mikhail Filimonov
babd3ca34e Fixing test build, more review fixes 2020-02-05 08:05:55 +01:00
Mikhail Filimonov
cf35392433 Test for producer with _timestamp and _key 2020-02-04 23:12:26 +01:00
Mikhail Filimonov
8c736e6c9f After review fixes 2020-02-04 22:19:34 +01:00
CurtizJ
2f9f5dfc7a better initialization of MergedBlockOutputStream 2020-02-04 19:15:28 +03:00
Alexander Kuzmenkov
7b898ec871 style 2020-02-04 16:31:15 +03:00
CurtizJ
31c39c8137 fix mutations 2020-02-04 15:11:32 +03:00
Mikhail Korotov
ad77771b9a Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-04 12:05:47 +03:00
Guillaume Tassery
a79a9cf078 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select_constants 2020-02-04 05:09:12 +01:00
Alexander Kuzmenkov
cbcb7895e4 Avoid extra copying when demangling names. 2020-02-03 22:51:26 +03:00
Nikolai Kochetov
ed71fb347e Update SelectStreamFactory. 2020-02-03 21:14:26 +03:00
Nikolai Kochetov
bc757f6b24 Processors support for StorageS3 reading. 2020-02-03 21:01:41 +03:00
Nikolai Kochetov
71f746e01a Update SelectStreamFactory. 2020-02-03 20:55:06 +03:00
Ivan Lezhankin
634d3bedd3 Attempt to fix 2020-02-03 20:06:59 +03:00
alesapin
c83387fbbc Add angry test 2020-02-03 19:52:53 +03:00
proller
bce3ec2a29 Revert "Revert "Build fixes""
This reverts commit 9e0b40bf09.
2020-02-03 19:46:17 +03:00
alesapin
d8be70d709 Fix bug 2020-02-03 19:39:36 +03:00
CurtizJ
1785b27ae5 fix build 2020-02-03 19:37:00 +03:00
millb
cb7dc72c4b Merge branch 'secure_password' of https://github.com/millb/ClickHouse into secure_password 2020-02-03 19:04:16 +03:00
millb
663e944b33 Attempt 2020-02-03 19:03:42 +03:00
CurtizJ
a0635ed390 better marks reading 2020-02-03 19:02:54 +03:00
Nikolai Kochetov
a832a630d8 Update TreeExecutor. 2020-02-03 18:35:35 +03:00
Nikolai Kochetov
30586111a6 fix totals port for pipe. 2020-02-03 17:50:19 +03:00
Nikolai Kochetov
32aa100938 fix totals port for pipe. 2020-02-03 17:28:30 +03:00
Ivan Lezhankin
88095b636e Merge remote-tracking branch 'upstream/master' into memory-profiler 2020-02-03 16:21:21 +03:00
Mikhail Korotov
e0eb2f5428
Update Cluster.cpp 2020-02-03 16:18:00 +03:00
alexey-milovidov
e24926d16e
Merge pull request #8952 from azat/getSerializedSize
Add blockSerializedSize() function (size on disk without compression)
2020-02-03 15:46:26 +03:00
alexey-milovidov
59ef2b2009
Merge pull request #8963 from millb/CRLF_in_TSV
CRLF in TSV output format
2020-02-03 15:44:59 +03:00
alexey-milovidov
5689bef818
Merge pull request #8967 from CurtizJ/attach-if-not-exists
Fix query 'ATTACH TABLE IF NOT EXISTS'
2020-02-03 15:41:57 +03:00
CurtizJ
257bb3b599 add comments near DataPart code 2020-02-03 15:08:40 +03:00
Nikolai Kochetov
a029e49438 Processors support for StorageNull reading. 2020-02-03 14:23:52 +03:00
Nikolai Kochetov
eae2ce194d Processors support for StorageNull reading. 2020-02-03 14:22:21 +03:00
CurtizJ
2d7ff400ed Merge remote-tracking branch 'upstream/master' into polymorphic-parts 2020-02-03 13:46:00 +03:00
Nikolai Kochetov
fde86203a7 Fix StorageJoin 2020-02-03 13:42:20 +03:00
CurtizJ
a5b5cb2e94 fix query 'ATTACH TABLE IF NOT EXISTS' 2020-02-03 13:38:09 +03:00
Mikhail Korotov
bf3caa0373 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into secure_password 2020-02-03 13:08:20 +03:00
Mikhail Filimonov
24ff635435 draft implementation, wip 2020-02-03 11:02:52 +01:00
Guillaume Tassery
4189a0d70b Merge branch 'master' of github.com:ClickHouse/ClickHouse into select_constants 2020-02-03 10:46:37 +01:00
alesapin
5864cab472 Merge branch 'master' into alter_on_top_of_mutations 2020-02-03 12:09:19 +03:00
Azat Khuzhin
e89ceae61a Add blockSerializedSize() function (size on disk without compression)
Sometimes it is useful to know how much does this data will take on
disk, with blockSerializedSize() you can know this (although without
compression).

This can be a major knowledge for various aggregation functions that
tracking some state (i.e. uniqCombined).
2020-02-03 11:26:40 +03:00
Azat Khuzhin
f979ce31ca Add NullWriteBuffer 2020-02-03 11:26:04 +03:00
Mikhail Korotov
a8c9385346 Test added 2020-02-03 10:57:52 +03:00
millb
0d91aff981 Code added 2020-02-03 10:40:12 +03:00
alexey-milovidov
c793f30873
Merge pull request #8954 from ClickHouse/os-thread-id
Use OS thread id everywhere instead of internal thread number.
2020-02-03 03:57:35 +03:00
Alexey Milovidov
e1e69771a0 Fixed error in JSONEachRow 2020-02-03 03:04:08 +03:00
Andrew Onyshchuk
15bad674a0 Add AvroConfluent integration test 2020-02-02 18:02:19 -06:00
alexey-milovidov
baf218b431
Merge pull request #8932 from 4ertus2/debt
Rename ANY INNER to SEMI JOIN for partial merge join
2020-02-03 01:53:52 +03:00
Alexey Milovidov
afbb3fca46 Added a test from Vasily Nemkov #8813 2020-02-03 00:11:49 +03:00
Alexey Milovidov
1aedbb3806 Merge branch 'master' of github.com:yandex/ClickHouse 2020-02-03 00:04:36 +03:00
alexey-milovidov
bf4887a33d
Merge pull request #8822 from millb/Prohibition_secondary_index_with_old_format_merge_tree
Prohibition secondary index with old syntax merge tree
2020-02-03 00:04:04 +03:00
alexey-milovidov
d1bfacae4b
Merge pull request #8953 from oandrew/avro-fixes-confluent
AvroConfluent fixes
2020-02-03 00:00:24 +03:00
Alexey Milovidov
1463764199 Removed useless code (found by PVS Studio) 2020-02-02 23:59:18 +03:00
Alexey Milovidov
d7a6951344 Updated test #8938 2020-02-02 23:26:55 +03:00
alexey-milovidov
9e0b40bf09
Revert "Build fixes" 2020-02-02 23:21:49 +03:00
Alexey Milovidov
fc17853c5a Added missing range check to function h3HexAreaM2 #8938 2020-02-02 23:13:06 +03:00
Alexey Milovidov
d11f3cb78f Changed thread_id to UInt64 to support more OS 2020-02-02 23:01:13 +03:00
Alexey Milovidov
5feb40cb6f Updated test 2020-02-02 22:49:53 +03:00
alexey-milovidov
d213f5beae
Update h3EdgeLengthM.cpp 2020-02-02 19:22:59 +03:00
chertus
d2e8b24970 better compatibility in EngineJoin 2020-02-02 19:12:48 +03:00
chertus
8c371ed75f syntax ANY INNER to SEMI LEFT JOIN rewrite 2020-02-02 17:07:50 +03:00
proller
96cfd0b6c2 Merge remote-tracking branch 'upstream/master' into fix27 2020-02-02 14:55:15 +03:00
alesapin
0c37458b20 Add missed file 2020-02-02 11:45:09 +03:00
Andrew Onyshchuk
b236f7a3ae Do not rethrow Poco exception 2020-02-01 22:06:20 -06:00
alexey-milovidov
55c5bdbace
Trigger CI 2020-02-02 05:49:36 +03:00
Alexey Milovidov
39b31907b5 Rename function #7477 2020-02-02 05:35:47 +03:00
Alexey Milovidov
f9eb4e79f6 Using OS tid everywhere #7477 2020-02-02 05:28:14 +03:00
alexey-milovidov
c1535e10d4
Merge pull request #8813 from CurtizJ/merging-in-arrays
Merging #5342 (IN with function result).
2020-02-02 04:33:54 +03:00
alexey-milovidov
ef2346b0fa
Update ActionsVisitor.cpp 2020-02-02 04:33:13 +03:00
alexey-milovidov
3a1e3f612e
Merge branch 'master' into idisk-seekable-readbuffer 2020-02-02 03:54:50 +03:00
Andrew Onyshchuk
927e572d39 AvroConfluent bugfixes 2020-02-01 18:53:11 -06:00
alexey-milovidov
185d11ad72
Merge pull request #8938 from nmandery/h3-hierarchy-master
implement more functions of the H3 library
2020-02-02 03:41:01 +03:00
alexey-milovidov
46583b2c60
Merge pull request #8835 from ClickHouse/alter-partition-dont-allow-strange-expressions
Don't allow strange expressions in ALTER ... PARTITION query
2020-02-02 03:36:59 +03:00
alexey-milovidov
eeacc97d2f
Merge pull request #8852 from vitlibar/RBAC-4
RBAC-4
2020-02-02 03:35:31 +03:00
alexey-milovidov
dbf998cc30
Merge pull request #8947 from ClickHouse/sum-map-add-perf-test
Added performance test for sumMap
2020-02-02 03:35:04 +03:00
alexey-milovidov
4fcf041383
Merge pull request #8945 from ClickHouse/h3-range-check
Added range check to function h3EdgeLengthM
2020-02-02 03:34:05 +03:00
alexey-milovidov
df44bfa771
Merge pull request #8950 from Alex-Burmak/s3_min_upload_part_size
Support of s3_min_upload_part_size setting in DiskS3
2020-02-02 03:33:50 +03:00
alexey-milovidov
b4b30202b1
Merge pull request #8949 from oandrew/avro-fixes
Avro format improvements
2020-02-02 03:33:20 +03:00
alesapin
46e31cd643 Some trash code 2020-02-01 23:33:36 +03:00
Andrew Onyshchuk
16d4990088 Get rid of SkipFnHolder 2020-02-01 11:13:50 -06:00
Vitaly Baranov
63079c40c2 Optimize access checking. 2020-02-01 17:31:25 +03:00
alesapin
bf883e5a91 Fix bug 2020-02-01 15:46:22 +03:00
alesapin
85d94194c8 Add additional check for metadata in zookeeper 2020-02-01 14:47:09 +03:00
Alexander Burmak
0c0ad54366 Support of s3_min_upload_part_size setting in DiskS3 2020-02-01 12:28:04 +03:00
Andrew Onyshchuk
b84d5c2139 Add support for references 2020-01-31 22:13:12 -06:00
Andrew Onyshchuk
1b308142d6 Support for AVRO_FIXED inserted into String 2020-01-31 18:11:51 -06:00
Alexey Milovidov
bafc5aa7b7 Added performance test for sumMap 2020-02-01 02:01:02 +03:00
alexey-milovidov
8253134739
Merge pull request #8935 from millb/CRLF_in_CSV_2
CRLF in CSV output format
2020-02-01 01:52:44 +03:00
alexey-milovidov
45497b4ed6
Merge pull request #8940 from ClickHouse/show-tables-not-like
Fixed ridiculous bug #8727
2020-02-01 01:44:51 +03:00
Alexey Milovidov
9701b006af Merge branch 'master' of github.com:yandex/ClickHouse 2020-01-31 23:24:30 +03:00
Alexey Milovidov
ef0a6000e4 Add test 2020-01-31 23:24:18 +03:00
alexey-milovidov
d20bae03fb
Merge pull request #8908 from azat/fixes
Tiny fixes
2020-01-31 23:22:30 +03:00
alexey-milovidov
41fb856da2
Merge pull request #8933 from bgiard/summing_merge_tree_strings
String keys in SummingMergeTree maps
2020-01-31 23:20:46 +03:00
Alexey Milovidov
b6761d31f3 Added range check to function h3EdgeLengthM 2020-01-31 23:16:46 +03:00
alesapin
75fe46523e Working sequential order 2020-01-31 22:30:33 +03:00
Alexey Milovidov
6f0114910f Added test #8727 2020-01-31 21:43:29 +03:00
Alexey Milovidov
1b24968b48 Fixed ridiculous bug #8727 2020-01-31 21:42:08 +03:00
Mikhail Korotov
c1bb0d953c fixed test 2020-01-31 21:31:51 +03:00
Mikhail Korotov
92889d846f solved conflict 2020-01-31 21:29:30 +03:00
Mikhail Korotov
f170a19eb3 Test style fixed 2020-01-31 21:25:21 +03:00
Nico Mandery
23c9902433 h3 hierarchical functions and string conversion 2020-01-31 18:49:17 +01:00
Vitaly Baranov
caeed69fe0 Change access rights dynamically when users.xml is edited. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
10c912dab2 Rewrite the User class to be controlled by AccessControlManager. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
168002376b Remove old access rights checking code. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
a5a2fe1260 Change test '00305_http_and_readonly' because DROP TABLE IF EXISTS now works in readonly mode in case the table doesn't exist. 2020-01-31 20:27:32 +03:00
Vitaly Baranov
2aa58193c8 Check access rights via new interface. 2020-01-31 20:27:28 +03:00
Nikolai Kochetov
cef9db809f Processors support for StorageMySQL reading. 2020-01-31 19:46:27 +03:00
Nikolai Kochetov
dd888f59a7 Fix MemorySource. 2020-01-31 19:36:57 +03:00
Nikolai Kochetov
edd2477ca7 Processors support for StorageMerge reading. 2020-01-31 19:32:00 +03:00
Nikolai Kochetov
dbffabfd46 Processors support for StorageMerge reading. 2020-01-31 19:31:08 +03:00
Nikolai Kochetov
7bedce40ea Processors support for StorageMerge reading. 2020-01-31 19:29:40 +03:00
Vitaly Baranov
9e910222da Add interfaces to check access rights. 2020-01-31 19:23:33 +03:00
Vitaly Baranov
6a8a69fd0c Use the generic class ext::scope_guard for subscriptions in IAccessStorage instead of a special class. 2020-01-31 19:23:33 +03:00
tavplubix
d43d84e71d
Merge pull request #8899 from achulkov2/issue-8864_show_create_table_bad_error_message
Issue 8864 show create table bad error message
2020-01-31 19:10:21 +03:00
alexey-milovidov
c2c5b81b70
Merge pull request #8851 from excitoon-favorites/globss3
Added globs/wildcards for s3
2020-01-31 18:56:06 +03:00
alexey-milovidov
9eb01b16fd
Merge pull request #8913 from nvartolomei/nv/alter-mv-replace-v20.1
ALTER <materialized view name> MODIFY QUERY <select_query>
2020-01-31 18:44:32 +03:00
alexey-milovidov
10dbe61089
Update 01019_alter_materialized_view_query.sql 2020-01-31 18:43:32 +03:00
Nikolai Kochetov
dc96e6d1cf Processors support for StorageMemory reading. 2020-01-31 18:26:10 +03:00
Nikolai Kochetov
fc7839716f Processors support for StorageMaterializedView reading. 2020-01-31 18:16:06 +03:00
Mikhail Korotov
0147f171ad
Update 01073_crlf_in_output_csv_format.sh 2020-01-31 18:10:46 +03:00
Nikolai Kochetov
046ff34525 Processors support for StorageLog reading. 2020-01-31 18:10:10 +03:00
Mikhail Korotov
757247cbd5 tests fixed 2020-01-31 18:06:31 +03:00
Mikhail Korotov
182b2a626c test added 2020-01-31 18:01:37 +03:00
Nikolai Kochetov
384e68d745 Processors support for StorageJoin reading. 2020-01-31 17:51:09 +03:00
Baudouin Giard
fbbf026277 String keys in SummingMergeTree maps
Accept String or FixedString data types as key for maps in the
SummingMergeTree now that sumMap supports these two types (introduced in
bc0fbd688a).

Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
2020-01-31 14:37:28 +00:00
chertus
71d2050000 rename ANY INNER to SEMI JOIN for partial merge join 2020-01-31 17:29:49 +03:00
Nikolai Kochetov
f9db37ebf7 Processors support for StorageInput reading. 2020-01-31 17:26:51 +03:00
Nikolai Kochetov
6870132713 Processors support for StorageHDFS reading. 2020-01-31 17:06:43 +03:00
Nikolai Kochetov
2d1f06a49f Processors support for StorageFile reading. 2020-01-31 16:12:11 +03:00
millb
0f5e43ec51 Attempt 2020-01-31 16:02:53 +03:00
alesapin
01ff1c65e2 More flexible schema 2020-01-31 15:25:31 +03:00
Vitaly Baranov
035740f708
Merge pull request #8907 from vitlibar/drop-temporary-table-removes-only-temporary
DROP TEMPORARY TABLE now drops only temporary table.
2020-01-31 14:48:24 +03:00
Mikhail Korotov
14acdffb0e
Update DirectoryMonitor.cpp 2020-01-31 14:29:21 +03:00
Mikhail Korotov
5c5b76d2b0
Update DirectoryMonitor.cpp 2020-01-31 14:28:39 +03:00
millb
d05642575d fixed 2020-01-31 14:16:46 +03:00
proller
56a1fd9903 Merge remote-tracking branch 'upstream/master' into fix27 2020-01-31 14:08:08 +03:00
millb
2dab300ad4 attempt 2020-01-31 13:49:10 +03:00
millb
613b7314f6 fixed bugs 2020-01-31 12:29:28 +03:00
millb
165afabdd2 second attempt 2020-01-31 12:22:30 +03:00
Pavel Kovalenko
e615f72749 Fixed DiskTest 2020-01-31 12:05:41 +03:00
Nikolai Kochetov
0157de021a Processors support for StorageDistributed reading. 2020-01-31 11:54:57 +03:00
Nikolai Kochetov
240f1e3e96 Processors support for StorageDictionary. 2020-01-31 11:14:20 +03:00
Nikolai Kochetov
c5289212ca
Merge pull request #8902 from ClickHouse/storage-buffer-processors
Storage buffer processors
2020-01-31 10:46:16 +03:00
Alexey Milovidov
51f55b3eed Added test 2020-01-31 05:07:02 +03:00
Alexey Milovidov
54f1cea22c Merge branch 'master' into alter-partition-dont-allow-strange-expressions 2020-01-31 04:35:33 +03:00
alexey-milovidov
0f800b2e73
Merge pull request #8910 from PerformanceVision/jit_nullable
Unexpected column in LLVMExecutableFunction when we use Nullable type when we use the JIT
2020-01-31 04:32:10 +03:00
Alexey Milovidov
26e328c7e2 Minor modifications for #8860 2020-01-31 04:10:12 +03:00
alexey-milovidov
dedf513aa3
Merge pull request #8860 from Avogar/json_each_row
Allow data in square brackets in JSONEachRowFormat.
2020-01-31 04:06:27 +03:00
alexey-milovidov
d76d55335e
Merge pull request #8914 from bgiard/range_reader
Fix crash in corner case of MergeTreeRangeReader::ReadResult::shrink
2020-01-31 03:57:52 +03:00
alexey-milovidov
5d3c62cd52
Merge pull request #8917 from filimonov/kafka_fixes_part2
Kafka fixes part2
2020-01-31 03:55:46 +03:00
proller
bec5289477 Merge remote-tracking branch 'upstream/master' into fix27 2020-01-31 02:42:07 +03:00
Vitaly Baranov
8492b02511 Add test. 2020-01-31 02:37:40 +03:00
alexey-milovidov
835a435347
Merge pull request #8903 from bgiard/sum_map_strings
Add support of String and FixedString keys for sumMap
2020-01-31 01:02:16 +03:00
Mikhail Filimonov
a6e3265960 Kafka proper rebalances processing, controlled assignment, faster tests 2020-01-30 20:30:45 +01:00
Pavel Kovalenko
52db32fd5d Fixed reading from StorageLog table. 2020-01-30 22:30:42 +03:00
Pavel Kovalenko
9efda05839 StorageLog test with DiskLocal and DiskMemory. 2020-01-30 22:29:30 +03:00
proller
402b8608e1 Merge remote-tracking branch 'upstream/master' into fix27 2020-01-30 19:47:01 +03:00
proller
e6ec39bf20 Fix gcc8 2020-01-30 19:46:36 +03:00
achulkov2
1f97500756 Address comment 2020-01-30 19:41:58 +03:00
achulkov2
0482ab8eaa Address comment 2020-01-30 19:35:33 +03:00
Nikolai Kochetov
a039deed2d Update TreeExecutorBlockInputStream. 2020-01-30 19:17:46 +03:00
alexey-milovidov
8f75797801
Merge pull request #8906 from zlobober/key_conditions
Extend KeyCondition interface so that it returns BoolMask.
2020-01-30 18:52:47 +03:00
Baudouin Giard
9216c5761c Fix crash in corner case of MergeTreeRangeReader::ReadResult::shrink
It looks like most times the original number of rows per granule is
pretty much consistent across all granules, except for the last one,
however there seems to be cases (Issue #7713) where that's not the case.

The only way I have to reproduce the crash involves using proprietary
data, and unfortunately I haven't been able to come up with a test case
that would highlight the problem - just like the person who opened issue
7713. I can't share my dataset.

Reading the code, it looks pretty obvious to me here - unless I'm
missing something, that the intention here is to copy the corresponding
granules to one another so it makes sense to index
rows_per_granule_original with the same variable as rows_per_granule.

Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
2020-01-30 15:40:48 +00:00
achulkov2
68cf5104e1 Fix types 2020-01-30 18:17:20 +03:00
proller
cd0e9217da Merge remote-tracking branch 'upstream/master' into fix27 2020-01-30 18:11:22 +03:00
achulkov2
07699df1e8 Address comments 2020-01-30 17:59:16 +03:00
Ivan Lezhankin
a42c5b4076 Initialize TraceCollector before setting signal handlers 2020-01-30 17:31:01 +03:00
Nicolae Vartolomei
fd42d1ee87 ALTER <materialized view name> MODIFY QUERY <select_query>
Trying to resurrect https://github.com/ClickHouse/ClickHouse/pull/7533.
I'd like to get this PR in if we have an agreement on syntax and general
direction, after that I'll rebase actual alter functionality from above mentioned PR.
2020-01-30 14:12:49 +00:00
Avogar
75fe61251b Add test for data in square brackets in JSONEachRow. 2020-01-30 17:03:07 +03:00
Avogar
c5b0b6ba29 Merge branch 'master' of github.com:yandex/ClickHouse into json_each_row 2020-01-30 16:43:32 +03:00
alesapin
d0e5243ad8 Send updates in entry 2020-01-30 15:54:52 +03:00
Avogar
e219fc1e68 Change method of parsing data in square brackets by adding parsing stages. 2020-01-30 15:05:27 +03:00
Ivan Lezhankin
d36f082094 Merge remote-tracking branch 'upstream/master' into memory-profiler 2020-01-30 14:36:59 +03:00
Guillaume Tassery
c18fb015ac Merge branch 'master' of github.com:ClickHouse/ClickHouse into jit_nullable 2020-01-30 12:31:36 +01:00
Guillaume Tassery
be45e1b3b6 cosmetic 2020-01-30 12:31:21 +01:00
Guillaume Tassery
7d3c677921 Accept nullable for JIT function 2020-01-30 12:31:21 +01:00
Guillaume Tassery
a0e91fc9f6 Accept nullable values when we use the JIT feature 2020-01-30 12:31:21 +01:00
millb
236f461420 attempt 2020-01-30 14:15:43 +03:00
Nikolai Kochetov
3c4fe4f20e Fix StorageBuffer/ 2020-01-30 13:30:48 +03:00
alesapin
453be4c587 Removed changed node struct 2020-01-30 13:30:35 +03:00
Nikolai Kochetov
00546498b6 Fix StorageBuffer/ 2020-01-30 13:26:25 +03:00
Nikolai Kochetov
9eb97e6db2 Fix StorageBuffer/ 2020-01-30 13:22:59 +03:00
Vladimir Chebotarev
4b2eff8551 Added passing ttl info between replicas. 2020-01-30 13:21:40 +03:00
Nikolai Kochetov
5fd9db4370 Fix BufferSource. 2020-01-30 10:32:54 +03:00
Nikolai Kochetov
a5b016eb61 Fix BufferSource. 2020-01-30 10:28:49 +03:00
Nikolai Kochetov
ab5c4bed3a
Merge pull request #8823 from ClickHouse/storage-system-processors
Processors and system storages.
2020-01-30 10:22:31 +03:00
millb
f7ab01b746 Merge branch 'Prohibition_secondary_index_with_old_format_merge_tree' of https://github.com/millb/ClickHouse into Prohibition_secondary_index_with_old_format_merge_tree 2020-01-30 10:13:52 +03:00
millb
7e1a23d910 fixed 2020-01-30 10:13:09 +03:00
Vladimir Chebotarev
9706374066 Fixed error messages. 2020-01-30 09:17:55 +03:00
Azat Khuzhin
ca8d9ac7f8 Fix error message for force_optimize_skip_unused_shards 2020-01-30 09:01:54 +03:00
Azat Khuzhin
c6d95e9dfd Rename tables to match the test number for 01071_force_optimize_skip_unused_shards 2020-01-30 09:01:45 +03:00
Vitaly Baranov
e37eda3bdf DROP TEMPORARY TABLE now drops only a temporary table. 2020-01-30 02:41:22 +03:00
Maxim Akhmedov
fa16149e1a Fix style checks. 2020-01-30 02:36:39 +03:00
Maxim Akhmedov
2d3321e003 Extend KeyCondition interface so that it returns BoolMask. 2020-01-30 00:40:22 +03:00
Alexander Kuzmenkov
09b8f34370
Merge pull request #8896 from ClickHouse/aku/enum-wrong-value
Report BAD_ARGUMENTS for a wrong user-supplied enum value.
2020-01-30 00:25:17 +03:00
Ubuntu
bc0fbd688a Make sumMap accept String keys
Adapt sumMap to accept an array of strings as the key column. This is useful when we do not want or cannot make the keys be numbers.

Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
2020-01-29 19:38:41 +00:00
achulkov2
0bece0c43e Fix error with consecutive detach and attach 2020-01-29 21:45:03 +03:00
Nikolai Kochetov
d1bc3513a2 Fix build. 2020-01-29 21:22:09 +03:00
Nikolai Kochetov
0c4f6eaca9 Fix build. 2020-01-29 21:18:12 +03:00
Nikolai Kochetov
84a392402f Processors reading for StorageBuffer. 2020-01-29 21:14:40 +03:00
alesapin
0893f7d49c Mutate from alter metadata task 2020-01-29 20:28:39 +03:00
Nikolai Kochetov
bded6e5cff Added holded contexts and storages to Pipe. 2020-01-29 19:59:11 +03:00
alexey-milovidov
b567907431
Merge pull request #8868 from amosbird/countoptfix
Fix `MakeSet` in Group By
2020-01-29 19:53:41 +03:00
Ivan Lezhankin
56f6199b11 Try to simplify TraceCollector initialization.
It allows to workaround first call inside signal handler
2020-01-29 19:34:55 +03:00
Nikolai Kochetov
e7a29b24e5 Added table locks to Pipe. 2020-01-29 18:55:13 +03:00
Nikolai Kochetov
6cb86cef24 Added AddingMissedTransform. 2020-01-29 18:35:43 +03:00
Nikolai Kochetov
81d4fd9579 Add prepared pipe to InterpreterSelectQuery. 2020-01-29 18:04:46 +03:00
achulkov2
cdfffd343d Fix unreachable check 2020-01-29 17:57:22 +03:00
Nikolai Kochetov
162a2cb2f4 update SourceFromSingleChunk 2020-01-29 17:32:38 +03:00
Alexander Kuzmenkov
975f042dc0 Report BAD_ARGUMENTS for a wrong user-supplied enum value.
Before we reported LOGICAL_ERROR that is incorrect.
2020-01-29 17:17:34 +03:00
achulkov2
61ff06be70 Experimenting 2020-01-29 16:12:11 +03:00
alexey-milovidov
f65b75ce5a
Merge pull request #8874 from abyss7/issue-6964
Initialize query profiler for all threads in a group
2020-01-29 15:41:59 +03:00
Nikolai Kochetov
74d1eb90df Automatically call progress for SourceWithProgress. 2020-01-29 13:26:08 +03:00
Nikolai Kochetov
57100fc962 Merge branch 'master' into storage-system-processors 2020-01-29 13:17:18 +03:00
Nikolai Kochetov
8ce6040306
Merge pull request #7796 from ClickHouse/processors-4.3
Processors and system.numbers
2020-01-29 13:11:13 +03:00
Guillaume Tassery
79b4b48528 cosmetic 2020-01-29 11:09:27 +01:00
Guillaume Tassery
0f348eb121 add tests 2020-01-29 11:02:10 +01:00
Guillaume Tassery
da67f408a3 Fix out of bounds error when we have a constant 2020-01-29 11:01:42 +01:00