alexey-milovidov
7b9b67fd71
Merge pull request #6695 from yandex/improve-table-locks
...
Avoid possible deadlock in TRUNCATE of Replicated table.
2019-08-28 21:05:26 +03:00
Alexey Milovidov
d1c268c2ed
Added setting "kafka_max_wait_ms"
2019-08-28 18:24:23 +03:00
alexey-milovidov
696d505a1a
Merge pull request #6656 from vzakaznikov/fix_live_view_no_users_thread
...
Fix live view no users thread
2019-08-28 16:33:36 +03:00
Alexey Milovidov
a1101e5278
Fixed build
2019-08-28 16:21:19 +03:00
Alexey Milovidov
8b973fd9f2
Merge branch 'improve-table-locks' of github.com:yandex/ClickHouse into improve-table-locks
2019-08-28 15:59:23 +03:00
Alexey Milovidov
625e128770
Merge branch 'master' into improve-table-locks
2019-08-28 15:41:30 +03:00
Alexey Milovidov
c8798b2ffa
Slightly improve table locks
2019-08-28 02:47:30 +03:00
Alexey Milovidov
285d66cee1
Improve table locks (incomplete)
2019-08-27 23:43:08 +03:00
alexey-milovidov
c736d6b495
Merge pull request #6676 from dimarub2000/right_left_problem_#6381
...
Query transformation for external database fixed.
2019-08-27 23:11:39 +03:00
stavrolia
f4e0dceddb
some changes
2019-08-27 18:20:31 +03:00
Alexey Milovidov
8ca00a26f6
Fixed build
2019-08-27 17:31:34 +03:00
Alexey Milovidov
c385c950ba
Merge branch 'master' into replicate-merge-tree-minor-lock-improvement
2019-08-27 17:30:48 +03:00
alexey-milovidov
d12ced8099
Merge pull request #6191 from svladykin/ttldropparts
...
TTL: Only drop altogether the expired parts and not partially prune them.
2019-08-27 16:54:56 +03:00
alesapin
106b9717cd
Refactoring of immutable settings
2019-08-27 16:14:19 +03:00
Dmitry Rubashkin
17f18e42c0
new line
2019-08-27 16:13:40 +03:00
Dmitry Rubashkin
f1f85a5a24
Fixed case with single subquery and added tests.
2019-08-27 16:09:58 +03:00
alexey-milovidov
8db93d392b
Merge pull request #6685 from yandex/merge_tree_settings_alter
...
Alter merge tree settings with other types of alter
2019-08-27 16:07:28 +03:00
alesapin
36472b14f9
Defend kafka storage from alters
2019-08-27 12:48:20 +03:00
alesapin
7851d8fe0a
Add ability to alter settings with other types of alter
2019-08-27 12:34:53 +03:00
Alexey Milovidov
57fa4e1dd7
Minor lock improvement for ReplicatedMergeTree
2019-08-27 00:40:29 +03:00
alexey-milovidov
561b173ddc
Merge pull request #6675 from yandex/simplify-shared-ptr-helper
...
Simplify shared_ptr_helper
2019-08-27 00:36:52 +03:00
CurtizJ
5f25c2d7b4
merging with master
2019-08-26 22:49:52 +03:00
CurtizJ
1774ac4b9e
Merge remote-tracking branch 'upstream/master' into HEAD
2019-08-26 22:29:12 +03:00
Alexey Milovidov
0eec226c9a
Simplify shared_ptr_helper
2019-08-26 22:07:29 +03:00
Dmitry Rubashkin
0c75d5f42b
Function transformQueryForExternalDatabase() fixed
2019-08-26 22:03:47 +03:00
alesapin
cf31187254
Resolve conflicts
2019-08-26 21:08:58 +03:00
alesapin
0d0ebf885f
Remove two redundant arguments from alter
2019-08-26 17:50:34 +03:00
alesapin
dff0cc1e1c
Remove COW and add MultiVersion
2019-08-26 17:24:29 +03:00
Alexey Milovidov
479b4d81f3
Fixed error
2019-08-26 16:46:07 +03:00
Alexey Milovidov
60d660e263
Merge branch 'master' into merge-constraints
2019-08-26 16:13:44 +03:00
alexey-milovidov
c2b6cffabc
Update IStorage.cpp
2019-08-26 15:39:35 +03:00
alesapin
062034dfd8
Eventually merged with master
2019-08-26 13:07:32 +03:00
Alexey Milovidov
25635d1ab0
Fixed build of tests
2019-08-26 05:46:21 +03:00
Alexey Milovidov
2a3e0eb1f1
Merge branch 'master' into merge-constraints
2019-08-26 04:30:31 +03:00
Vitaliy Zakaznikov
7fb13b12f9
Reverting to previous no users thread functionality to avoid
...
keeping no users thread always alive for each live view.
2019-08-25 08:27:47 -04:00
Vitaliy Zakaznikov
2342d64d1b
* Updating no users thread to sleep 3 times longer when users are present
...
to reduce the number of times thread wakes up.
* Updating startNoUsersThread to return if the thread is already running.
2019-08-25 07:36:08 -04:00
Vitaliy Zakaznikov
62988800e6
Rewriting implementation of LIVE VIEW no users thread.
2019-08-24 21:40:24 -04:00
Alexey Milovidov
d798cbde2f
Fixed double whitespaces
2019-08-25 01:28:06 +03:00
Nikita Vasilev
2dbfabd08c
fix Set index check useless ( #6651 )
...
* fixed useless detection
* fixed useless detection
* fix
* fix
* fix
2019-08-25 01:01:36 +03:00
Alexey Milovidov
3fef8e92ad
Merging CONSTRAINTS support
2019-08-25 00:20:20 +03:00
alexey-milovidov
eeeaf8fbee
Merge pull request #6643 from yandex/double-whitespaces
...
Added a check for double whitespaces
2019-08-23 23:10:12 +03:00
alexey-milovidov
012a5f8911
Merge pull request #6596 from Enmk/hasToken
...
hasToken function implementation
2019-08-23 21:41:33 +03:00
Alexey Milovidov
b42f85e16b
Added a check for double whitespaces
2019-08-23 21:30:04 +03:00
Alexey Milovidov
4366791b63
Merge branch 'table-constraints' of https://github.com/NanoBjorn/ClickHouse into NanoBjorn-table-constraints
2019-08-23 07:49:10 +03:00
alexey-milovidov
7012a421c6
Merge branch 'master' into alter_table_drop_detached_part
2019-08-23 05:22:07 +03:00
alexey-milovidov
3a237b4375
Merge pull request #6617 from yandex/fix_too_many_parts_while_mutation_6502
...
Fix too many parts while mutation
2019-08-23 04:27:43 +03:00
Alexey Milovidov
78c3be175c
Added experimental setting for LIVE VIEWs
2019-08-23 02:46:40 +03:00
Alexey Milovidov
c4712f1e6e
Make the code less bad
2019-08-23 02:22:57 +03:00
Alexey Milovidov
859736d935
Basic code quality of Live View
2019-08-23 01:41:30 +03:00
Alexander Tokmakov
81022bb3e9
Merge branch 'master' into alter_table_drop_detached_part
2019-08-22 23:38:58 +03:00
Alexander Tokmakov
acce56095f
limit number of background threads for mutations
2019-08-22 22:35:46 +03:00
Vasily Nemkov
6d78e3be94
hasToken function implementation
...
* Function to check if given token is present in a string;
* Special case for hasToken to 'tokenbf_v1' index;
* Test cases for hasToken()
* Test case for hasToken() + 'tokenbf_v1' integration
2019-08-22 18:00:35 +03:00
alexey-milovidov
903601d3e3
Merge pull request #6600 from yandex/distributed-files-to-send-metric
...
Added a metric for the number of files to send in Distributed tables.
2019-08-22 07:34:09 +03:00
alexey-milovidov
f0e0793cdd
Merge pull request #6581 from yandex/assert_cast
...
Added checks to static_cast of columns.
2019-08-22 05:09:34 +03:00
Alexey Milovidov
6bbf3bd634
Added a metric for the number of files to send in Distributed tables
2019-08-22 04:30:49 +03:00
alesapin
b9d3d04c57
Move tasks in schedule pool
2019-08-21 19:02:13 +03:00
alesapin
be5dd3b994
Remove stupid logic
2019-08-21 16:15:44 +03:00
alesapin
6b85834ae3
Remove excessive logging
2019-08-21 16:11:08 +03:00
Alexander Tokmakov
5cb8605f61
limit number of mutations in the queue
2019-08-21 16:10:33 +03:00
alesapin
d2fe947535
Add test for race condition, found it and fix it
2019-08-21 15:32:48 +03:00
alesapin
eb5e052855
merge and fixes
2019-08-21 13:09:29 +03:00
alesapin
70ca7f4156
Merge with master
2019-08-21 11:57:35 +03:00
alexey-milovidov
308baa182e
Merge branch 'master' into table-constraints
2019-08-21 06:33:08 +03:00
Alexey Milovidov
d848009827
Fixed false data race in "MergeTreeDataPart::is_frozen" field
2019-08-21 06:16:59 +03:00
Alexey Milovidov
8966520801
Added "assert_cast" function as a replacement for static_cast for columns
2019-08-21 05:28:04 +03:00
alexey-milovidov
3f607b21fe
Merge pull request #6375 from yandex/try-to-remove-dry-run
...
Try to remove dry run
2019-08-21 03:52:41 +03:00
alexey-milovidov
58358ec856
Merge pull request #6514 from yandex/added-test-for-race-conditions
...
Added a test for race conditions.
2019-08-21 01:33:34 +03:00
Alexey Milovidov
c1de51dc5b
Better code
2019-08-20 22:53:27 +03:00
alexey-milovidov
f9968fbcfc
Merge pull request #6554 from yandex/add-table-finctions-number-mt
...
Add table function numbers_mt
2019-08-20 22:42:27 +03:00
alexey-milovidov
31a4b816fe
Merge pull request #6566 from yandex/filimonov-remove-duplicated-const
...
remove doubled const TABLE_IS_READ_ONLY
2019-08-20 22:24:40 +03:00
alesapin
e44ab4f4cd
Add tests for partitions alter
2019-08-20 22:04:58 +03:00
alesapin
8417eb9d95
Remove old tests
2019-08-20 21:35:35 +03:00
Alexey Milovidov
295aafb13f
Parallel ALTER modify: don't use ThreadPool if the number of threads is one
2019-08-20 21:18:37 +03:00
Alexey Milovidov
c8859febcb
Merge branch 'master' into added-test-for-race-conditions
2019-08-20 21:05:25 +03:00
alesapin
120e27a385
Lock parts with dirty hack
2019-08-20 21:00:48 +03:00
alesapin
9c8ec6e4fc
Fixes for replicated merge tree
2019-08-20 20:16:32 +03:00
Nikolai Kochetov
822fe63f3b
Added comment.
2019-08-20 19:13:18 +03:00
Nikolai Kochetov
aef03fd9bf
Merge pull request #6425 from yandex/vzakaznikov-liveview
...
Merge LIVE VIEW
2019-08-20 17:13:42 +03:00
Nikolai Kochetov
7bd748c969
Renamed NumbersMtBlockInputStream to NumbersMultiThreadedBlockInputStream.
2019-08-20 17:13:06 +03:00
filimonov
8d0c2eacfd
remove doubled const TABLE_IS_READ_ONLY
2019-08-20 13:18:08 +02:00
Ivan
a502424c33
Implement support for insertion into Kafka tables ( #6012 )
...
* Add write-callback on each row for RowOutputStream
* Fix build of new rdkafka library
* Poll messages if Kafka outgoing queue is full
* Add test
* Add test producer-consumer
* Truncate delimiter from last row in message
2019-08-20 14:17:57 +03:00
Nikolai Kochetov
0c0e5010dc
Added NumbersMtBlockInputStream.
2019-08-20 13:29:04 +03:00
Nikolai Kochetov
7f31b8bf9c
Added NumbersMtBlockInputStream.
2019-08-20 13:28:20 +03:00
alesapin
00bdd6c680
Support move partition
2019-08-20 12:59:19 +03:00
Gleb Novikov
86fecc7501
Merge branch 'master' into table-constraints
2019-08-20 12:17:56 +03:00
alesapin
5690498424
Remove excessive logging
2019-08-20 11:44:09 +03:00
alesapin
8408ffbfa6
Almost working replicated MT
2019-08-20 11:38:02 +03:00
Nikolai Kochetov
cdf1ce3171
Merge branch 'master' into vzakaznikov-liveview
2019-08-20 10:41:31 +03:00
Alexey Milovidov
b7cb55a06e
Added a comment
2019-08-20 04:46:48 +03:00
Alexey Milovidov
a574727269
Attempt to fix deadlock
2019-08-20 04:24:53 +03:00
Alexey Milovidov
666029db6e
Merge branch 'added-test-for-race-conditions' of github.com:yandex/ClickHouse into added-test-for-race-conditions
2019-08-20 03:50:40 +03:00
Alexey Milovidov
99aa5cce38
Fixed idiotic error in system.parts
2019-08-20 03:49:58 +03:00
Alexey Milovidov
f1fef3f169
Merge branch 'master' of github.com:yandex/ClickHouse
2019-08-20 03:48:24 +03:00
Alexey Milovidov
e594c344f5
Fixed idiotic error in system.parts
2019-08-20 03:48:08 +03:00
alexey-milovidov
3a909c54c5
Merge pull request #6523 from yandex/fix_inconsistent_parts_after_clone_replica
...
Fix inconsistent parts after clone replica
2019-08-20 02:25:00 +03:00
alexey-milovidov
fe634d69fe
Merge pull request #6550 from yandex/fix_6125
...
Fix NPE when using IN clause with a subquery with a tuple
2019-08-20 01:39:02 +03:00
Alexander Kazakov
fe5cd47068
Process prewhere clause in "skip unused shards" optimization ( #6521 )
...
* Process prewhere clause in optimize_skip_unused_shards
* Better diagnostics and logging
2019-08-19 23:28:24 +03:00
Alexey Milovidov
5575be034d
Whitespaces
2019-08-19 22:32:02 +03:00
Alexey Milovidov
22a11343e8
Attempt to fix race condition
2019-08-19 22:02:20 +03:00
stavrolia
1190e866aa
Fix
2019-08-19 21:12:50 +03:00
stavrolia
b3fd5bc141
Add tests, comments and fix
2019-08-19 21:12:50 +03:00
stavrolia
2f2bf953eb
fix and add test for storage file version
2019-08-19 21:12:50 +03:00
stavrolia
32fad1e961
fix
2019-08-19 21:12:50 +03:00
stavrolia
229dd7c2b6
wip
2019-08-19 21:12:50 +03:00
stavrolia
f9037fee2c
Fix File version
2019-08-19 21:12:50 +03:00
stavrolia
b386b3090c
Impove HDFS version
2019-08-19 21:12:50 +03:00
stavrolia
95cb95105d
Add recursive version for storage file
2019-08-19 21:12:50 +03:00
stavrolia
7addd50c16
recursive version for StorageHDFS and some tests for it
2019-08-19 21:12:50 +03:00
stavrolia
a3b35d5569
WIP
2019-08-19 21:12:50 +03:00
stavrolia
e6d85de79a
wip small change
2019-08-19 21:12:50 +03:00
stavrolia
6055c61e7f
wip hdfs
2019-08-19 21:12:50 +03:00
stavrolia
dbf1417bd6
Globs in storage file
2019-08-19 21:12:50 +03:00
Alexey Milovidov
d2e5789f82
Fixed strange code in mutations that may lead to memory corruption
2019-08-19 21:12:22 +03:00
alesapin
e9e67a2688
Almost compilable
2019-08-19 20:59:16 +03:00
Alexander Tokmakov
c62eb7a3ae
check columns count and types
2019-08-19 19:51:50 +03:00
alesapin
4ccdb8f92e
Better code
2019-08-19 17:40:12 +03:00
Alexander Tokmakov
be5df60c7a
Merge branch 'master' into fix_inconsistent_parts_after_clone_replica
2019-08-19 17:34:22 +03:00
Alexander Tokmakov
6991683a5f
remove local parts which source replica doesnt have
2019-08-19 15:08:45 +03:00
alesapin
f2a8c18c1f
Simplify lock
2019-08-19 14:18:58 +03:00
alesapin
69015f292e
Fix wrong merge
2019-08-19 14:18:39 +03:00
alesapin
6d29ed99d9
Fix bug with enable_mixed_granularity_parts and mutations
2019-08-19 13:37:04 +03:00
alesapin
a85cdc91a6
Merge branch 'master' into ObjatieGroba-feature_multiple_disks
2019-08-19 11:34:02 +03:00
alesapin
99e85ff753
Fix build
2019-08-19 11:25:07 +03:00
alesapin
e7542810bb
Merge with master
2019-08-19 11:20:48 +03:00
Nikolai Kochetov
cb848159e1
Merged with master.
2019-08-18 14:52:49 +03:00
alexey-milovidov
e2687fc2d5
Merge pull request #6513 from yandex/parts-race-condition
...
Fix race condition in system.parts vs. ALTER
2019-08-17 22:30:16 +03:00
alesapin
defc1e30ca
Some improvements
2019-08-16 18:57:19 +03:00
alesapin
af2a947ba1
Update StorageSystemParts.cpp
2019-08-16 18:06:02 +03:00
Nikolai Kochetov
7da72261a2
Merge branch 'master' into try-to-remove-dry-run
2019-08-16 15:50:48 +03:00
Nikolai Kochetov
18ad0e7e6b
Merged with master.
2019-08-16 13:55:40 +03:00
alesapin
6333f4b074
Better
2019-08-16 12:20:44 +03:00
Alexey Milovidov
b66719725f
Fix race condition in system.parts vs. ALTER
2019-08-16 03:49:33 +03:00
alexey-milovidov
01a046e8ca
Merge pull request #5053 from nikvas0/nikvas0/index_mutate
...
indices and mutations
2019-08-16 02:44:48 +03:00
alexey-milovidov
a466c7aebd
Merge pull request #6299 from CurtizJ/order-by-efficient
...
Optimizations of ranges selection while reading with enabled optimize_read_in_order.
2019-08-16 02:39:53 +03:00
alexey-milovidov
a70bfa13d4
Merge pull request #6467 from nikitamikhaylov/system_metric_log
...
system.metric_log table
2019-08-16 02:28:53 +03:00
alesapin
f988ff538b
Less code
2019-08-15 20:02:04 +03:00
Nikita Vasilev
00a5fe7836
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-15 19:48:57 +03:00
alesapin
d81961c4ca
Fix strange code
2019-08-15 12:43:31 +03:00
Gleb Novikov
ab1c4139de
Added ReplicatedMergeTree support and test for constraints, also added VIOLATED_CONSTRAINT error
2019-08-14 22:51:03 +03:00
CurtizJ
0b3d7d8032
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 21:26:25 +03:00
alesapin
e391ce813d
refactoring
2019-08-14 18:20:52 +03:00
Nikolai Kochetov
287eb633b8
Merged with master
2019-08-14 18:16:52 +03:00
Nikolai Kochetov
0635188104
Allow constants for RemoteBlockInputStream.
2019-08-14 18:14:32 +03:00
chertus
ddde50c542
minor fixes in includes
2019-08-14 17:06:16 +03:00
alesapin
6a283b6bde
Remove segfault
2019-08-14 14:59:45 +03:00
alesapin
a2ca18d287
Fix test
2019-08-14 13:30:36 +03:00
alesapin
949890ee90
Merged
2019-08-14 12:46:30 +03:00
CurtizJ
94bca8315d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 01:41:38 +03:00
alesapin
96f62fefcc
Add mutex for settings
2019-08-13 19:34:52 +03:00
alesapin
031bfc7bf3
Remove reference
2019-08-13 17:46:18 +03:00