chertus
77ab1dbccb
move one more function
2019-12-12 19:54:04 +03:00
chertus
68a33863ab
extract getTableExpressions variants into own file
2019-12-12 19:06:18 +03:00
Nikolai Kochetov
7ad2a6dd0b
Merge pull request #7170 from Enmk/DateTime64
...
DateTime64 data type
2019-12-12 12:20:22 +03:00
Nikolai Kochetov
1d90c4c555
Fix build.
2019-12-11 20:09:42 +03:00
Nikolai Kochetov
ea05ab293d
Fix PVS check.
2019-12-11 19:09:43 +03:00
Vasily Nemkov
f8fec0402b
Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64
2019-12-11 17:38:32 +03:00
Vasily Nemkov
514847609d
PR fixes:
...
* Fixed precision calculation in DataTypeDecimalBase c-tor
* Fixed max precision calculation in getLeastSupertype
* Fixed reading past end of vector in FunctionsConversion with extractToDecimalScale
* More verbose comments on FunctionArgumentTypeValidator and validateFunctionArgumentTypes
* style and other minor fixes.
2019-12-11 17:24:59 +03:00
alesapin
2940aeff23
Fix style
2019-12-11 13:24:20 +03:00
alesapin
fd9483efbe
Just trigger CI
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
0ff0a52249
Missed review fixes.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f2aee64072
Minor style fix.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e41deb5848
Added comment to MergeTreePartsMover::selectPartsForMove()
.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7fd1668fde
Review fixes.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e3ed311273
Fixed Clang build.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
67aa268bbb
Finally fixed tests and logic for extended TTL syntax.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f83b28a1c1
Fixed a typo in MergeTreeData::selectMoveDestination()
.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
618a39cc8c
Don't move anything if part already belongs their destination.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
f72da4ab0c
Removing expired rows shall not be triggered on move TTL expiration.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
8ed37801ca
Finally fixed selection of destination of move TTL.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
15fb64f54b
Fixed move TTL expiration logic.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
df002f20b1
Fixed move TTL metadata.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
14cf530542
Added move TTL rules to metadata of ReplicatedMergeTree
.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7407f7c39d
Placed move TTL rules to a vector.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
108e2b33eb
Fixed a bug with erasing columns with same name.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
0da7234d99
Added few FIXMEs to not forget.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
ce851fc782
Fixed MergeTreeData::hasTableTTL()
method according to extended TTLs.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
cb777f6c50
Removed redundant template from updateTTL()
method.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
62016feab0
Renamed TTLDestinationType to PartDestinationType.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
cc0c21604f
Fixed Clang build one more time.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
ce066d3bb0
Style fixes.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
88c7220256
Fixed Clang build.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
07c4fa3cc0
Correct merge of background move pool.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
3e3e9ac56f
Moved settings for BackgroundProcessingPool
to configuration.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
e519c04bbe
Minor fix of JSON handling in MergeTreeDataPartTTLInfo
.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
342ea5c30a
Removed TODO comments.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
773bf7b35c
Removed 'DELETE' keyword from default TTL syntax description.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
58e824b6a1
Refactored, added move enforcement on merges, fixed a bug with wrong disk selection in ReplicatedMergeTree
.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
dfe0edc03f
Style fix.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
76c4ac9f60
Fixed ttl move logic in background move task and added ttl enforcement on inserts.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
575de5ada6
Attempt to add background moves by TTL expressions.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
893e0de37a
Minor fix.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
33ded274a3
First attempt to store min/max for move ttl expressions.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
3e984609fb
Fixed ClickHouse after changing syntax.
2019-12-11 13:24:20 +03:00
Vladimir Chebotarev
7a37c4f6a9
Parser for extended TTL expressions.
2019-12-11 13:24:20 +03:00
Vasily Nemkov
c781908e6d
Post-PR fixes
...
* More precise overflow check in readIntTextImpl
* writeDateTimeText now always writes sub-second part for DateTime64
* comment for validateFunctionArgumentTypes
* DateTime64-related fixes for FunctionConvertFromString
* other minoe fixes: comments, removed commented out code, variable
renamings, etc.
2019-12-11 12:20:05 +03:00
Vasily Nemkov
f56b2b64f2
Post-review refactoring and tests for DateTime64 and Decimal.
...
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
(if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
Alexey Milovidov
4f9cd8a3c8
Update contributors
2019-12-11 06:13:33 +03:00
alexey-milovidov
aecd5a5493
Merge pull request #8123 from ClickHouse/aku/field-prepare
...
Prepare for stricter type checking in Field.
2019-12-11 02:21:34 +03:00
alexey-milovidov
309653f60d
Merge pull request #7182 from ClickHouse/aku/zlib-msan
...
Update zlib-ng to fix MemorySanitizer problems.
2019-12-11 02:15:16 +03:00
alesapin
67f1ff1c8b
Merge pull request #8104 from excitoon-favorites/test_move_after_merge
...
FIxed behavior with ALTER MOVE ran immediately after merge finish moves superpart of specified
2019-12-10 17:15:08 +03:00