Vitaly Baranov
ca2fb59321
Fix calculating full names of row policies.
2020-06-15 01:44:25 +03:00
Vitaly Baranov
ceaaf67d3f
Fix parsing CREATE SETTINGS PROFILE with WRITABLE keyword.
2020-06-15 01:44:25 +03:00
Alexey Milovidov
6467302ad3
Fix gcc build
2020-06-15 01:29:22 +03:00
Alexey Milovidov
303d1ebdaf
Fix error; more tests
2020-06-15 01:17:06 +03:00
Alexey Milovidov
c4f18d2896
Fix tests
2020-06-15 00:39:22 +03:00
Alexey Milovidov
07ba7ffea5
Clear password from command line #11624
2020-06-14 22:23:05 +03:00
Alexey Milovidov
3663e2a47e
Fix syntax hilite in CREATE USER query
2020-06-14 22:11:32 +03:00
Alexey Milovidov
8dac30ae95
Split file for better build times
2020-06-14 21:42:10 +03:00
Alexey Milovidov
067cf4cc40
Fix gcc build
2020-06-14 21:31:42 +03:00
Alexey Milovidov
f6c52fe1c2
Allow comparison with String in index analysis; simplify code #11630
2020-06-14 21:31:42 +03:00
Alexey Milovidov
db0fc6c9a6
Fix tests
2020-06-14 21:24:25 +03:00
alexey-milovidov
561d4b5b01
Merge pull request #11655 from ClickHouse/position-in-system-columns
...
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 21:01:41 +03:00
Alexey Milovidov
217d05443a
Remove old non-automated test
2020-06-14 20:42:11 +03:00
Alexey Milovidov
394fb64a9c
Better way of implementation
2020-06-14 20:42:11 +03:00
alexey-milovidov
d990b98b90
Merge pull request #11593 from ClickHouse/return-not-nullable-from-count-distinct
...
Return non-Nullable results from COUNT(DISTINCT)
2020-06-14 20:39:19 +03:00
Alexander Tokmakov
6a439a5eb5
fixes
2020-06-14 19:39:06 +03:00
Alexander Tokmakov
5f9739fbf9
Merge branch 'master' into fork-potya/null_data_mods
2020-06-14 18:11:55 +03:00
Winter Zhang
dc6f904f0a
Merge branch 'master' into feature/ISSUES-7572
2020-06-14 18:28:06 +08:00
alexey-milovidov
88cf3f7083
Merge pull request #11653 from ClickHouse/parse-date-time-best-effort-incompletely-parsed-value
...
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 10:59:10 +03:00
alexey-milovidov
361cb880a3
Merge pull request #11657 from ClickHouse/dont-use-elf-if-foreign
...
Don't use debug info from ELF file if it doesn't correspond to the running binary.
2020-06-14 10:58:21 +03:00
alexey-milovidov
da3a075821
Merge pull request #11660 from bharatnc/bnc/fix-remove-unused-imports
...
remove unused imports from HTTPHandlerFactory
2020-06-14 09:43:52 +03:00
alexey-milovidov
56b8d81ef6
Merge pull request #11651 from ClickHouse/empty-parameters-url
...
Skip empty URL parameters
2020-06-14 09:00:52 +03:00
alexey-milovidov
87223b2cb7
Merge pull request #11652 from ClickHouse/allow-drop-and-rename-without-zookeeper
...
Allow to drop table if there is no metadata in ZooKeeper; allow to rename.
2020-06-14 09:00:38 +03:00
Alexey Milovidov
3958a032ac
Added a test
2020-06-14 08:15:29 +03:00
Alexey Milovidov
add7b76b83
Merge branch 'master' into return-not-nullable-from-count-distinct
2020-06-14 07:57:00 +03:00
alexey-milovidov
b9b725a39f
Merge pull request #11649 from ClickHouse/case-insensitive-regexp
...
Allow case-insensitive regexps; added a test
2020-06-14 07:55:09 +03:00
Bharat Nallan
4953b5fc84
remove unused imports from HTTPHandlerFactory
...
This removes unused imports from `src/Server/HTTPHandlerFactory.cpp`:
```bash
- #include <re2/re2.h>
- #include <common/find_symbols.h>
- #include <Poco/StringTokenizer.h>
```
2020-06-13 21:47:44 -07:00
Alexey Milovidov
44221139e9
Fix test
2020-06-14 07:35:50 +03:00
Alexey Milovidov
bba0140d8f
Fix tests
2020-06-14 07:20:52 +03:00
Alexey Milovidov
fed6843e64
Fix style
2020-06-14 07:16:52 +03:00
Alexey Milovidov
e2f7a41a1a
Fix error; clarify more results in test
2020-06-14 07:16:52 +03:00
Alexey Milovidov
4024840795
Add a test
2020-06-14 07:16:52 +03:00
Alexey Milovidov
ff3e5e1a2e
Allow implicit conversion from String in IN, VALUES and comparison #11630
2020-06-14 07:16:52 +03:00
Alexey Milovidov
eec5abde07
Fix test
2020-06-14 07:16:23 +03:00
Alexey Milovidov
4a052f60c7
Don't use debug info from ELF file if it doesn't correspond to the running binary.
2020-06-14 06:10:35 +03:00
Alexey Milovidov
d6cf62e587
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 04:56:22 +03:00
Alexey Milovidov
fae12d5e42
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 04:45:03 +03:00
Alexey Milovidov
400e9fb64f
Allow to drop table if there is no metadata in ZooKeeper; allow to rename
2020-06-14 04:23:53 +03:00
Alexey Milovidov
6c278fee61
Better exception message
2020-06-14 04:07:47 +03:00
Alexey Milovidov
970a8e3ecc
Skip empty URL parameters #10749
2020-06-14 03:56:13 +03:00
Alexey Milovidov
30f1f88118
Allow case-insensitive regexps; added a test #11101
2020-06-14 03:43:42 +03:00
Volodymyr Kuznetsov
713f8f0b22
Added groupArrayArray and groupUniqArrayArray to SimpleAggregateFunction
2020-06-13 17:21:33 -07:00
Alexey Milovidov
41afea0165
Fix style
2020-06-14 02:10:25 +03:00
Alexey Milovidov
844140467e
Simplify the code in comparison functions
2020-06-14 01:18:48 +03:00
Azat Khuzhin
0e378590fe
Add load_balancing=round_robin
2020-06-14 01:09:21 +03:00
Azat Khuzhin
c139a05370
Forward declaration in StorageDistributed
2020-06-14 01:09:21 +03:00
Alexey Milovidov
2cd82a25f5
Remove trivial count query optimization if row-level security is set #11352
2020-06-13 23:59:20 +03:00
Alexey Milovidov
e1ae9500f9
Merge branch 'master' into remove-leader-election-2
2020-06-13 23:42:32 +03:00
Azat Khuzhin
5f82cc0021
Fix description for LoadBalancing::IN_ORDER
2020-06-13 23:17:30 +03:00
alexey-milovidov
f53da4d36b
Merge pull request #11608 from ClickHouse/fix-nullable-prewhere-type
...
Fix nullable prewhere type
2020-06-13 20:29:12 +03:00
Alexey Milovidov
9901e4d528
Remove debug output #11554
2020-06-13 20:20:54 +03:00
alexey-milovidov
3fe4bea56e
Merge pull request #11632 from ClickHouse/merging-extract-all-groups
...
Minor modifications after merging #11554
2020-06-13 20:20:38 +03:00
Anton Popov
10382e50d1
Merge pull request #11635 from dimarub2000/group_by_in_order_fix
...
Group by in order fix
2020-06-13 14:21:34 +03:00
alesapin
3427da1c43
Fix incorrect usage of rows TTL
2020-06-13 13:39:25 +03:00
alesapin
18b58e8483
Revert too strict lock
2020-06-13 12:12:45 +03:00
alesapin
d636cdf4b0
Remove outdated comment
2020-06-13 11:55:03 +03:00
alesapin
31b852c46d
Remove redundant locks
2020-06-13 11:53:40 +03:00
alesapin
fcfb6d3bc2
Merge with master
2020-06-13 11:51:07 +03:00
alesapin
5d3de747cd
Merge remote-tracking branch 'origin/master' into consistent_metadata4
2020-06-13 11:50:27 +03:00
Ildus Kurbangaliev
01d903c60d
add minMap and maxMap functions
2020-06-13 08:49:00 +00:00
zhang2014
de96296e01
ISSUES-7572 fix build failure
2020-06-13 10:17:02 +08:00
Alexey Milovidov
6f0db5ef10
Fix error
2020-06-13 04:35:49 +03:00
Alexey Milovidov
21897f2abd
Instrument
2020-06-13 04:35:49 +03:00
Alexey Milovidov
6ff671b092
Improvement
2020-06-13 04:35:49 +03:00
Alexey Milovidov
cfef7ba692
Whitespace
2020-06-13 04:35:49 +03:00
Alexey Milovidov
ab00e34305
Miscellaneous
2020-06-13 04:35:49 +03:00
Alexey Milovidov
85c0706901
Step 2: allow multiple leaders
2020-06-13 04:35:49 +03:00
Alexey Milovidov
b8b55a5b99
More LeaderElection to Storage/MergeTree
2020-06-13 04:35:49 +03:00
Alexey Milovidov
52ac009754
Update versions on merge and mutation
2020-06-13 04:34:05 +03:00
Alexey Milovidov
902774c89c
Removed default value of constructor
2020-06-13 04:34:05 +03:00
Alexey Milovidov
833c8178ae
Whitespaces
2020-06-13 04:34:05 +03:00
Alexey Milovidov
6869c122a8
Step 1 towards removing leader election: check and modify version of the "log" node
2020-06-13 04:34:05 +03:00
alexey-milovidov
54b77ff967
Merge pull request #11633 from ClickHouse/avoid-errors-using-zk-api
...
Avoid errors due to implicit int<->bool conversions when using ZK API
2020-06-13 04:32:32 +03:00
Alexey Milovidov
a690851586
Fix style
2020-06-13 00:20:59 +03:00
Alexey Milovidov
8985d64237
Fix "Arcadia" build
2020-06-13 00:20:00 +03:00
Azat Khuzhin
7f52b615e0
Fix bloom filters for String (data skipping indices)
...
bloom filter was broken for the first element, if all of the following
conditions satisfied:
- they are created on INSERT (in thie case bloom filter hashing uses
offsets, in case of OPTIMIZE it does not, since it already has
granulars).
- the record is not the first in the block
- the record is the first per index_granularity (do not confuse this
with data skipping index GRANULARITY).
- type of the field for indexing is "String" (not FixedString)
Because in this case there was incorrect length and *data* for that string.
2020-06-12 22:46:40 +03:00
Alexey Milovidov
f608044690
Fix error
2020-06-12 21:19:16 +03:00
zhang2014
8d9b770da4
ISSUES-7572 fix defaults config level & add replicas_status and prometheus handler
2020-06-13 00:15:02 +08:00
Dmitry
e5897bbfb6
size_t -> ssize_t
2020-06-12 18:59:11 +03:00
alexey-milovidov
fc8da2abd3
Merge pull request #11613 from azat/system.zookeeper-path-prepend-slash
...
Prepend slash for path while querying system.zookeeper
2020-06-12 18:19:10 +03:00
Alexey Milovidov
72257061d5
Avoid errors due to implicit int<->bool conversions when using ZK API
2020-06-12 18:09:12 +03:00
Nikolai Kochetov
83155e139c
Try fix tests.
2020-06-12 17:59:14 +03:00
alesapin
0edf5ff7a2
Fix race condition
2020-06-12 17:32:47 +03:00
Alexey Milovidov
787163d0b4
Minor modifications after merging #11554
2020-06-12 17:03:00 +03:00
alexey-milovidov
13ceaa4779
Merge pull request #11554 from Enmk/extractAllGroups-Horizontal-and-Vertical
...
extractAllGroupsHorizontal and extractAllGroupsVertical
2020-06-12 16:56:14 +03:00
zhang2014
2c439afc01
ISSUES-7572 fix build failure
2020-06-12 19:17:34 +08:00
zhang2014
80b765542f
ISSUES-7572 support config default http handler
2020-06-12 18:04:42 +08:00
alesapin
465c4b65b7
Slightly better interfaces and comments
2020-06-12 12:37:52 +03:00
alesapin
4eb8a1cfef
Fix gcc build
2020-06-12 00:03:25 +03:00
Azat Khuzhin
103eb17107
Force table creation on SYSTEM FLUSH LOGS (v2)
...
After this patch SYSTEM FLUSH LOGS will force system.*_log table
creatoins (only for enabled tables of course).
This will avoid such hacks like:
set log_queries=1;
select 1;
system flush logs;
This is the second version of the patch, since first has a deadlock [1]
(reported by @alesapin). This version does not use separate lock and do
not issue CREATE TABLE from the query execution thread, instead it
activate flushing thread to do so, hence this should be the same as if
the table will be created during flush.
[1]: https://gist.github.com/alesapin/d915d1deaa27d49aa31223daded02be2
Fixes : #11563
Cc: @alesapin
Cc: @nikitamikhaylov
2020-06-11 23:12:23 +03:00
Alexey Milovidov
540f8532cb
Fix error
2020-06-11 22:59:15 +03:00
Azat Khuzhin
7884c8ef2c
Use lock_guard over unique_lock in SystemLog
2020-06-11 21:55:41 +03:00
Azat Khuzhin
176ebb26e0
Prepend slash to path for system.zookeeper queries
...
path should starts with '/', otherwise ZBADARGUMENTS will be thrown in
ZooKeeper::sendThread and the session will fail.
2020-06-11 20:58:53 +03:00
Nikolai Kochetov
7b8c1657a5
Fix nullable prewhere column type.
2020-06-11 19:34:36 +03:00
alesapin
a39d010f94
Merge branch 'master' into consistent_metadata4
2020-06-11 18:47:41 +03:00
alexey-milovidov
89df9915bb
Merge pull request #11592 from ClickHouse/replicated-merge-tree-create-drop-race-garbage
...
Fix race conditions in CREATE/DROP of different replicas of ReplicatedMergeTree
2020-06-11 17:11:38 +03:00
alexey-milovidov
5f073c3ef4
Update StorageReplicatedMergeTree.cpp
2020-06-11 17:11:13 +03:00
Alexander Kuzmenkov
e354bbc78c
Merge pull request #11588 from ClickHouse/aku/async-log
...
Add system.asynchronous_metric_log
2020-06-11 16:10:35 +03:00
Nikolai Kochetov
ed0826efa7
Remove extra columns from sample in StorageBuffer.
2020-06-11 15:18:45 +03:00
alesapin
5a9a63e9a1
Revert "Force table creation on SYSTEM FLUSH LOGS"
2020-06-11 13:22:24 +03:00
tavplubix
1777bd0273
Merge pull request #11467 from hexiaoting/showcreate
...
Add "SHOW CLUSTER(s)" queries support
2020-06-11 12:01:28 +03:00
Vasily Nemkov
db555b088d
Regenerated ya.make
2020-06-11 11:05:08 +03:00
Vasily Nemkov
50a184acac
extractAllGroupsHorizontal and extractAllGroupsVertical
...
Split tests, fixed some error messages
Fixed test and error reporting of extractGroups
2020-06-11 11:03:17 +03:00
alexey-milovidov
c7be0d6bc0
Merge pull request #11578 from ClickHouse/fix_10240
...
Fix query_id of http queries
2020-06-11 06:55:04 +03:00
alexey-milovidov
9c20afbc81
Merge pull request #11579 from ClickHouse/fix_11490
...
Fix segfault in SHOW CREATE TABLE
2020-06-11 06:54:47 +03:00
alexey-milovidov
9e688307cb
Merge pull request #11580 from ClickHouse/fix-bug-prewhere-in-subquery
...
Fix prewhere in subquery
2020-06-11 06:53:44 +03:00
Alexey Milovidov
e40ee1a173
Return non-Nullable results from COUNT(DISTINCT)
2020-06-11 06:45:12 +03:00
Alexey Milovidov
790bc4e8e0
Better code
2020-06-11 06:35:59 +03:00
Alexey Milovidov
b72a095e99
Fix race conditions in CREATE/DROP of different replicas of ReplicatedMergeTree
2020-06-11 06:24:52 +03:00
Nikita Mikhaylov
425c20eeb8
Merge pull request #11563 from azat/SYSTEM-FLUSH-LOGS-force-table-creation
...
Force table creation on SYSTEM FLUSH LOGS
2020-06-11 02:03:34 +04:00
Alexander Kuzmenkov
a6648516f4
Add files; flush more often
2020-06-11 00:16:58 +03:00
Vitaly Baranov
d6e16629ae
Merge pull request #11028 from Potya/master
...
Support numeric parameters in Number and String data types
2020-06-10 23:23:59 +03:00
Alexander Kuzmenkov
e4be52f35f
Add system.asynchronous_metric_log
2020-06-10 22:17:54 +03:00
alexey-milovidov
1d1e11d887
Merge pull request #11570 from Vxider/remove_unused_code
...
Remove unused local variables
2020-06-10 22:03:23 +03:00
alexey-milovidov
123a017057
Merge pull request #11528 from azat/use_compact_format_in_distributed_parts_names-fix
...
Fix shard_num/replica_num for <node> (breaks use_compact_format_in_distributed_parts_names)
2020-06-10 22:02:51 +03:00
tavplubix
9c86c12891
Update ParserShowTablesQuery.cpp
2020-06-10 21:11:30 +03:00
alesapin
dd3cf0fe0a
Don't miss columns TTLs update
2020-06-10 21:02:45 +03:00
alesapin
c21fac11cc
Merge branch 'master' into consistent_metadata4
2020-06-10 20:20:46 +03:00
Nikita Mikhaylov
bf262a3b04
more lock_guard
2020-06-10 18:44:28 +03:00
Nikita Mikhaylov
8c19817575
lock_guard
2020-06-10 18:30:50 +03:00
Nikolai Kochetov
d4c8adbaff
Fix sanitizeBlock
2020-06-10 18:06:37 +03:00
Alexander Tokmakov
08073903ed
fix query_id of http queries
2020-06-10 17:24:42 +03:00
Nikita Mikhaylov
9df693ced5
Merge pull request #11561 from Jokser/s3-http-client-memory-optimization
...
Avoid copying whole response stream into memory in S3 HTTP client.
2020-06-10 16:53:33 +04:00
Alexander Tokmakov
9166ddea41
fix segfault in show create table
2020-06-10 15:53:12 +03:00
alesapin
24db834046
Style
2020-06-10 14:27:16 +03:00
alesapin
8be957ecb5
Better checks around metadata
2020-06-10 14:16:31 +03:00
Vxider
7078355449
remove unused local variables
2020-06-10 18:06:24 +08:00
alesapin
ec933d9d03
Better naming
2020-06-10 12:09:51 +03:00
tavplubix
a93ae46ac1
Merge pull request #11079 from ClickHouse/merging_external_source_cassandra
...
Merging #4978
2020-06-10 10:39:18 +03:00
alesapin
75977bd939
Gcc fixed
2020-06-10 00:22:01 +03:00
alesapin
4f398b5dea
Merge remote-tracking branch 'origin/master' into consistent_metadata4
2020-06-09 23:53:38 +03:00
alexey-milovidov
8e05558a5f
Merge pull request #11540 from ClickHouse/fix-direct-io
...
Fix direct IO with PREWHERE
2020-06-09 23:53:09 +03:00
Azat Khuzhin
8a78cffe5c
Force table creation on SYSTEM FLUSH LOGS
2020-06-09 21:11:08 +03:00
alesapin
4c77ba664a
Better assignment
2020-06-09 20:42:04 +03:00
alesapin
d2fcf5aea5
Fixes for gcc
2020-06-09 20:28:29 +03:00
alesapin
936cc9d573
Update key
2020-06-09 20:22:03 +03:00
alesapin
4c2e0561f5
Fix primary key update
2020-06-09 20:21:38 +03:00
Alexander Tokmakov
6bb68329f8
Merge branch 'master' into merging_external_source_cassandra
2020-06-09 19:51:14 +03:00
alesapin
6f673b0981
Fix comments bug
2020-06-09 19:33:28 +03:00
Nikolai Kochetov
595fc9eff6
Merge pull request #11440 from ClickHouse/add-remote-source
...
Add remote source
2020-06-09 19:27:28 +03:00
Nikolai Kochetov
5cc2f318c9
Merge pull request #11495 from vzakaznikov/live_view_support_for_prewhere
...
Adding support for PREWHERE in live view tables.
2020-06-09 19:09:17 +03:00
alesapin
f7a397242f
Merge branch 'master' into consistent_metadata4
2020-06-09 18:59:59 +03:00
Pavel Kovalenko
f623ef635b
Avoid copying whole response stream into memory in S3 HTTP client.
2020-06-09 18:26:51 +03:00
alesapin
a6feb81af1
Fix under msan
2020-06-09 18:11:11 +03:00
alesapin
981462db04
Remove dump flag from ReadBufferAIO
2020-06-09 18:01:34 +03:00
Alexander Kuzmenkov
dd41f6a574
Merge pull request #11527 from azat/dist-insert-local-fix
...
Fix async INSERT into Distributed for prefer_localhost_replica=0 and w/o internal_replication
2020-06-09 15:21:05 +03:00
Ivan
47ad338cb2
Refactor CMake build files ( #11390 )
...
* Get rid of lib_name.cmake
* Refactor Boost and HyperScan libraries
* Refactor lz4
* Fix build with xxHash
2020-06-09 13:54:49 +03:00
alexey-milovidov
44b20eee96
Revert "S3 HTTP client - Avoid copying response stream into memory"
2020-06-09 10:23:35 +03:00
Ilya Yatsishin
822c19ddad
Merge pull request #11537 from ClickHouse/usability-exception-message-parse-columns-declaration-list
...
Better exception message when cannot parse columns declaration list
2020-06-09 09:55:40 +03:00
hexiaoting
75075a7b2b
Add DISTINCT keyword when show clusters
2020-06-09 10:39:37 +08:00