Commit Graph

8464 Commits

Author SHA1 Message Date
Vitaliy Lyudvichenko
7615f5a09a More detail dignostic when parse JSONEachRow. [#CLICKHOUSE-2] 2018-05-28 14:40:07 +03:00
alexey-milovidov
dcebf08620
Merge pull request #2400 from bocharov/master
Fix DateTime vs DateTime('UTC') inconsistency on data read.
2018-05-25 21:44:11 +03:00
Amos Bird
9eec14e9be Let's make it fancier (function try catch block). 2018-05-25 23:38:57 +08:00
Alexey Milovidov
13762471da Changed DayNum_t to DayNum as Amos Bird suggested [#CLICKHOUSE-3] 2018-05-25 16:29:15 +03:00
proller
87e8d8be5a
Fix internal compiler includes with new clang (#2406) 2018-05-24 15:40:02 +03:00
Vitaliy Lyudvichenko
87ad1df259 More atomic insert to MATERIALIZED VIEW. [#CLICKHOUSE-3743] 2018-05-23 19:18:04 +03:00
Vitaliy Lyudvichenko
6cc7068c6b Supress dummy program_options assertions in Debug. [#CLICKHOUSE-2] 2018-05-23 19:14:00 +03:00
Alex Bocharov
3618842579 Fix DateTime vs DateTime('UTC') inconsistency on data read.
Original problem was described in PR #1650 and partially fixed by
b5af4c95, however one place was forgotten and it was causing query
exceptions when trying to read DateTime column across parts with
different DateTime and DateTime('UTC') data type.
2018-05-22 12:23:07 +01:00
alexey-milovidov
2b581ed2c3
Merge pull request #2293 from proller/fix19
`clickhouse-client`: option --ask-password for interactively ask for credentials #1044
2018-05-21 22:54:32 +03:00
alexey-milovidov
55cfebc36b
Merge pull request #2395 from yandex/string_range-pointers-comparsion
Renamed StringRangeHash to StringRangePointersHash and added StringRa…
2018-05-21 22:42:42 +03:00
proller
051395a761 clickhouse-client: option --ask-password for interactively ask for credentials #1044 2018-05-21 20:27:18 +03:00
Vitaliy Lyudvichenko
8349d2b9a0 Fixed gcc7 compilation. [#CLICKHOUSE-2] 2018-05-21 18:10:50 +03:00
Vitaliy Lyudvichenko
c888903488
Add query ALTER TABLE t1 [REPLACE|ATTACH] PARTITION FROM t2
* Add ATTACH PARTITION FROM table for MergeTree. [#CLICKHOUSE-3546]

* Implemented replicated case on non-leader replica. [#CLICKHOUSE-3546]

* Disable merges in the dropping range. [#CLICKHOUSE-3546]

* DROP PARTITION is atomic and simpler now. [#CLICKHOUSE-3546]

* Implemented more SYSTEM queries. [#CLICKHOUSE-2931] [#CLICKHOUSE-3546]

SYSTEM queries:
RESTART REPLICAS
SYNC REPLICA db.name
STOP MERGES [db.name]
START MERGES [db.name]
STOP FETCHES [db.name]
START FETCHES [db.name]
STOP REPLICATED SENDS [db.name]
START REPLICATED SENDS [db.name]
STOP REPLICATION QUEUES [db.name]
START REPLICATION QUEUES [db.name]

* Fixed a bunch of bugs in REPLACE PARTITION. [#CLICKHOUSE-3546]

* Add tests for REPLACE PARTITION and SYSTEM. [#CLICKHOUSE-3546]

* Add system.part_log logging. [#CLICKHOUSE-3546]

* Fixed long wait in SYNC REPLICA. [#CLICKHOUSE-3546]

* Add requested changes. [#CLICKHOUSE-3546]

Fixed clickhouse-client bad return code.

* Add requested chenges. [#CLICKHOUSE-3546]

* Add requested chenges. [#CLICKHOUSE-3546]
2018-05-21 16:49:54 +03:00
Nikolai Kochetov
aeaec2e6d7 Renamed StringRangeHash to StringRangePointersHash and added StringRangePointersEqualTo. 2018-05-21 14:18:11 +03:00
alexey-milovidov
0fe2984d00
Merge pull request #2388 from yandex/fix-prepared-sets-creation
Fix prepared sets creation
2018-05-19 19:03:04 +03:00
alexey-milovidov
517318334a
Merge pull request #1722 from silviucpp/background-schedule-pool-fix
Background schedule pool fixed
2018-05-19 19:00:43 +03:00
Alexey Milovidov
577268d8f5 Style #2387 2018-05-18 21:31:18 +03:00
Alexey Milovidov
74a6b0010f utils/check-style/fix-style #2387 2018-05-18 21:30:02 +03:00
Nikolai Kochetov
a4b04739c8 Renamed need_parents back to need_parens. [#CLICKHOUSE-3735] 2018-05-18 21:28:11 +03:00
Nikolai Kochetov
f739078ea5 Fixed IAST::clone() implementations which were without children deep copy. [#CLICKHOUSE-3735] 2018-05-18 21:28:11 +03:00
Nikolai Kochetov
5e22f19258 Added fake range for ASTIdentifier in order to fix multiple global in. [#CLICKHOUSE-3734] 2018-05-18 20:27:58 +03:00
Arsen Hakobyan
dfe65ba842 Now uses Poco::URI::addQueryParameter for "update_field" parameter 2018-05-18 19:22:28 +03:00
Arsen Hakobyan
ad9659574f Adds percent encoding for "update_field" parameter
Handles cases when url has fragment
2018-05-18 19:22:28 +03:00
Vitaliy Lyudvichenko
4b093e3e0a Don't make extra checksums checks when commit a part. [#CLICKHOUSE-2]
This patch is very crucial in case of many replicas.
2018-05-18 02:01:36 +03:00
Nikolai Kochetov
d7ead51796 Added invalid FixedString size to the list of parse errors. 2018-05-17 18:29:59 +03:00
Nikolai Kochetov
9a1c286ade Changed prepared set indexation from AST* to StringRange. [#CLICKHOUSE-3734] 2018-05-17 17:54:43 +03:00
Alexey Zatelepin
d31b897ba7 validate mutation commands [#CLICKHOUSE-3688] 2018-05-16 05:46:15 +03:00
Alexey Zatelepin
3b97d3938f alter delete skeleton [#CLICKHOUSE-3688] 2018-05-16 05:46:15 +03:00
Alexey Milovidov
195f91f191 Merge branch 'master' of github.com:yandex/ClickHouse 2018-05-16 03:35:07 +03:00
Alexey Milovidov
fb91bba279 Miscellaneous [#CLICKHOUSE-2] 2018-05-16 03:34:56 +03:00
Vitaliy Lyudvichenko
412c154045 Better configs for an integration test. [#CLICKHOUSE-2] 2018-05-15 21:25:54 +03:00
Nikolai Kochetov
6715b945d9 Allow using of function which returs tuple for IN. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
aaad77a602 Fixed unnecessary creation of prepared set for function arguments other than second for in or global in. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
e6adcfaad5 Fixed element types for explicit set in IN function. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
651bac519c Fixed element types for explicit set in IN function.
Fixed element types for explicit set in IN function. [#CLICKHOUSE-3730]
2018-05-15 18:38:04 +03:00
alexey-milovidov
9ef0a771e3 Update TableFunctionMySQL.cpp 2018-05-15 03:02:59 +03:00
sundy-li
8a5990fc74 add integration test_storage_mysql 2018-05-15 03:02:59 +03:00
sundy-li
5d91b4f2fd fix some bugs, fix some code styles 2018-05-15 03:02:59 +03:00
sundy-li
200076b593 ADD replace_query, on_duplicate_clause config for StorageMySQL && add docs 2018-05-15 03:02:59 +03:00
sundy-li
763f1fda96 Avoid Excessive copy when block is small enough && fix some code 2018-05-15 03:02:59 +03:00
sundy-li
2511a4784b Support data write to StorageMySQL table 2018-05-15 03:02:59 +03:00
Alexey Milovidov
3943cfb11e Addition to prev. revision [#CLICKHOUSE-2] 2018-05-14 22:14:37 +03:00
proller
fb911f7cfa Allow force disable libs: poco netssl poco mongodb, poco data odbc 2018-05-14 21:36:01 +03:00
proller
aa1552ebf2 Build fixes 2018-05-14 20:25:32 +03:00
Vitaliy Lyudvichenko
fb7e6350db Fixed disabled stderr output. Better configs for clickhouse-copier. [#CLICKHOUSE-2] 2018-05-14 17:14:58 +03:00
Vitaliy Lyudvichenko
e8b94b89e9 Removed dbg output, fixed test. [#CLICKHOUSE-2] 2018-05-14 17:14:58 +03:00
Vitaliy Lyudvichenko
61705acd69 Speedup initialization and fixed a bug. [#CLICKHOUSE-2] 2018-05-14 17:14:58 +03:00
Vitaliy Lyudvichenko
d25338582d Speedup partition check, add more preformance output. [#CLICKHOUSE-2]
Faster partition check.

Added more debug info.
2018-05-14 17:14:58 +03:00
proller
7deceb5783 Build fixes 2018-05-14 14:52:41 +03:00
Nikolai Kochetov
6ba8cb922c Fix usage of columns from header in SummingSortedBlockInputStream. #2273 2018-05-14 13:48:50 +03:00