alesapin
f576cbb8a4
Simplify code
2019-09-05 16:12:29 +03:00
Vasily Nemkov
c2fc71b5e5
Post-PR fixes
...
Renamed settings, updated docs.
2019-09-05 13:35:36 +03:00
alesapin
b71faee8cd
Merge branch 'master' into ObjatieGroba-feature_multiple_disks
2019-09-05 13:19:05 +03:00
Ivan
ab7df6b6dd
Fix kafka tests ( #6805 )
...
* Commit offsets more precisely
* Get rid of DelimitedReadBuffer since read buffers don't line up well
* Increase timeouts
2019-09-05 00:25:33 +03:00
stavrolia
5d6959173c
Improvement
2019-09-04 22:55:56 +03:00
alesapin
66362cedbc
Refactoring
2019-09-04 21:26:18 +03:00
alesapin
c003f443f9
Refactor
2019-09-04 20:26:53 +03:00
Vladimir Chebotarev
fa01cc162c
Merge fix.
2019-09-04 16:10:25 +00:00
alesapin
13bbae5860
Remove trash
2019-09-04 19:00:20 +03:00
Vladimir Chebotarev
97b7635c8a
Minimum block size to configuration.
2019-09-04 13:39:54 +00:00
Vladimir Chebotarev
dd32c92f2a
Minor fixes.
2019-09-04 13:39:53 +00:00
Vladimir Chebotarev
1944ff1a48
POST to PUT, refactoring.
2019-09-04 13:39:53 +00:00
Vladimir Chebotarev
78f57c5f2a
First attempt to make redirects.
2019-09-04 13:39:53 +00:00
Vladimir Chebotarev
ff09934219
Table function and storage.
2019-09-04 13:39:53 +00:00
Vladimir Chebotarev
47985cf8a7
Wrong commit.
2019-09-04 13:39:53 +00:00
Vladimir Chebotarev
ce69683673
Copy-paste from StorageFile.
2019-09-04 13:39:53 +00:00
alesapin
a4c3937153
Small refactoring
2019-09-04 16:24:55 +03:00
alesapin
8b6abab486
Merge branch 'master' into ObjatieGroba-feature_multiple_disks
2019-09-04 15:41:27 +03:00
CurtizJ
7accc09066
Merge branch 'palasonic-add-input-function' of https://github.com/palasonic1/ClickHouse into merging_input_function
2019-09-04 15:25:20 +03:00
alesapin
18ef235a3f
Fix indices mrk file extension
2019-09-04 15:22:20 +03:00
alesapin
16a544f300
Fix bug with mutations after granularity change
2019-09-04 15:19:42 +03:00
stavrolia
32bf915610
More docs
2019-09-04 14:11:30 +03:00
alesapin
e6e6c11ba3
Better test and NOTHING_TO_DO
2019-09-03 20:06:36 +03:00
alesapin
52442cf549
Add system stop moves query
2019-09-03 17:50:49 +03:00
alesapin
48004e9b7b
Style fixes
2019-09-03 15:25:58 +03:00
alexey-milovidov
ab75e8c26d
Merge pull request #6205 from zhang2014/fix/some_mutation
...
fix some mutation bug
2019-09-03 14:33:20 +03:00
alesapin
8d76febe02
Add moves to part log
2019-09-03 14:32:25 +03:00
alesapin
0e47bbca4d
Fix style check
2019-09-03 12:18:02 +03:00
alesapin
d08d99954f
Ugly working code
2019-09-03 11:48:43 +03:00
alesapin
27b0a06005
Fix stupid bug
2019-09-03 11:30:59 +03:00
alesapin
e7308c1f21
Merge branch 'master' into ObjatieGroba-feature_multiple_disks
2019-09-03 11:02:32 +03:00
alesapin
f0c5ee5877
Merge with master
2019-09-02 20:34:18 +03:00
alesapin
5af8c196bd
Move initialization of MergedColumnOnlyStream to constructor
2019-09-02 19:31:09 +03:00
Vasily Nemkov
f98c488834
Post-review fixes
...
* Actually using the replica recovery settings for cluster
* A bit of doc on DBMS_CONNECTION_POOL_WITH_FAILOVER_MAX_ERROR_COUNT
* StorageDistributedDirectoryMonitor using settings for ConnectionPoolWithFailover
* Using SettingSeconds instead of SettingUInt64 for replica_error_decrease_period
2019-09-02 17:26:25 +03:00
Vasily Nemkov
84fc4ba4c8
Replica recovery fixes
...
* Added a limit on how many errors can replica accumulate
* Decreased default error halving time to 60 seconds
* Made both configurable via settings
* Showing errors count and estimated recovery time for each replica in system.clusters
2019-09-02 17:26:25 +03:00
alesapin
198031f787
Refactoring
2019-09-02 14:35:53 +03:00
alesapin
e7ee9b7a67
Merge master
2019-09-02 11:46:00 +03:00
alexey-milovidov
2e86aece86
Merge pull request #6763 from yandex/add-os-thread-ids-in-system-tables
...
Add "os_thread_ids" column to system tables
2019-09-01 04:30:16 +03:00
alexey-milovidov
1dd28867b0
Merge pull request #6689 from yandex/merge_tree_settings_alter
...
Refactoring of immutable settings
2019-09-01 04:29:47 +03:00
Alexey Milovidov
cb79e2371e
Add "os_thread_ids" column to system tables
2019-09-01 00:47:15 +03:00
alesapin
7382a9f3c3
Rename method for settings check
2019-09-01 00:15:40 +03:00
Alexey Milovidov
bb0ca310ab
Allow to ATTACH live views
2019-08-31 02:38:03 +03:00
alesapin
2647d4ca15
Rename immutable to readonly
2019-08-30 23:12:26 +03:00
alesapin
6f30338c08
Fixes
2019-08-30 21:31:35 +03:00
alexey-milovidov
6352c57afb
Merge pull request #6748 from yandex/fix_bad_size_of_marks
...
Fix bad size of marks with skip indices
2019-08-30 20:26:59 +03:00
alesapin
808f4d0b8a
Intermediate refactoring
2019-08-30 19:50:59 +03:00
stavrolia
974789d379
add const
2019-08-30 18:19:05 +03:00
alesapin
d4ea6a5234
Fix comment
2019-08-30 17:30:28 +03:00
alesapin
f6120558df
Fix bad size of marks
2019-08-30 17:29:08 +03:00
alesapin
d7e54d3c14
Merge branch 'master' of github.com:yandex/ClickHouse into ObjatieGroba-feature_multiple_disks
2019-08-30 12:53:24 +03:00
Vitaly Baranov
da8f67123f
Improve error handling in cache dictionaries:
...
allow using expired values while the source of a cache dictionary doesn't respond;
clone the source after an error to reset connections;
don't ask the source for a little time after error;
show the last exception in system.dictionaries for a cache dictionary too.
2019-08-30 12:50:38 +03:00
Alexey Milovidov
0bca68e50b
Style
2019-08-29 21:55:20 +03:00
alesapin
1813b96f82
Finally build, possible trash.
2019-08-29 19:17:47 +03:00
Ivan
5851316742
Don't interrupt copyData() used inside Kafka materialized views ( #6597 )
...
* Print better offsets on commit
* Stop consumption on the read buffer level
* Don't use cancellation in the middle of copyData()
* Add test
* Disable squashing stream for Kafka materialized views
* Commit last read message, since rdkafka auto-modifies offset
2019-08-29 18:36:07 +03:00
alexey-milovidov
c19e5faf4c
Merge pull request #6717 from yandex/fix-data-race-in-storage-merge
...
Fix for data race in StorageMerge
2019-08-29 18:25:48 +03:00
alesapin
dac55278ad
Better comments
2019-08-29 14:15:56 +03:00
alesapin
702b47ae5b
Remove redundant changes
2019-08-29 13:56:43 +03:00
alesapin
0899b3818d
Remove redundant changes
2019-08-29 13:49:26 +03:00
alesapin
67f9753775
Merge branch 'master' into bad_size_of_marks_skip_idx_bug
2019-08-29 11:07:56 +03:00
zhang2014
74c9eea657
fix test failure
2019-08-29 11:34:00 +08:00
zhang2014
3c7405bdb0
move test to integration & refer max_expanded_ast_elements
2019-08-29 11:31:22 +08:00
zhang2014
92740212b5
fix build failure
2019-08-29 11:15:15 +08:00
zhang2014
6c3626b629
truncate should remove mutations
2019-08-29 11:14:40 +08:00
zhang2014
54b65bac50
fix max_ast_elements settings with merge mutation
2019-08-29 11:06:35 +08:00
Alexey Milovidov
d1a980fcdd
Fix for data race in StorageMerge
2019-08-29 01:18:26 +03:00
alesapin
b4d98f6e13
Trying to fix vertical merge
2019-08-28 21:23:20 +03:00
alexey-milovidov
44dd3bd792
Merge pull request #6692 from yandex/remove-queue_max_wait_ms
...
Set default value of "queue_max_wait_ms" to zero, because current value makes no sense
2019-08-28 21:06:09 +03:00
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
Nikita Mikhaylov
bbe20b3f9f
done
2019-08-13 17:31:46 +03:00
alesapin
f988090111
Remove redundant move
2019-08-13 15:10:58 +03:00
alesapin
b00903330f
Remove empty block
2019-08-13 15:03:42 +03:00
alesapin
bf5ec73582
Fix clang build
2019-08-13 14:40:45 +03:00
alesapin
7b1039568c
Revert old changed
2019-08-13 14:24:18 +03:00
alesapin
ad81c743c1
Buildable code
2019-08-13 13:29:31 +03:00
alesapin
428c753ed7
Merge with master
2019-08-13 11:37:47 +03:00
alesapin
8e72d4c2ec
Tryin COW settings
2019-08-13 11:35:49 +03:00
alesapin
98d38e041f
Fix recreation of replicated table with fixed granularity
2019-08-12 16:30:29 +03:00
Nikolai Kochetov
43e5cbe35c
Fix build/
2019-08-12 14:06:28 +03:00
Nikolai Kochetov
18939a5776
Fix build/
2019-08-12 13:59:45 +03:00
Nikolai Kochetov
631bbde420
Merged with master.
2019-08-12 13:19:13 +03:00
Alexey Milovidov
fbaf6b9a4b
Parallel loading of data parts #6074
2019-08-11 23:02:51 +03:00
Alexey Milovidov
0b1a4420cb
More simple
2019-08-11 22:30:39 +03:00
Alexey Milovidov
006a5e51b7
Merge branch 'master' into speed-up-parts-removal
2019-08-11 22:26:24 +03:00
Alexey Milovidov
1cd87078c2
Merge branch 'master' of github.com:yandex/ClickHouse
2019-08-11 22:24:53 +03:00
Alexey Milovidov
2f73b72007
Style
2019-08-11 22:24:42 +03:00
Alexey Milovidov
ed7db76c94
Speed-up parts removal #6372
2019-08-11 22:14:42 +03:00
Gleb Novikov
3b9e1f9bf7
Fixed getIdentifierName call in AlterCommand::parse
2019-08-11 13:39:17 +03:00
Gleb Novikov
381ea6cb6e
Merge branch 'master' into table-constraints
2019-08-11 12:38:34 +03:00
alexey-milovidov
25e97b0b87
Merge pull request #6400 from abyss7/issue-5286
...
Add more virtual columns to Kafka engine
2019-08-11 05:17:27 +03:00
alexey-milovidov
8520288044
Merge pull request #6416 from 4ertus2/some
...
Refactoring: move collectUsedColumns() to SyntaxAnalyzer
2019-08-11 05:16:22 +03:00
Ivan Lezhankin
fd27ac9e9e
Merge remote-tracking branch 'upstream/master' into issue-5286
2019-08-11 00:11:44 +03:00
alexey-milovidov
838c5e535f
Merge pull request #6433 from yandex/prevent-stack-overflow-in-parser
...
Fixed possible stack overflow in parser
2019-08-10 23:58:54 +03:00
Nikita Vasilev
75e381bde4
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-10 23:07:50 +03:00
Alexey Milovidov
afef5c6c70
Added stack protection; added a test
2019-08-10 20:51:47 +03:00
kreuzerkrieg
112fc71276
adding -Wshadow for GCC
2019-08-09 23:58:16 +03:00
Nikolai Kochetov
2ae3db7920
Merged with master.
2019-08-09 18:32:44 +03:00
chertus
e06c994b0e
refactoring: move collectUsedColumns from ExpressionAnalyzer to SyntaxAnalyzer
2019-08-09 17:50:04 +03:00
Nikolai Kochetov
a1023bebff
Fix tests.
2019-08-09 16:37:42 +03:00
alesapin
2803fcc2ba
Make atomic settings
2019-08-09 16:07:19 +03:00
alexey-milovidov
28e87cc430
Merge pull request #6409 from yandex/get-identifier-name-fixed-unpleasant-code
...
Fixed unsafe code around "getIdentifier" function.
2019-08-09 02:31:49 +03:00
Alexey Milovidov
2ba185b4aa
Addition to prev. revision
2019-08-08 23:10:58 +03:00
Alexey Milovidov
a6e4b34ab4
Fixed unpleasant code #6401
2019-08-08 23:02:30 +03:00
Alexander Tokmakov
ae6efb23b4
Merge branch 'master' into alter_table_drop_detached_part
2019-08-08 22:31:31 +03:00
alesapin
a03fcd9f12
Make settings values atomic to avoid race conditions
2019-08-08 22:29:56 +03:00
Alexey Milovidov
e7c7694377
Removed virtual columns from system.columns for backward compatibility
2019-08-08 18:48:32 +03:00
alesapin
e0d18c0fe8
Merge branch 'master' into merge_tree_settings_alter
2019-08-08 18:16:22 +03:00
Ivan Lezhankin
e90bf74ce8
Merge branch 'master' into issue-5286
2019-08-08 12:57:00 +03:00
alexey-milovidov
9c2165b800
Merge pull request #6388 from yandex/transform-query-substring-test
...
Added a test just in case
2019-08-08 03:11:37 +03:00
alexey-milovidov
0d3b383c98
Merge pull request #6384 from CurtizJ/fix-optimize-unused-shards
...
Fix segfault with enabled 'optimize_skip_unused_shards' and missing sharding key.
2019-08-08 03:04:23 +03:00
alexey-milovidov
355b1e5594
Merge pull request #6352 from yandex/no_space_left_on_device_message
...
Print extra info in exception message for "no space left on device"
2019-08-07 22:28:38 +03:00
Alexey Milovidov
688a80dd80
Added a test just in case #6381
2019-08-07 21:52:53 +03:00
Ivan
1bf6e034e8
Fix infinite loop when reading Kafka messages ( #6354 )
...
* Do not pause/resume consumer at all
* Fix kafka tests
* Try to ensure the subscription
* Set timeout for kafka tests and return 'while True'
* Update cluster.py
* When doing a raw select from kafka, ignore client errors.
They may rise due to 'Local: Timed out' while subscribing.
2019-08-07 19:10:14 +03:00
CurtizJ
7e22f78ce4
fix segfault with enabled 'optimize_skip_unused_shards' and missing sharding key
2019-08-07 18:47:25 +03:00
alesapin
7409f1a3de
More comments
2019-08-07 18:33:10 +03:00
alesapin
13e4581317
More general
2019-08-07 18:21:45 +03:00
Alexander Tokmakov
5cf183cbe3
fixes after review
2019-08-07 15:55:27 +03:00
Alexander Tokmakov
aefc664819
refactor throwFromErrno
2019-08-06 21:54:06 +03:00
Nikita Vasilev
90ce4608fb
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-06 21:07:13 +03:00
alesapin
bca40a8608
Better name
2019-08-06 19:34:27 +03:00
alesapin
e62101b8e8
Better comment
2019-08-06 19:29:31 +03:00
Alexander Tokmakov
c3039196da
fixes
2019-08-06 17:51:27 +03:00
Ivan Lezhankin
b55da1888a
Add "_timestamp" virtual column
2019-08-06 17:18:37 +03:00
alesapin
ca29343f54
Uniq settings
2019-08-06 17:09:36 +03:00
Ivan Lezhankin
4bc2b32c3e
Merge branch 'master' into issue-5286
2019-08-06 16:25:51 +03:00
alesapin
303c4e5a58
Make index_granularity_bytes immutable
2019-08-06 16:06:09 +03:00
alesapin
84fd4906ca
Changes for engines
2019-08-06 16:04:29 +03:00
alesapin
52b9658bcf
Merge with master
2019-08-06 15:55:12 +03:00
alesapin
e12cb8da6d
Add some changes
2019-08-06 15:52:08 +03:00
Alexander Tokmakov
c96b10be9f
style fixes
2019-08-06 15:51:10 +03:00
Alexander Tokmakov
75d10f4160
print extra info in exception message
2019-08-05 22:41:20 +03:00
Nikita Vasilev
7b8c0f1750
experiment
2019-08-05 21:06:05 +03:00
Nikolai Kochetov
e361d336bb
Merge pull request #6239 from yandex/processors-and-output-formats
...
Processors and output formats
2019-08-05 19:45:17 +03:00
Alexey Milovidov
95532f2d31
Fixed minor discrepancies
2019-08-05 19:04:47 +03:00
chertus
ef7d19e143
better JOIN exception messages #5565
2019-08-05 17:03:14 +03:00
CurtizJ
cfe32ad89b
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-04 21:43:00 +03:00
Nikita Vasilev
4c53b90e66
fixed MergedColumnOnlyOutputStream
2019-08-04 21:28:46 +03:00
Nikolai Kochetov
b0b7ed791d
Merge branch 'master' into processors-and-output-formats
2019-08-04 19:47:26 +03:00
Nikita Vasilev
4a39538625
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-04 16:58:21 +03:00
alexey-milovidov
261abd6c41
Merge pull request #6319 from nikvas0/nikvas0/fix_set_index
...
Add Comments for set index functions
2019-08-04 16:39:57 +03:00
Nikita Vasilev
5d47a858c5
add comments
2019-08-04 16:03:38 +03:00
Nikolai Kochetov
599f3ddf6e
Merged with master.
2019-08-04 15:35:21 +03:00
alexey-milovidov
291dc0f66e
Merge pull request #6316 from yandex/alias-in-materialized-view-simplification
...
Simplification of #3796
2019-08-04 06:29:02 +03:00
Alexey Milovidov
8b8c59d71b
Simplification of #3796
2019-08-04 03:29:32 +03:00
Alexey Milovidov
a3a15d3a95
Addition to prev. revision
2019-08-04 03:28:12 +03:00
Alexey Milovidov
224bc4df97
Minor modifications + a comment #3796
2019-08-04 03:12:17 +03:00
alexey-milovidov
b045e85469
Merge pull request #3796 from amosbird/hang
...
Fix materialized view with column defaults.
2019-08-04 03:06:40 +03:00
alexey-milovidov
e61f647492
Merge pull request #6282 from nikvas0/nikvas0/fix_set_index
...
fix operators in set index
2019-08-04 02:52:57 +03:00
alexey-milovidov
2b6a28f617
Merge pull request #6279 from yandex/remove-cat-boost-pool
...
Removed table function "catBoostPool" and storage "CatBoostPool"
2019-08-03 04:59:55 +03:00
alexey-milovidov
d3e4249420
Merge branch 'master' into ttldropparts
2019-08-03 02:17:29 +03:00
Alexey Milovidov
21cb7de777
More validation of part_name
2019-08-02 23:21:31 +03:00
alexey-milovidov
f8980e691e
Merge pull request #6274 from CurtizJ/ttl-old-parts
...
TTL improvements.
2019-08-02 22:51:28 +03:00
Nikita Vasilev
bfa9a2c86f
fixed index condition
2019-08-02 22:21:55 +03:00
Alexey Milovidov
a5105f85cf
Removed table function "catBoostPool" and storage "CatBoostPool"
2019-08-02 21:52:43 +03:00
CurtizJ
e06a53a5d9
fix ranges selection at reading in order
2019-08-02 20:34:29 +03:00
Nikolai Kochetov
1f6a16b03a
Remove ValuesRowInputStream.
2019-08-02 20:16:58 +03:00
CurtizJ
a6e85a331a
more optimal ranges selection at reading in order
2019-08-02 19:37:43 +03:00
CurtizJ
5f7ebb18ed
more optimal ranges selection at reading in order
2019-08-02 19:16:18 +03:00
Nikolai Kochetov
dd90932222
Update FormatFactory.
2019-08-02 18:06:31 +03:00
Nikita Vasilev
7aacbbdc5a
fix bug
2019-08-01 22:18:36 +03:00
CurtizJ
d169f42b36
fix build
2019-08-01 22:07:31 +03:00
CurtizJ
b8dff6ebb1
more optimal ranges selection at reading in order
2019-08-01 22:03:39 +03:00
CurtizJ
82f304f81e
add query 'SYSTEM STOP TTL MERGES'
2019-08-01 18:36:12 +03:00
CurtizJ
c30bdecf6d
add missing comments
2019-08-01 15:00:35 +03:00
alexey-milovidov
e034dab1be
Merge pull request #6255 from yandex/storage-values-simplification
...
Simplified code with parsing table declaration for table functions.
2019-08-01 14:58:28 +03:00
CurtizJ
f224269d41
filter by ttl parts created before 'alter ... modify ttl' query with 'optimize ... final' query
2019-08-01 14:10:42 +03:00
Igr Mineev
0f1e8404dc
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-08-01 13:42:59 +03:00
Igr Mineev
fc79ed86ef
Ready for review
2019-08-01 13:29:14 +03:00
Alexey Milovidov
12f6b75284
Fixed error
2019-08-01 05:34:58 +03:00
Alexey Milovidov
49b6749280
Merge branch 'master' into fix-malicious-replica
2019-08-01 05:11:45 +03:00
Alexey Milovidov
26bb14da4e
Simplified table function "values"
2019-08-01 05:03:15 +03:00
alexey-milovidov
a8793fbef3
Merge pull request #6209 from dimarub2000/values_list
...
VALUES list
2019-08-01 04:36:04 +03:00
Alexey Milovidov
f3921ce3e0
Changed boost::filesystem to std::filesystem
2019-08-01 01:37:41 +03:00
Alexey Milovidov
bc9d620155
Fixed the case when malicious ClickHouse replica can force clickhouse-server to write to arbitrary path
2019-07-31 22:31:04 +03:00
Alexander Tokmakov
f0836553d4
drop detached partition
2019-07-31 18:27:21 +03:00
alexey-milovidov
ac5d2a225d
Merge pull request #6226 from yandex/aku/lock-tinylog
...
Lock the TinyLog storage when reading.
2019-07-31 17:40:55 +03:00
Dmitry Rubashkin
a449a00e58
Comments are now in right places
2019-07-31 17:12:05 +03:00
Dmitry Rubashkin
f91c64bd28
parser changed, test modified, comments added
2019-07-31 17:06:22 +03:00
Alexander Kuzmenkov
3ff143c60f
Lock the TinyLog storage when reading.
...
Unlike StripeLog, we only have one set of files per column, so we can't
read concurrently with writing. We didn't use any locking before, and
that lead to user-visible error messages and tsan failures.
2019-07-31 13:59:12 +03:00
alexey-milovidov
30c35b1cbf
Update StorageValues.cpp
2019-07-31 01:06:48 +03:00
Alexander Tokmakov
c6717e0d3f
refactor attachPartition
2019-07-30 22:11:15 +03:00
Alexander Tokmakov
2f33df1b2e
rename all parts before attaching
2019-07-30 20:24:40 +03:00
Igr Mineev
7f7b47fc0a
Add check of RW access to paths on start. Add multiple disks tests.
2019-07-30 19:15:57 +03:00
Igr Mineev
31c36efa25
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-07-30 19:13:58 +03:00
Dmitry Rubashkin
7945d05565
Minor style fixes
2019-07-30 15:15:02 +03:00
Amos Bird
6db1c02bfd
Fix materialized view with column defaults.
...
https://github.com/yandex/ClickHouse/issues/448
https://github.com/yandex/ClickHouse/issues/3484
https://github.com/yandex/ClickHouse/issues/3450
https://github.com/yandex/ClickHouse/issues/2878
https://github.com/yandex/ClickHouse/issues/2285
2019-07-30 10:49:54 +08:00
Alexey Milovidov
b5b80fb342
Merge branch 'master' into thread_local_rng
2019-07-30 03:19:48 +03:00
Dmitry Rubashkin
45aebda677
Fixes and test
2019-07-29 19:20:17 +03:00
Dmitry Rubashkin
e9784573ea
Values list implementation
2019-07-29 17:02:34 +03:00
Alexander Tokmakov
3c15b87003
Merge branch 'master' into alter_table_drop_detached_part
2019-07-29 14:29:23 +03:00
alesapin
86831fe500
Add ability to create immutable settings
2019-07-29 14:03:50 +03:00
Alexander Tokmakov
0fc47fbbe4
fixes
2019-07-29 13:27:37 +03:00
alesapin
d9a2ac123a
Fix small typo and merge
2019-07-29 12:17:37 +03:00
alexey-milovidov
129e88ee26
Merge pull request #6189 from CurtizJ/order-by-efficient
...
Fix reading in order of sorting key and refactoring.
2019-07-28 19:43:49 +03:00
Alexey Milovidov
856cc1b9c5
Added thread_local_rng
2019-07-28 18:30:38 +03:00
Alexey Milovidov
c0e0166991
Updated contributors
2019-07-28 18:11:47 +03:00
Nikita Vasilev
39b40f8e42
fix replicated indices mutations
2019-07-28 17:55:51 +03:00
Nikita Vasilev
4c5003b3b9
const &
2019-07-28 14:45:50 +03:00
Nikita Vasilev
908623c029
style
2019-07-28 14:32:03 +03:00
Nikita Vasilev
63fe714420
fix
2019-07-28 14:10:35 +03:00
Sergi Vladykin
c5a42a6948
TTL: Only drop altogether the expired parts and not partially prune them.
...
Though in regular merges eviction of expired values still must happen.
2019-07-28 13:30:46 +03:00
CurtizJ
b4991b38bf
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-28 04:26:43 +03:00
CurtizJ
d69d68f065
rename setting 'optimize_pk_order' and some functions
2019-07-28 04:16:56 +03:00
CurtizJ
95a6b85267
fix reading in order of sorting_key
2019-07-28 03:41:26 +03:00
alexey-milovidov
12a15316fd
Merge pull request #6181 from 4ertus2/joins
...
Fix crop column names in GLOBAL JOIN ON
2019-07-28 00:31:29 +03:00
Nikita Vasilev
1118ce04b9
fixed
2019-07-27 18:36:40 +03:00
CurtizJ
08d5ebb54d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-27 10:38:10 +03:00
Nikita Vasilev
7efb1bcb12
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-07-27 10:30:43 +03:00
CurtizJ
12dcfe1f25
reduce number of read rows while reading in reverse order
2019-07-27 03:33:47 +03:00
CurtizJ
b1d981ec3a
better pipeline while reading in pk_order
2019-07-27 01:18:27 +03:00
chertus
9f9ba3a06f
restore cropped names in JOIN ON section for distributed queries
2019-07-26 20:43:42 +03:00
alexey-milovidov
71cef7beac
Merge pull request #6156 from dimarub2000/master
...
ISSUE-6136: Fix DB::Exception throwed by bitmapContains
2019-07-25 23:00:42 +03:00
Igr Mineev
7a31feeec0
Add tests for multiple disks. Fix Alter query.
2019-07-25 21:21:01 +03:00
Alexander Tokmakov
3ba26aba43
tests
2019-07-25 19:28:08 +03:00
Alexander Tokmakov
e4212bfe59
add full part name to detached_parts
2019-07-25 19:26:36 +03:00
dimarub2000
f53f22fd17
ISSUE-6136: Fix DB::Exception throwed by bitmapContains
2019-07-25 18:56:20 +03:00
Igr Mineev
e7e2627201
Checking unique names for volumes.
2019-07-25 14:42:48 +03:00
Alexander Tokmakov
1805ab5736
attach
2019-07-25 13:46:07 +03:00
CurtizJ
f5b93eb991
fix order by optimization
2019-07-25 13:45:01 +03:00
Igr Mineev
549c62a18a
Fix build
2019-07-25 12:40:20 +03:00
alexey-milovidov
7219e167d2
Merge pull request #6026 from bopohaa/fix-kafka-unclean-stream
...
Clear Kafka's buffer if an invalid message is found.
2019-07-25 04:30:37 +03:00
alexey-milovidov
56131a7fe7
Merge pull request #6080 from abyss7/issue-6071
...
Check background_task_handle before use
2019-07-25 04:16:47 +03:00
Alexey Milovidov
e52653aa06
Miscellaneous
2019-07-25 04:08:33 +03:00
alesapin
f7e0d17490
Fix some bugs
2019-07-24 18:22:16 +03:00
CurtizJ
3d706ec20e
support 'order by' optimiation with simple monotonic functions
2019-07-24 17:23:57 +03:00
alesapin
8a00ce5ff1
Intermediate step
2019-07-24 15:56:39 +03:00
Alexander Tokmakov
6e4aabbb1a
draft for StorageMergeTree
2019-07-23 23:18:18 +03:00
Alexander Tokmakov
ad787938f5
better detached part name parsing
2019-07-23 22:43:33 +03:00
Alexander Tokmakov
3c2172b750
parse and interpret query
2019-07-23 22:25:10 +03:00
Ivan Lezhankin
e8ef13edfa
Check background_task_handle
2019-07-23 20:34:57 +03:00
alesapin
6e458a6a68
Fix secondary indices write with adaptive granularity
2019-07-23 18:27:36 +03:00
Igr
3e017ec69c
Merge branch 'master' into feature_multiple_disks
2019-07-23 16:38:20 +03:00
Igr Mineev
e967c23adb
Add Space interface for reservation. Add move to volume command
2019-07-23 16:34:17 +03:00
Igr Mineev
2925657f5e
Remove non-alter move command.
2019-07-23 12:38:26 +03:00
alexey-milovidov
cd6c15b79f
Merge pull request #6057 from dimarub2000/master
...
CREATE TABLE AS table_function()
2019-07-23 02:50:08 +03:00
Ivan Lezhankin
969cb2f826
Append _partition virtual column
2019-07-22 14:32:11 +03:00
Ivan Lezhankin
762f1d3a85
Merge remote-tracking branch 'upstream/master' into issue-5846
2019-07-22 13:19:37 +03:00
alexey-milovidov
3da461fea5
Merge pull request #6038 from yandex/Immowelt-ThreeDots
...
Merging COLUMNS matcher
2019-07-22 01:27:38 +03:00
CurtizJ
e559c8f949
fix build
2019-07-21 21:17:28 +03:00
alexey-milovidov
9f9dd040dd
Update StorageMergeTree.cpp
2019-07-21 17:14:55 +03:00
Alexey Milovidov
47058e8e11
Fixed error
2019-07-21 05:13:42 +03:00
Mikhail f. Shiryaev
15fd980d0b
Add description "unable to select parts" and logging
2019-07-21 00:39:40 +02:00
alexey-milovidov
8008ce6e9e
Update StorageReplicatedMergeTree.cpp
2019-07-20 10:44:05 +02:00
Mikhail f. Shiryaev
da50663e2c
Pass a proper message to exception
2019-07-20 10:44:05 +02:00
Ivan Lezhankin
f9945494d9
Always resume consumer before subscription.
...
Also add more logs to see the difference between rd_kafka_assignment() vs rd_kafka_subscription()
2019-07-19 18:01:34 +03:00
CurtizJ
1bec5a8241
refactor MergeTree select streams
2019-07-19 17:56:00 +03:00
CurtizJ
2797c16930
fix prewhere at fetching columns
2019-07-19 13:14:27 +03:00
CurtizJ
b9dc472071
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-19 01:09:59 +03:00
dimarub2000
20a846d753
Merge branch 'master' of github.com:yandex/ClickHouse
2019-07-18 21:52:18 +03:00
CurtizJ
12b3560def
build fixes
2019-07-18 21:34:15 +03:00
Dmitry Rubashkin
7382cb41fa
CREATE TABLE AS table_function()
2019-07-18 21:29:49 +03:00
Igr Mineev
52bca488dc
Add alter move part command
2019-07-18 18:19:03 +03:00
CurtizJ
a3d25790bd
basic implementation of reading in pk order and 'order by' optimization
2019-07-18 17:41:11 +03:00
Amos Bird
71233e11a9
minor updates.
2019-07-17 14:17:34 +08:00
Nik
4a30eba32f
Fix style check
2019-07-16 22:34:47 +04:00
Amos Bird
9fa955403b
Optimize count()
...
Choose the smallest column to count if possible.
2019-07-17 02:29:17 +08:00
Igr Mineev
770b74ac17
Add names for volumes
2019-07-16 21:20:47 +03:00
alexey-milovidov
45b7588ab1
Merge pull request #6025 from dimarub2000/master
...
Minor fixes for FullTextIndex string functions
2019-07-16 19:30:32 +03:00
Nik
922c3eb22e
Clear Kafka's buffer if an invalid message is found.
2019-07-16 19:27:42 +04:00
Igr Mineev
ad497fbaa1
Fix bug with duplication of parts on restart
2019-07-16 16:06:23 +03:00
Dmitry Rubashkin
dcd8696466
Minor fixes
2019-07-16 14:40:11 +03:00
Igr Mineev
90fab48cd7
Stylefixes
2019-07-16 14:07:04 +03:00
Igr Mineev
21e0bec3d0
Merge remote-tracking branch 'upstream/master' into feature_multiple_disks
2019-07-16 13:45:07 +03:00
alexey-milovidov
ceffbf39d6
Merge pull request #5965 from dimarub2000/master
...
Primary key, MergeTreeIndexFullText and MergeTreeIndexSet support for string functions
2019-07-16 03:36:42 +03:00
Alexey Milovidov
27b9f79cba
Fixed error after refactoring
2019-07-15 23:26:55 +03:00
Gleb Novikov
c1d91222d5
Ranamed setPrimaryKeyIndicesAndColumns to setProperties
2019-07-13 13:42:52 +03:00
alexey-milovidov
a93c76837e
Merge pull request #5953 from abyss7/fix-filter-table
...
Implement getDatabaseName() and rename() for all storages
2019-07-13 00:51:39 +03:00
dimarub2000
4005987fc4
multiSearchAny fixed, tests added, minor syle changes
2019-07-12 14:35:17 +03:00
dimarub2000
e5d4f11c73
Deleted some extra implementations, fixed style. multiSearchAny still not working.
2019-07-11 16:44:44 +03:00
dimarub2000
1480b8e62c
Actually set index already woks for everything. Here are some tests.
2019-07-11 15:31:24 +03:00
dimarub2000
88778b0f5b
minor style changes
2019-07-10 18:12:02 +03:00
dimarub2000
f5ba5e3ca9
Merge branch 'master' of github.com:dimarub2000/ClickHouse
2019-07-10 18:08:10 +03:00
dimarub2000
c9a5b3c9ab
primary key and MergeTreeIndexFullText support for string functions
2019-07-10 17:53:57 +03:00
Vitaly Baranov
3a74f326a8
Fix unused variable in checkDataPart.cpp
2019-07-10 15:13:10 +03:00
Ivan Lezhankin
befb3ce15b
Merge branch 'master' into fix-filter-table
2019-07-10 13:27:26 +03:00
Ivan Lezhankin
8a600c39af
Fix build for gtests
2019-07-09 21:53:16 +03:00
Ivan Lezhankin
9f01fa7aaa
Implement getDatabaseName() and rename() for all storages
2019-07-09 18:40:21 +03:00
Vitaliy Zakaznikov
a80af666ad
* Updates that incorporate comments from the review
2019-07-09 08:41:55 -04:00
alesapin
d4c44320ea
Merge branch 'fix_fetch_of_existing_part' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-09 12:04:00 +03:00
alesapin
9a17a461ea
Review fixes and better tests
2019-07-09 12:02:52 +03:00
alesapin
6a3b543e10
Merge branch 'master' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-09 11:21:44 +03:00
alexey-milovidov
a8d8eb6b28
Merge pull request #5921 from yandex/pvs-studio-fixes-4
...
A few fixes for PVS-Studio
2019-07-09 01:10:05 +03:00
alexey-milovidov
c491cddb78
Update CheckResults.h
2019-07-08 22:56:48 +03:00
Alexey Milovidov
886e8ea0d4
Merge branch 'master' into pvs-studio-fixes-4
2019-07-08 19:58:42 +03:00
Alexey Milovidov
3f92ecf334
Merge branch 'master' into add-noreturn
2019-07-08 16:13:56 +03:00
Alexey Milovidov
f40b70884f
Two more fixes for PVS-Studio
2019-07-08 05:14:32 +03:00
Alexey Milovidov
ac20c515ab
Better code in unit tests
2019-07-08 04:58:31 +03:00
Alexey Milovidov
4752dae9bb
Allowed unresolvable addresses in cluster configuration #5714
2019-07-08 04:43:41 +03:00
Vitaliy Zakaznikov
24a3726235
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-07-07 20:03:14 -04:00
Vitaliy Zakaznikov
259a95a3da
* Updates to fix issues after the merge
2019-07-07 19:57:58 -04:00
Alexey Milovidov
19059ef650
One more fix for PVS-Studio
2019-07-08 02:29:54 +03:00
alexey-milovidov
8d4358f19c
Merge pull request #5919 from dimarub2000/master
...
startsWith now uses PK index
2019-07-08 02:06:05 +03:00
alexey-milovidov
0480706ff4
Update KeyCondition.cpp
2019-07-08 00:28:03 +03:00
dimarub2000
0b756c48a8
also style changes
2019-07-07 18:56:15 +03:00
dimarub2000
95118a5fa3
also style changes
2019-07-07 18:54:13 +03:00
dimarub2000
94523c00cd
minor style changes
2019-07-07 18:52:20 +03:00
dimarub2000
2693ce27ff
startsWith now uses PK index
2019-07-07 18:48:34 +03:00
Alexey Milovidov
2e6280de07
Fixed #5797
2019-07-07 03:20:38 +03:00
alexey-milovidov
a1cfdf2a60
Merge pull request #5855 from abyss7/no-undefined
...
Use --no-undefined linker option for split build
2019-07-07 01:47:11 +03:00
Gleb Novikov
3757aa9d02
More style fix
2019-07-06 23:30:48 +03:00
alexey-milovidov
eb2ffccaf3
Merge pull request #5874 from nikitamikhaylov/master
...
Add data checksums to system.parts_columns table. #5151
2019-07-05 23:58:58 +03:00
Nikita Mikhaylov
afdd45fd85
checksum added to system_parts
2019-07-05 18:32:55 +03:00
CurtizJ
a49112a14e
Merge branch 'master' of https://github.com/yandex/ClickHouse into order-by-efficient
2019-07-05 16:41:48 +03:00
alexey-milovidov
2469ec1af3
Merge pull request #5857 from CurtizJ/dns-cache
...
Implement dns cache with asynchronous update.
2019-07-05 15:56:26 +03:00
Nikita Mikhaylov
1ffa488be4
lowercase added~
2019-07-05 14:45:47 +03:00
CurtizJ
410b62f7fa
Merge branch 'clickhouse-4013' of https://github.com/anrodigina/ClickHouse into order-by-efficient
2019-07-05 13:48:04 +03:00
Nikita Mikhaylov
f8dde20dcb
easier code
2019-07-05 13:13:44 +03:00
Nikita Mikhaylov
0e25190433
checksums now output in the same way + tests are better
2019-07-05 12:00:19 +03:00
Gleb Novikov
430400c3c5
Style fix
2019-07-05 10:16:34 +03:00
Alexey Milovidov
2c6dd99644
Updated contributors
2019-07-05 04:13:03 +03:00
Gleb Novikov
71c2ca0fe9
Merge branch 'master' into table-constraints
2019-07-04 22:40:00 +03:00
Nikita Mikhaylov
fc75c8f62e
done
2019-07-04 21:27:14 +03:00
Ivan Lezhankin
3b995bdb02
Add missing dependecies on sight to enable --no-undefined option
2019-07-04 17:05:55 +03:00
alesapin
65437d2289
Fix final mark and tests
2019-07-04 13:21:14 +03:00
alesapin
a0496da05f
Merge branch 'master' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-04 12:46:54 +03:00
alesapin
18544e8f64
Missed file and style fix
2019-07-04 09:04:31 +03:00
alesapin
477a7450fb
Add test for data corruption
2019-07-03 23:51:13 +03:00
CurtizJ
187812a00e
cleanup
2019-07-03 21:34:37 +03:00
CurtizJ
80e96995ae
Merge branch 'master' of https://github.com/yandex/ClickHouse into dns-cache
2019-07-03 21:27:43 +03:00
Ivan
fdae12a51c
Keep on reading of new Kafka messages after stalling ( #5852 )
2019-07-03 19:51:11 +03:00
CurtizJ
35ad1a3b6b
implement dns cache with asynchronous update
2019-07-03 19:26:22 +03:00
alesapin
3925a3bd13
Generalize check query
2019-07-03 16:17:19 +03:00
alesapin
6b0498cd93
First version of check cmd
2019-07-03 11:49:52 +03:00
alexey-milovidov
50c22ef71a
Merge pull request #5628 from yandex/index_granularity_by_default
...
Enable adaptive index granularity by default
2019-07-03 02:15:33 +03:00
alexey-milovidov
d81ae49f2c
Merge pull request #5755 from 4ertus2/bugs
...
Fix wrong ColumnConst.isColumnNullable()
2019-07-03 02:06:07 +03:00
alexey-milovidov
de92b9854e
Merge pull request #5838 from 4ertus2/joins
...
Joins refactoring: extract joinDispatch into own file
2019-07-03 01:55:45 +03:00
chertus
207145025c
Join.h refactoring: extract joinDispatch into own file
2019-07-02 17:38:31 +03:00
alexey-milovidov
1bda6994ad
Merge pull request #5832 from yandex/fix_low_cardinality_check
...
Fix low cardinality check
2019-07-02 17:06:06 +03:00
alesapin
cbb0d640f4
Add comments
2019-07-02 14:34:16 +03:00
alesapin
f68b5216a8
Fix prefix reading and skip check for low cardinality dictionary
2019-07-02 13:55:47 +03:00
Vitaliy Zakaznikov
b5120931d5
Merge branch 'master' of https://github.com/yandex/ClickHouse into liveview
2019-07-01 18:12:31 -04:00
Vitaliy Zakaznikov
a363189dfc
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-07-01 18:05:14 -04:00
Nikita Lapkov
9641d058d0
Merge remote-tracking branch 'upstream/master' into update_libunwind
2019-07-01 21:11:26 +00:00
alexey-milovidov
c43dfce041
Merge pull request #5382 from abyss7/issue-5286
...
Add virtual columns to Kafka Engine tables
2019-07-01 21:30:09 +03:00
chertus
5df4ad0f28
Merge branch 'master' into bugs
2019-07-01 14:49:01 +03:00
Alexey Milovidov
b86aca37ea
Merge branch 'h3-integration' of https://github.com/BHYCHIK/ClickHouse into BHYCHIK-h3-integration
2019-06-30 19:15:33 +03:00
alexey-milovidov
feafcb21bd
Merge branch 'master' into h3-integration
2019-06-30 16:19:11 +03:00
Gleb Novikov
ea4d42c3ac
Merged DROP_(COLUMN|INDEX|CONSTRAINT) AST parsing into one block
2019-06-30 12:09:58 +02:00
Gleb Novikov
a146b7383e
Merge branch 'master' into table-constraints
2019-06-30 11:32:02 +02:00
Alexey Milovidov
725bcd9d02
Merge branch 'master' into sanych73-prepared_statements
2019-06-30 02:59:37 +03:00
Alexey Milovidov
88fc72f0b9
Merge branch 'feature/bloom_filter' of https://github.com/zhang2014/ClickHouse into zhang2014-feature/bloom_filter
2019-06-29 20:44:11 +03:00
Alexey Milovidov
6566bb7088
Updated tests
2019-06-29 19:18:59 +03:00
Nikita Lapkov
2a131185b0
Merge remote-tracking branch 'upstream/master' into update_libunwind
2019-06-28 18:20:23 +00:00
Nikita Lapkov
f8d2b5effd
introduce Backtrace class
2019-06-28 18:06:38 +00:00
alexey-milovidov
18659e367e
Merge pull request #5758 from zlobober/bool_masks
...
Extend KeyCondition interface so that it returns BoolMask.
2019-06-28 14:51:52 +03:00
alexey-milovidov
6e77fc4abe
Merge pull request #5775 from yandex/lfalloc2mimalloc
...
Use mimalloc instead of lfallocator
2019-06-28 14:48:18 +03:00
chertus
f19dee706a
move IColumn.isColumnConst() outside of interface
2019-06-27 22:28:52 +03:00
chertus
db7c8748e9
remove IColumn.isColumnNullable()
2019-06-27 21:50:20 +03:00
alexey-milovidov
246f34d8f6
Merge pull request #5768 from abyss7/better-log
...
Print table name in message about missing column
2019-06-27 18:49:40 +03:00
Danila Kutenin
e67431e455
Use mimalloc instead of lfallocator
2019-06-27 18:13:19 +03:00
Maxim Akhmedov
2cacc3cfd2
CHYT-142: extend KeyCondition interface so that it returns BoolMask.
2019-06-27 16:31:33 +03:00
Alexey Milovidov
8f3ff6c77a
Removed inconsistent whitespaces
2019-06-27 16:20:33 +03:00