alesapin
0f286ac133
Copy some methods to metdata
2020-06-16 15:03:27 +03:00
alesapin
eae901f58d
Merge branch 'master' into atomic_metadata5
2020-06-16 14:44:45 +03:00
alesapin
0a33ccb77b
Fix remove method
2020-06-16 14:12:52 +03:00
alesapin
d1052f2dfe
Better logic
2020-06-16 13:50:47 +03:00
alesapin
d5b76b2fe1
Fix parts count in mutations
2020-06-16 13:34:59 +03:00
alesapin
0cb14c836c
Merge pull request #11691 from ClickHouse/fix-race-condition-system-sync-replicas
...
Fix race condition in SYSTEM SYNC REPLICA
2020-06-16 13:29:18 +03:00
alesapin
362aaf1385
Merge pull request #11516 from ClickHouse/consistent_metadata4
...
Storage metadata as a single struct.
2020-06-16 13:28:22 +03:00
alesapin
605c904fc6
Add method for compatibility
2020-06-16 11:39:12 +03:00
Nikolai Kochetov
66c0ef2610
Do not materialize header for merge tables.
2020-06-16 11:08:32 +03:00
Alexey Milovidov
125b007360
Merge branch 'master' into remove-leader-election-2
2020-06-16 05:56:29 +03:00
Alexey Milovidov
22a92faab6
Avoid connection to replica when fetches are cancelled
2020-06-16 05:14:53 +03:00
Alexey Milovidov
53d985909e
Fix race condition in SYSTEM SYNC REPLICA
2020-06-16 01:54:19 +03:00
Alexey Milovidov
186d336e31
Use proper timeouts when communicating with xdbc-bridge
2020-06-16 01:35:15 +03:00
Alexey Milovidov
d10109dc38
Remove excessive statement #11131
2020-06-15 22:18:33 +03:00
alesapin
36ba0192df
Metadata in read and write methods of IStorage
2020-06-15 22:08:58 +03:00
Vitaly Baranov
15132d47c9
Slightly improve syntax of CREATE POLICY.
...
Also rename column source=>storage in table system.row_policies.
2020-06-15 22:07:42 +03:00
alesapin
b47a7327fd
All set methods in metadata
2020-06-15 21:08:05 +03:00
alesapin
33a74a3ea0
TTL methods in StorageInMemoryMetadata
2020-06-15 20:50:53 +03:00
alesapin
e667eb57b2
Working set*Keys methods
2020-06-15 20:24:49 +03:00
alesapin
5fc41c7ecc
Move set*Key methods to StorageInMemoryMetadata
2020-06-15 20:17:06 +03:00
Vitaly Baranov
4bd00b02e2
Improve syntax of CREATE QUOTA. Now resource types and key types could be written with underscores.
...
Also rename columns key_type=>keys and source=>storage in table system.quotas.
2020-06-15 20:10:34 +03:00
Vitaly Baranov
92b9f4a88d
Rename ExtendedRoleSet => RolesOrUsersSet.
2020-06-15 20:10:34 +03:00
alesapin
aa30649ce5
Working setColumns, setConstraints, setIndices
2020-06-15 20:10:14 +03:00
alesapin
af2fe2ba55
Compilable setColumns, setConstraints, setIndices
2020-06-15 19:55:33 +03:00
alesapin
8f66c1b22c
Merge with master
2020-06-15 17:31:37 +03:00
alesapin
8945d0073a
Fix misunderstanding bug in mutations finalization
2020-06-15 16:37:40 +03:00
Artem Zuikov
24059efad5
Change push down logic in VIEW ( #11513 )
2020-06-15 15:36:10 +03:00
alesapin
2c9ce0f3fa
Bump CI
2020-06-15 13:14:36 +03:00
alesapin
bc9a3c0458
Merge branch 'master' into consistent_metadata4
2020-06-15 11:20:30 +03:00
alesapin
c20ce687cf
bump ci
2020-06-15 11:12:01 +03:00
alexey-milovidov
fd6115cccf
Merge pull request #11648 from ClickHouse/simplify-code-functions-comparison-3
...
Allow comparison with String in index analysis; simplify code.
2020-06-15 05:47:03 +03:00
Alexey Milovidov
d2c66f9688
Added comments
2020-06-15 05:14:59 +03:00
Alexey Milovidov
bbe5f4c909
Revert "Remove "current_password" because it is harmful"
...
This reverts commit 66ccb2f6b1
.
2020-06-15 05:13:41 +03:00
Alexey Milovidov
5866401f60
Less noise in cleanup thread
2020-06-15 05:12:06 +03:00
Alexey Milovidov
66ccb2f6b1
Remove "current_password" because it is harmful
2020-06-15 04:12:01 +03:00
Alexey Milovidov
689b6901f8
Fix typo
2020-06-15 04:04:42 +03:00
Alexey Milovidov
1c438a133e
Leader election both backward and forward compatible
2020-06-15 03:59:12 +03:00
Alexey Milovidov
b596831342
Merge branch 'master' into remove-leader-election-2
2020-06-15 03:16:41 +03:00
Alexey Milovidov
8dac30ae95
Split file for better build times
2020-06-14 21:42:10 +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
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
394fb64a9c
Better way of implementation
2020-06-14 20:42:11 +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
d6cf62e587
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 04:56:22 +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
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
f53da4d36b
Merge pull request #11608 from ClickHouse/fix-nullable-prewhere-type
...
Fix nullable prewhere type
2020-06-13 20:29:12 +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
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
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
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
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
Ivan Blinkov
e98a91e9f7
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-12 16:53:00 +03: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
Alexey Milovidov
540f8532cb
Fix error
2020-06-11 22:59:15 +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
5f073c3ef4
Update StorageReplicatedMergeTree.cpp
2020-06-11 17:11:13 +03:00
Nikolai Kochetov
ed0826efa7
Remove extra columns from sample in StorageBuffer.
2020-06-11 15:18:45 +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
alesapin
dd3cf0fe0a
Don't miss columns TTLs update
2020-06-10 21:02:45 +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
Ivan Blinkov
90ee4d52f4
merge master
2020-06-10 13:18:41 +03:00
alesapin
ec933d9d03
Better naming
2020-06-10 12:09:51 +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
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
alesapin
6f673b0981
Fix comments bug
2020-06-09 19:33: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
Ivan Blinkov
6f7064928f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 19:07:57 +03:00
alesapin
f7a397242f
Merge branch 'master' into consistent_metadata4
2020-06-09 18:59:59 +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
Ivan Blinkov
5b3fef526e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 11:51:29 +03:00
alesapin
223f45685f
Review fixes
2020-06-09 05:03:22 +03:00
alesapin
de59629b38
Fix benign race condition during shutdown
2020-06-09 04:48:30 +03:00
Azat Khuzhin
d2383f0f5d
Fix async INSERT into Distributed for prefer_localhost_replica=0 and w/o internal_replication
2020-06-08 21:58:56 +03:00
alesapin
0d375e4522
Fix constraints
2020-06-08 21:49:54 +03:00
alesapin
a5a9048109
At least fixed gcc-9 build
2020-06-08 21:23:26 +03:00
alesapin
7b63a88120
Remove redundant error code
2020-06-08 18:19:41 +03:00
alesapin
d625162fce
Better comment
2020-06-08 17:23:32 +03:00
alesapin
37a1d128c9
Better
2020-06-08 17:22:11 +03:00
alesapin
a30b72a128
Less debug
2020-06-08 17:21:12 +03:00
alesapin
2354939994
Remove log debug
2020-06-08 17:19:20 +03:00
alesapin
638cd50ce4
Fix several bugs
2020-06-08 17:18:38 +03:00
alesapin
2226f79f16
Fix some bugs
2020-06-08 15:57:25 +03:00
alesapin
ac67d0485c
Merge branch 'master' into consistent_metadata4
2020-06-08 15:06:51 +03:00
Vitaliy Zakaznikov
5fe67c4292
* Removing supportsPrewhere() from StorageLiveView.h as it is not valid.
...
* Updating test to check using PREWHERE in query against live view table.
* Updating test to check using PREWHERE in the stored query against the table that does
not support PREWHWERE.
2020-06-08 13:12:40 +02:00
Vitaliy Zakaznikov
75c97ca82a
Adding support for PREWHERE in live view tables.
2020-06-08 00:19:23 +02:00
Alexey Milovidov
f2cfb7d132
Whitespaces
2020-06-08 00:05:36 +03:00
alexey-milovidov
e3c528e661
Merge pull request #11174 from excitoon-favorites/s3tests
...
Added tests for improved S3 URL parsing
2020-06-07 02:44:40 +03:00
Ivan
d2178cbacd
Merge pull request #11388 from filimonov/kafka_better_settings
...
Better settings for Kafka
2020-06-07 01:26:21 +03:00
alexey-milovidov
5ff63d9ad5
Merge pull request #11486 from ClickHouse/speed-up-build
...
Speed up build by removing old example programs
2020-06-07 00:22:03 +03:00
Ivan
657ce426d3
Fix build
...
Checked locally - no PR
2020-06-06 22:27:48 +03:00
BayoNet
e9b7919e12
DOCS-271: Updated the MergeTree() ORDER BY description ( #11433 )
...
* CLICKHOUSEDOCS-271: Updated the MergeTree() ORDER BY description.
* CLICKHOUSEDOCS-271: Fixes grammar.
* CLICKHOUSEDOCS-271: Updated by comments.
Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-06-06 20:44:48 +03:00
Ivan
058821fa02
Merge branch 'master' into kafka_better_settings
2020-06-06 19:50:38 +03:00
Alexey Milovidov
d3d02a67f4
Speed up build by removing old example programs
2020-06-06 19:19:16 +03:00
alexey-milovidov
3e84b17cf8
Merge pull request #11394 from azat/system.distribution_queue
...
Add system.distribution_queue table
2020-06-06 18:59:59 +03:00
alexey-milovidov
82e849e6a1
Update StorageDistributed.cpp
2020-06-06 18:57:52 +03:00
Anton Popov
5c42408add
Merge pull request #9113 from dimarub2000/group_by_in_order_optimization
...
[WIP] Optimization of GROUP BY with respect to table sorting key.
2020-06-06 14:25:59 +03:00
Artem Zuikov
c58f9bd43d
refactoring: remove TableWithColumnNames
2020-06-06 00:17:00 +03:00
Ivan Blinkov
653a9afda0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-05 22:51:28 +03:00
alesapin
abaf47f0cd
Make metadata single structure
2020-06-05 20:29:40 +03:00
alesapin
2b23d1aa33
Fix reference
2020-06-05 15:13:24 +03:00
alesapin
5bc7f67e61
Better metadata for select query and renames
2020-06-05 14:54:54 +03:00
Alexander Kuzmenkov
eaaf005a03
Merge pull request #11410 from ClickHouse/aku/logical-error-synonyms
...
Remove assorted synonyms of LOGICAL_ERROR
2020-06-05 13:10:40 +03:00
Azat Khuzhin
ff85125326
Fix readability-qualified-auto
2020-06-04 20:23:46 +03:00
Alexander Kuzmenkov
029005be7c
clang-tidy
2020-06-04 17:26:16 +03:00
alesapin
22235c1951
Tiny fixes for storage s3
2020-06-04 16:48:20 +03:00
alesapin
bba558d68e
Merge branch 'custom-auth' of https://github.com/GrigoryPervakov/ClickHouse into merging_s3_auth
2020-06-04 16:19:04 +03:00
Vladimir Chebotarev
d62e85f875
Improved logging of globs in S3.
2020-06-04 16:12:08 +03:00
Nikita Mikhaylov
4e4218e10d
Merge pull request #11385 from ClickHouse/akz/bg-processing-pool-update1
...
Extended BackgroundProcessingPool::startTask() to control task execution concurrency
2020-06-04 16:19:29 +04:00
Mikhail Filimonov
26d93fdfba
Fix the test, adjust default for queued.min.messages
2020-06-04 14:14:24 +02:00
Alexander Kuzmenkov
30d7d41ebc
Merge pull request #11381 from ClickHouse/aku/fuzz-related
...
Fuzzing-related changes.
2020-06-04 15:06:11 +03:00
Alexander Kuzmenkov
0943ef3e4b
Do not set global context twice in unit tests.
2020-06-04 15:04:05 +03:00
Anton Popov
4a3d3c6e54
Merge pull request #11419 from CurtizJ/polymorphic-parts-2
...
Return lost comments and default values
2020-06-04 13:32:38 +03:00
Azat Khuzhin
86c5465bf8
Rewrite StorageSystemDistributionQueue interfaces
2020-06-04 03:04:32 +03:00
Azat Khuzhin
aa13bd9530
Fix possible SIGSEGV in StorageSystemDistributionQueue
...
Refs: #11348
2020-06-04 03:04:28 +03:00
Azat Khuzhin
f0050adc51
Make system.distribution_queue metrics non racy
2020-06-04 02:36:16 +03:00
Azat Khuzhin
09c3ca9c6c
Add last_exception into system.distribution_queue
2020-06-04 02:36:16 +03:00
Azat Khuzhin
389f78ceee
Add system.distribution_queue
...
system.distribution_queue contains the following columns:
- database
- table
- data_path
- is_blocked
- error_count
- data_files
- data_compressed_bytes
2020-06-04 02:36:16 +03:00
Azat Khuzhin
60d10f1bac
Fix typo in StorageDistributed
2020-06-04 02:36:16 +03:00
Alexey Milovidov
484d269c22
Fix typo
2020-06-04 01:15:13 +03:00
Alexey Milovidov
a0fd9b021a
Fix MSan failure in MergeTree
2020-06-04 01:11:06 +03:00
Anton Popov
1980d58ba6
add lost comments and default values
2020-06-04 00:30:45 +03:00
Mikhail Filimonov
eef914cbdf
Remove debug print
2020-06-03 20:34:22 +02:00
Mikhail Filimonov
94261b9786
Fix issues detected by clang tidy, fix issue with flush timeout
2020-06-03 19:02:24 +02:00