Commit Graph

13164 Commits

Author SHA1 Message Date
Nikolai Kochetov
7592b6e34a Fixed monotonic constraints for unsigned integer types. 2018-07-06 18:55:26 +03:00
Alex Zatelepin
f7f4f220f1 Update MergeTreeData.cpp 2018-07-06 15:14:23 +03:00
Ciprian Hacman
fd6fb023b6 Recreate format_version.txt when missing 2018-07-06 15:14:23 +03:00
Mikhail Surin
8c4f04c452 invalid values handler 2018-07-06 14:29:14 +03:00
Alexey Milovidov
7fcf609812 Miscellaneous [#CLICKHOUSE-3806] 2018-07-06 03:28:39 +03:00
Alexey Milovidov
5d52be3c7e Merge branch 'master' of github.com:yandex/ClickHouse 2018-07-06 03:27:58 +03:00
Alexey Milovidov
21508df7c2 Fixed extremely bad code #2313 2018-07-06 03:27:47 +03:00
Alexey Milovidov
67b9a69f19 Fixed error in prev. revision [#CLICKHOUSE-3806] 2018-07-06 00:26:23 +03:00
Alexey Milovidov
88c582106b Attempt to get rid of VirtualColumnFactory (part 2) [#CLICKHOUSE-3806] 2018-07-05 23:38:05 +03:00
Alexey Milovidov
cc2250f688 Attempt to get rid of VirtualColumnFactory (part 1) [#CLICKHOUSE-3806] 2018-07-05 22:56:51 +03:00
Alexey Milovidov
0a188389c0 Fixed error #2599 2018-07-05 21:56:33 +03:00
Alexey Milovidov
4a35b57cea Little better #2599 2018-07-05 21:45:18 +03:00
Amos Bird
78beacb3a5 Make OPTIMIZE be able to merge all parts with FINAL. 2018-07-05 21:32:54 +03:00
Alexey Zatelepin
d5f8e4a1a5 load quorum status in merge predicate asynchronously [#CLICKHOUSE-3802] 2018-07-05 20:06:33 +03:00
Alexey Zatelepin
a41ee1f0a7 switch to ephemeral nodes for block number locks [#CLICKHOUSE-3802] 2018-07-05 20:06:33 +03:00
Alexey Zatelepin
0a46d231ed speedup merge selection: async exists check for selected parts [#CLICKHOUSE-3802] 2018-07-05 20:06:33 +03:00
Alexey Zatelepin
116ed0a59e add RestartingThread wakeup for faster session recovery 2018-07-05 19:30:52 +03:00
Alexey Zatelepin
fe83c8dab1 stricter validation of mutation commands #2588 2018-07-05 17:19:33 +03:00
Mikhail Surin
0418f179dc merge review 2018-07-05 16:29:43 +03:00
Alexey Zatelepin
88951cac62 clearer error message in test 2018-07-05 16:29:22 +03:00
Mikhail Surin
8bb17685fd reduce memory footprint 2018-07-05 14:33:59 +03:00
Mikhail Surin
f598e6d47c add tests 2018-07-05 12:53:42 +03:00
Mikhail Surin
984fe8e4fd implement n log(n) compression algorigthm 2018-07-05 12:53:42 +03:00
Mikhail Surin
b09323c547 naive implementation 2018-07-05 12:53:42 +03:00
Alexey Milovidov
c45aa180e8 Reviewing #2521 2018-07-05 02:24:36 +03:00
Alexey Milovidov
018e48399e Make the test results more stable with respect to floating point calculations method #2521 2018-07-05 01:37:48 +03:00
Alexey Milovidov
bfc29a3b91 Updated test #2521 2018-07-05 01:32:55 +03:00
Alexey Milovidov
ac2d352203 Reviewing #2521 2018-07-05 01:28:15 +03:00
Alexey Milovidov
b18a0e3ec0 Reviewing #2521 2018-07-05 00:49:32 +03:00
Alexey Milovidov
efb4eab4fd Merge branch 'CLICKHOUSE-3547' of https://github.com/ssmike/ClickHouse into ssmike-CLICKHOUSE-3547 2018-07-05 00:29:40 +03:00
Alexey Milovidov
c6eaca7c67 Adaptations #2574 2018-07-05 00:15:29 +03:00
Alexey Milovidov
7209d8b76f Adaptations #2574 2018-07-05 00:09:58 +03:00
Alexey Milovidov
84fd35da41 Adaptations #2574 2018-07-05 00:00:50 +03:00
Alexey Milovidov
7bdafa6105 Merge branch 'master' of https://github.com/amosbird/ClickHouse into amosbird-master 2018-07-04 23:54:54 +03:00
Alexey Milovidov
c0373c1d45 Style; added comment #2566 2018-07-04 23:46:17 +03:00
Alexey Milovidov
47958bee7c Merge branch 'feature-agg-func-in-summing-merge-tree' of https://github.com/kvap/ClickHouse into kvap-feature-agg-func-in-summing-merge-tree 2018-07-04 23:34:28 +03:00
Alexey Milovidov
4535f96148 Implemented TODO #2584 2018-07-04 20:28:52 +03:00
Alexey Milovidov
8fd1dbf6ec Make the test compatible with different versions of curl #2490 2018-07-04 20:28:52 +03:00
Alexey Milovidov
e6c293ab60 Added setting "use_index_for_in_with_subqueries_max_values" #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
76e35959fb Fixed test #2490 2018-07-04 20:28:52 +03:00
Alexey Milovidov
c99e717632 Fixed bad code #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
6afec54f7a Addition to prev. revision #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
e86f73e465 Fixed half of bad code #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
083b075631 Removed useless method #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
4b099e385b Fixed typo #2482 2018-07-04 20:28:06 +03:00
Nikolai Kochetov
d49a39e5e5 Added test with runningDifference function. #2590 2018-07-04 20:25:48 +03:00
Nikolai Kochetov
5e3c0c0238 Supported nullable for runningDifference function. #2590 2018-07-04 20:25:48 +03:00
Alexey Milovidov
f00f9d1f9a Merge branch 'master' into CLICKHOUSE-2910 2018-07-04 16:29:58 +03:00
Alexey Zatelepin
48c48c6c9a add functional test for mutations of Replicated tables [#CLICKHOUSE-3747] 2018-07-02 22:34:15 +03:00
Nikolai Kochetov
67755fe882 Added test. #2580 2018-07-02 20:46:33 +03:00
Nikolai Kochetov
323578c8b6 Reload client connection params before reconnection. #2580 2018-07-02 20:46:33 +03:00
morty
35c0ab9783 Merge branch 'master' into feature/suggestions 2018-07-02 11:52:45 +03:00
Alexey Milovidov
9845814701 Obfuscator: added heuristic #2518 2018-06-30 22:03:26 +03:00
Alexey Milovidov
394b020869 Fixed potential issue in Obfuscator on illegal UTF-8 source #2518 2018-06-30 02:27:56 +03:00
Nikolai Kochetov
6e5e57353a Review fixes. [#CLICKHOUSE-3694] #2156 2018-06-29 19:18:50 +03:00
Nikolai Kochetov
f5ecd410ae Renamed test. 2018-06-29 17:05:02 +03:00
Alexey Zatelepin
3cbced0d2a add integration test for mutations of Replicated tables [#CLICKHOUSE-3747] 2018-06-29 16:46:28 +03:00
Amos Bird
900b046943 Add options to enable parsing CSV with single/double quote. 2018-06-29 15:34:55 +08:00
Alexey Milovidov
e051998e1c Renamed setting "send_logs_level" #2482 2018-06-28 23:11:14 +03:00
Alexey Milovidov
d8654d07e1 Auto version update to [54389] 2018-06-28 22:43:27 +03:00
Alexey Milovidov
3894f094ea Fixed setting descriptions #2482 2018-06-28 22:40:18 +03:00
alexey-milovidov
1381369638
Update Defines.h 2018-06-28 20:48:05 +03:00
alexey-milovidov
3904ba561f
Merge branch 'master' into CLICKHOUSE-2910 2018-06-28 20:47:25 +03:00
Alexey Milovidov
d4eefc414c Merge branch 'query_in_form_data' of https://github.com/stavrolia/ClickHouse into stavrolia-query_in_form_data 2018-06-28 20:34:58 +03:00
alexey-milovidov
b7ac6ac8c1 Update IAST.cpp 2018-06-28 20:25:09 +03:00
Nikolai Kochetov
782caef119 Added IAST::appendColumnName(WriteBuffer &); reimplemented IAST::getColumnName() using it. 2018-06-28 20:25:09 +03:00
Nikolai Kochetov
bd4a899dd3 Reduced the number of IAST::getColumnName() calls in ExpressionAnalyzer. 2018-06-28 20:25:09 +03:00
Nikolai Kochetov
29ef36a270 Added test. [#CLICKHOUSE-3794] 2018-06-28 20:15:12 +03:00
Nikolai Kochetov
acd6c8fafd Supported array(tuple) arguments for arrayEnumerateUniq function. [#CLICKHOUSE-3794] 2018-06-28 20:15:12 +03:00
Alexey Milovidov
6f21706f65 Added test #2553 2018-06-28 19:05:41 +03:00
Alexey Milovidov
493b67d051 Removed useless file [#CLICKHOUSE-2] 2018-06-28 18:59:39 +03:00
Nikolai Kochetov
ebde528506 Create default macros in global context. [#CLICKHOUSE-3793] 2018-06-28 17:11:09 +03:00
Mikhail Surin
c7a305eca3 fix float transform 2018-06-28 16:36:40 +03:00
stavrolia
5966b78d41 add case with external file 2018-06-27 21:53:11 +03:00
robot-metrika-test
e03d523f19 Auto version update to [54388] 2018-06-27 16:10:59 +03:00
Alexey Zatelepin
2447755700 BackgroundSchedulePool: remove task from delayed even it it is currently executing
If the task was left in the delayed_tasks set, it could lead to a nasty bug:
delayExecutionThreadFunction() would schedule the task, then it would immediately
go on a next iteration and schedule the same task again. Thus this task would be
continually executing, and other delayed tasks would have no chance to run.
2018-06-27 13:47:58 +03:00
Nikolai Kochetov
bf3327da8b Removed nullable column from ColumnUnique. Added IColumnUnique::getNestedNotNullableColumn(). 2018-06-26 20:38:32 +03:00
Constantin S. Pan
59e7af6926 Add a test with materialized view against null table and lots of data 2018-06-26 16:26:51 +01:00
Nikolai Kochetov
9f591b8d02 Merged with master. 2018-06-26 17:41:29 +03:00
Nikolai Kochetov
b1eace2877 Fixed DataTypeWithDictionary deserialization. 2018-06-26 17:12:35 +03:00
Nikolai Kochetov
f191eb8ae9 Fix ColumnWithDictionary::getPremutation limit 2018-06-26 17:12:34 +03:00
Nikolai Kochetov
9e9b33ebe5 Fix deserialization indexes for additional keys in DataTypeWithDictionary. 2018-06-26 17:12:30 +03:00
Nikolai Kochetov
f56d16769b Added pre and post serialization for IDataType BinaryBulkWithMultipleStreams. Supported dictionary serialization format with single global dictionary (limited wit max_dictionary_size) and additional keys which are stored per granule. Changed IDataType::enumerateStream interface. Added (de)serialization params for binary bulk with multiple stream (de)serialization. Changed IColumn::index interface. 2018-06-26 17:12:21 +03:00
Nikolai Kochetov
58cbcbd5c3 Supported DataTypeWithDictionary in CAST function. 2018-06-26 17:12:21 +03:00
Nikolai Kochetov
df71a25b4f Removed function makeDictionary, added functions makeDictionaryUInt{8,16,32,64} 2018-06-26 17:12:21 +03:00
Nikolai Kochetov
12bf5ef565 Added IColumn::convertToFullColumnIfWithDictionary; supported FilterDescription for ColumnWithDictionary 2018-06-26 17:12:15 +03:00
Nikolai Kochetov
0eed697623 Fixed typo. 2018-06-26 14:28:24 +03:00
Constantin S. Pan
cc4c4e0b49 Make the test more comprehensive and fix bugs in AggregateFunction implementation of SummingMergeTree 2018-06-26 11:28:42 +01:00
stavrolia
e1cd4d22db Add test (#2490) 2018-06-25 21:17:10 +03:00
Nikolai Kochetov
bd7c72de5c Spelling. 2018-06-25 16:08:35 +03:00
Nikolai Kochetov
60f0ed9296 Added processing stage check for StorageMerge. [#CLICKHOUSE-3694] #2156 2018-06-25 15:47:51 +03:00
Nikolai Kochetov
4f7c284d34 Fixed build. 2018-06-25 15:47:45 +03:00
Nikolai Kochetov
ba4cf6faf0 Merged with master. 2018-06-25 15:08:21 +03:00
Nikolai Kochetov
7c95d15374 Added test. #2525 2018-06-25 13:57:28 +03:00
Nikolai Kochetov
91c9906c88 Fixed reading from ReplacingMergeTree from emprty row set after prewhere. #2525 2018-06-25 13:48:11 +03:00
morty
492040bd66 Merge branch 'master' into feature/suggestions 2018-06-25 11:22:15 +03:00
Mikhail Surin
0188538b33 fix review 2018-06-22 21:30:13 +03:00
Mikhail Surin
021f3b564b add tests 2018-06-22 21:30:13 +03:00
Mikhail Surin
7ee530a97d implement n log(n) compression algorigthm 2018-06-22 21:30:13 +03:00
Mikhail Surin
511e608080 use arena 2018-06-22 21:30:13 +03:00
Mikhail Surin
2f300e9df9 change bins schema 2018-06-22 21:30:13 +03:00
Mikhail Surin
3373909cbd naive implementation 2018-06-22 21:30:09 +03:00
robot-metrika-test
a21a9577f4 Auto version update to [54387] 2018-06-22 21:10:11 +03:00
Alexey Zatelepin
7ce4ebf1e1 fix test (disable random component in CleanupThread sleep period) 2018-06-22 18:53:59 +03:00
Alexey Zatelepin
7ce74d1730 ZooKeeper client: before the fix we waited 2x longer than necessary before the timeout 2018-06-22 18:30:29 +03:00
Constantin S. Pan
1333b5e97b Fix the test for AggregateFunction in SummingMergeTree 2018-06-22 16:29:04 +01:00
Alexey Zatelepin
b247635acf disable unreliable test [#CLICKHOUSE-3758] 2018-06-22 13:46:07 +03:00
Alexey Zatelepin
971fddb299 add comments [#CLICKHOUSE-3747] 2018-06-22 13:43:35 +03:00
zhang2014
f4e72792a5 ISSUES-2553 add offset parameter to numbers 2018-06-22 12:55:36 +03:00
Alexey Zatelepin
e78dc8142c factor out common code [#CLICKHOUSE-3747] 2018-06-21 22:47:44 +03:00
Alexey Zatelepin
a6c61848f1 mutations finalizing task [#CLICKHOUSE-3747] 2018-06-21 22:47:44 +03:00
Alexey Zatelepin
2fb3d42dfd temporary fix for a bug when several mutations have the same predicate [#CLICKHOUSE-3747] 2018-06-21 22:47:44 +03:00
Alexey Zatelepin
36982b967d use single mutex in ReplicatedMergeTreeQueue for simplicity 2018-06-21 22:47:44 +03:00
Alexey Zatelepin
b2cdfcbaca calculate and update parts_to_do for mutations [#CLICKHOUSE-3747] 2018-06-21 22:47:44 +03:00
proller
a31adcfdea Allow use unbundled cpuid (#2543)
* Wait test server startup for 5s

* clean

* Allow use system libcpuid

* cpuid: move include/cpuid/ -> include/libcpuid/

* fix
2018-06-21 20:35:03 +03:00
proller
e1ae5233df Add // Y_IGNORE tags 2018-06-21 18:24:36 +03:00
Constantin S. Pan
e94570d206 Add support for AggregateFunction in SummingMergeTree 2018-06-21 16:10:32 +01:00
proller
2d9d723d3c Wait test server startup for 5s 2018-06-21 17:54:48 +03:00
Nikolai Kochetov
96df20f6b5 Fixed ColumnUnique::compareAt implementation; deprecated several metods for IColumnUnique 2018-06-21 16:29:09 +03:00
Nikolai Kochetov
f88584d748 Added DeserializeBinaryBulkState which stores reading state for ColumnWithDictionary. 2018-06-21 16:28:53 +03:00
Vitaliy Lyudvichenko
1a4157f2a9 clickhouse_common_io does not depend on dbms. [#CLICKHOUSE-2910]
Get rid of extra linking dependencies for clickhouse_common_io. [#CLICKHOUSE-2910]
2018-06-21 15:13:56 +03:00
Vitaliy Lyudvichenko
358e4ae9bf Fixed failures in utils, more precise test. [#CLICKHOUSE-2910] 2018-06-20 18:41:15 +03:00
Vitaliy Lyudvichenko
310bb4116e Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-06-19 23:33:11 +03:00
Vitaliy Lyudvichenko
e13ba09004 Rewritten ThreadStatus via adding shared thread state. [#CLICKHOUSE-2910]
Fixed race condition in SystemLog.
2018-06-19 23:30:35 +03:00
proller
fbe7df73a2
CLICKHOUSE-3762 Build fixes (#2488)
CONTRIB-254
2018-06-19 21:09:09 +03:00
morty
c063d5c5e4 Merge branch 'master' into feature/suggestions 2018-06-19 17:08:27 +03:00
morty
47c6dc1728 Added missing query keywords, preload dictionary names and attributes, fixes and cleanup 2018-06-19 17:07:10 +03:00
proller
a4e6f726e8 Build and test fixes 2018-06-19 00:13:11 +03:00
Vitaliy Lyudvichenko
8dc1bebf00 Add logs forwarding from remote severs to client. [#CLICKHOUSE-2910] 2018-06-18 19:30:26 +03:00
Vitaliy Lyudvichenko
e031b5360a Minor enhancement. [#CLICKHOUSE-2910] 2018-06-18 16:50:20 +03:00
Vitaliy Lyudvichenko
392f6e0c6c Print query_id in logs. Add own logging interface. [#CLICKHOUSE-2910] 2018-06-18 16:41:13 +03:00
Alexey Milovidov
187d93ea82 Addition to prev. revision #2520 2018-06-18 05:17:00 +03:00
Alexey Milovidov
4871fb3626 Addition to prev. revision #2520 2018-06-18 05:16:00 +03:00
Alexey Milovidov
447ffe32a9 Addition to prev. revision #2520 2018-06-18 05:15:19 +03:00
Alexey Milovidov
ea01f6a3ff Addition to prev. revision #2520 2018-06-18 05:12:19 +03:00
Alexey Milovidov
82102c6896 Fixed conflicting headers on Fedora Rawhide while using Linux native AIO #2520 2018-06-18 04:33:34 +03:00
Alexey Milovidov
3ea8ce1c0a Obfuscator: better default parameter #2518 2018-06-17 02:34:34 +03:00
Alexey Milovidov
6173e4b71f Returned back "explicit" #2501 2018-06-16 09:00:51 +03:00
Alexey Milovidov
2298f1c68b Fixed strange code #2501 2018-06-16 08:54:06 +03:00
Alexey Milovidov
b108882e2e Merge branch 'master' of https://github.com/alesapin/ClickHouse into alesapin-master 2018-06-16 08:29:00 +03:00
Alexey Milovidov
05d31f5e46 LZ4_decompress_faster: reordered variants and removed variant that is always worse [#CLICKHOUSE-3773] 2018-06-16 07:48:37 +03:00
Alexey Milovidov
52755f248a Fixed error [#CLICKHOUSE-2] 2018-06-16 06:35:23 +03:00
Alexey Milovidov
d8eb8c8ddf Fixed error [#CLICKHOUSE-2] 2018-06-16 06:31:49 +03:00
Alexey Milovidov
e4776e8b5d Fixed build (no include path was specified) #2513 2018-06-16 05:31:41 +03:00
Alexey Milovidov
4e8082a699 Fixed build [#CLICKHOUSE-2] 2018-06-16 05:16:19 +03:00
alexey-milovidov
d853b28543
Merge pull request #2513 from yandex/trim-exit-string
Trim exit string
2018-06-16 05:15:25 +03:00
alexey-milovidov
d578bcbd5c
Update StringUtils.h 2018-06-16 05:14:37 +03:00
Alexey Milovidov
0272fc996a Fixed build [#CLICKHOUSE-2] 2018-06-16 05:13:54 +03:00
Alexey Milovidov
e66cdfe429 Fixed error [#CLICKHOUSE-2] 2018-06-16 05:06:51 +03:00
Alexey Milovidov
e6aa58e667 Fixed error [#CLICKHOUSE-2] 2018-06-16 05:04:46 +03:00
alexey-milovidov
f589ab2831
Merge pull request #2518 from yandex/anonymizer
Simple tool for table data obfuscation.
2018-06-16 05:01:15 +03:00
alexey-milovidov
e6daa67beb
Merge pull request #1890 from yandex/lz4_experiments
Faster LZ4 decompression (experimental) + simple draft of data mutator.
2018-06-16 04:57:47 +03:00
Alexey Milovidov
fae4359ee1 Data obfuscator: added documentation [#CLICKHOUSE-2] 2018-06-16 04:45:19 +03:00
Alexey Milovidov
9d137881a9 Data obfuscator: added documentation [#CLICKHOUSE-2] 2018-06-16 04:44:25 +03:00
Alexey Milovidov
914b1fc967 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-16 03:52:27 +03:00
Alexey Milovidov
116c91c9ca Data obfuscator: development [#CLICKHOUSE-2] 2018-06-16 03:50:52 +03:00
Alexey Milovidov
4e02a4c81f Data obfuscator: development [#CLICKHOUSE-2] 2018-06-16 03:27:59 +03:00
Alexey Milovidov
80ed67c8ee Data obfuscator: development [#CLICKHOUSE-2] 2018-06-16 02:54:33 +03:00
Constantin S. Pan
ca88ba7cfa Add a test for AggregateFunction in SummingMergeTree 2018-06-15 16:11:43 +01:00
Vitaliy Lyudvichenko
a0e9d17bfd Add query_id and host_name to server logs. [#CLICKHOUSE-2910] 2018-06-15 16:49:01 +03:00
Alexey Milovidov
16c16dcc2d Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 13:42:13 +03:00
Alexey Milovidov
9043e36fa1 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 13:03:02 +03:00
Alexey Milovidov
ddd10d956b Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 12:44:14 +03:00
Alexey Milovidov
108cca6ac1 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 12:40:40 +03:00
Alexey Milovidov
47bded3520 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 12:21:53 +03:00
Alexey Milovidov
3de1efa2c2 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 12:07:42 +03:00
Alexey Milovidov
bd5247864b Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 11:53:06 +03:00
alesapin
ffad002bf5 Add missed stl header 2018-06-15 10:42:57 +03:00
Alexey Milovidov
43a98634a9 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 10:09:54 +03:00
alesapin
5bc0f26496 Add missed file 2018-06-15 10:05:14 +03:00
Alexey Milovidov
5fa604db7b Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 09:27:16 +03:00
Alexey Milovidov
e1b85c84f7 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 09:14:39 +03:00
Alexey Milovidov
1c4eb2c586 Data obfuscator: development [#CLICKHOUSE-2] 2018-06-15 08:33:39 +03:00
Alexey Milovidov
c375814e44 Added support for intHashCRC32 on AArch64 [#CLICKHOUSE-2] 2018-06-15 08:21:12 +03:00
Alexey Milovidov
233906f61b Enabled ARM Neon [#CLICKHOUSE-2] 2018-06-15 00:58:48 +03:00
alesapin
6e07b17632 Added WriteBufferFromHTTP and used it in StorageURL. Also small refactoring. 2018-06-15 00:22:56 +03:00
alesapin
148cbe8058 Added WriteBufferFromHTTP and used it in StorageURL. Also small refactoring. 2018-06-15 00:20:39 +03:00
Alexey Milovidov
0c467158f9 Attempt to use ARM Neon [#CLICKHOUSE-2] 2018-06-15 00:14:08 +03:00
Alexey Milovidov
d4aa1dffa2 Attempt to use ARM Neon [#CLICKHOUSE-2] 2018-06-15 00:13:13 +03:00
Alexey Milovidov
c9789f985a Fallback for non x86 [#CLICKHOUSE-2] 2018-06-14 23:16:57 +03:00
Alexey Milovidov
af5875960f Fallback for non x86 [#CLICKHOUSE-2] 2018-06-14 23:09:05 +03:00
Alexey Milovidov
cc4f896a9d Fallback for non x86 [#CLICKHOUSE-2] 2018-06-14 23:05:52 +03:00
Alexey Milovidov
177251790b Fallback for non x86 [#CLICKHOUSE-2] 2018-06-14 23:05:20 +03:00
Alexey Milovidov
e27af42041 Fallback for non x86 [#CLICKHOUSE-2] 2018-06-14 23:04:48 +03:00
Alexey Milovidov
86053c754f Fixed warning on platforms where char is unsigned [#CLICKHOUSE-2] 2018-06-14 22:57:11 +03:00
Alexey Milovidov
a2fdda4231 Fixed warning on platforms where char is unsigned [#CLICKHOUSE-2] 2018-06-14 22:54:11 +03:00
Nikolai Kochetov
fd406f30ad Trim exit string before checking. #2510 2018-06-14 22:21:35 +03:00
Nikolai Kochetov
27c6df7e20 Trim exit string before checking. #2510 2018-06-14 22:15:35 +03:00
alesapin
4125b0c7f3 Merge remote-tracking branch 'upstream/master' 2018-06-14 21:06:24 +03:00
Vitaliy Lyudvichenko
608895d9ff Disable compression for Log packets. [#CLICKHOUSE-2910] 2018-06-14 18:33:59 +03:00
Vitaliy Lyudvichenko
e5e73d4a9b Add CAP_NET_ADMIN capability check. [#CLICKHOUSE-2910] 2018-06-14 17:58:39 +03:00
Vitaliy Lyudvichenko
4cd230f85c Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-06-14 16:04:00 +03:00
Vitaliy Lyudvichenko
95b42afcb9 Add test for profile events logging. [#CLICKHOUSE-2910] 2018-06-14 14:56:12 +03:00
Alexey Milovidov
1e60b733f4 Fixed warning #2504 2018-06-13 23:02:27 +03:00
alexey-milovidov
08ec751a8c
Merge pull request #2504 from yandex/system-mutations-table
[WIP] system.mutations table skeleton
2018-06-13 23:00:30 +03:00
alexey-milovidov
c1910fef37
Update ASTAlterQuery.h 2018-06-13 23:00:10 +03:00
Alexey Milovidov
90e933c9bf Merge branch 'master' of github.com:yandex/ClickHouse 2018-06-13 22:42:25 +03:00
Alexey Milovidov
95e4bcdb56 Fixed non-deterministic test #2352 2018-06-13 22:42:04 +03:00
alexey-milovidov
f123fce023
Merge pull request #2505 from yandex/use-zookeeper-session-timeout-from-server
Use zookeeper session timeout from zookeeper server.
2018-06-13 22:36:37 +03:00
Nikolai Kochetov
cedf7a309e Use zookeeper session timeout from zookeeper server. 2018-06-13 22:24:54 +03:00
alexey-milovidov
ca883a699d
Update StorageURL.cpp 2018-06-13 21:54:32 +03:00
alexey-milovidov
931ccf988f
Update TableFunctionURL.h 2018-06-13 21:52:17 +03:00
alexey-milovidov
f546169a4d
Update StorageURL.cpp 2018-06-13 21:51:56 +03:00
Alexey Zatelepin
a3bf3e6d20 add missing columns to system.parts [#CLICKHOUSE-3747] 2018-06-13 18:47:40 +03:00
Alexey Zatelepin
b60a2a90fa rename method for clarity 2018-06-13 17:15:36 +03:00
Alexey Zatelepin
4ee581117b system.mutations table skeleton [#CLICKHOUSE-3747] 2018-06-13 17:15:36 +03:00
Alexey Zatelepin
2c61a5940c store mutation entries in shared_ptr 2018-06-13 17:14:12 +03:00
Alexey Zatelepin
c5c601f662 save serialized commands in ReplicatedMergeTreeMutationEntry; split InterpreterAlterQuery::parseAlter() [#CLICKHOUSE-3747] 2018-06-13 17:14:08 +03:00
Alexey Zatelepin
14947b494f make ASTAlterQuery::Parameters a real AST element ASTAlterCommand [#CLICKHOUSE-3747] 2018-06-13 17:13:28 +03:00
alesapin
567bbb2bbb Fix header path and small fixes in tests 2018-06-13 10:36:47 +03:00
alesapin
7eaac3e40d Merge remote-tracking branch 'upstream/master' 2018-06-13 10:27:41 +03:00
alesapin
b42351d36c Fix format in storage url 2018-06-13 10:00:07 +03:00
Alexey Milovidov
397ac0fb24 Updated performance testing tool #1890 2018-06-13 05:52:03 +03:00
Alexey Milovidov
288d19a706 Merge branch 'master' into lz4_experiments 2018-06-13 04:33:41 +03:00
Alexey Milovidov
7f294007cb Removed string size overestimation #2428 2018-06-13 03:51:23 +03:00
alesapin
ceef414cb8 Add simple tests for table function url and table function engine 2018-06-12 18:59:43 +03:00
Alexey Milovidov
e3d5a2860e Updated LZ4 performance testing tool #1890 2018-06-12 08:04:16 +03:00
Alexey Milovidov
0baa62b0da Merge branch 'lz4_experiments' of github.com:yandex/ClickHouse into lz4_experiments 2018-06-12 07:18:13 +03:00
Alexey Milovidov
cf94f609f6 Fixed error #1890 2018-06-12 07:18:01 +03:00
Alexey Milovidov
777ace12b4 Added test #1890 2018-06-12 06:44:53 +03:00
Alexey Milovidov
24b0f77a2c Revert "Added ASLR to aid debugging #1890"
This reverts commit 619225323d.
2018-06-12 06:33:26 +03:00
Alexey Milovidov
d560db65f6 Fixed weird error #1890 2018-06-12 06:32:48 +03:00
Alexey Milovidov
2a30db6b44 Whitespace [#CLICKHOUSE-2] 2018-06-12 06:26:24 +03:00
Alexey Milovidov
eb83b2046b Fixed potential issue #1890 2018-06-12 06:25:54 +03:00
alesapin
df4f8bea35 Merge remote-tracking branch 'upstream/master' 2018-06-11 16:31:58 +03:00
alesapin
0f529dbc6e Add table fuction url and storage URL 2018-06-11 15:13:00 +03:00
Alexey Milovidov
619225323d Added ASLR to aid debugging #1890 2018-06-11 08:02:20 +03:00
alexey-milovidov
17d90fe6da
Merge branch 'master' into lz4_experiments 2018-06-10 23:13:38 +03:00
alexey-milovidov
fafecb3c25
Better modularity of formats. (#2492)
* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development): removed very old tests #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447

* Formats: better modularity (development) #2447
2018-06-10 22:22:49 +03:00
Alexey Milovidov
72af2b7b0f Removed wrong modification #2260 2018-06-10 21:26:02 +03:00
Alexey Milovidov
641076de51 Reverted unclear modification #2260 2018-06-09 21:39:29 +03:00
Alexey Milovidov
ebe5e3f9b6 Reverted unclear modification #2260 2018-06-09 21:35:51 +03:00
Alexey Milovidov
6475ea98c7 Merging: Fixed most of problems, actualized test #2260 2018-06-09 21:17:27 +03:00
Alexey Milovidov
d864f39ec7 Merge branch 'master' into zhang2014-feature/support_truncate 2018-06-09 19:10:06 +03:00
Alexey Milovidov
cfacdf1457 Merging: Fixed most of problems #2260 2018-06-09 19:09:37 +03:00
Alexey Milovidov
f3d8b4e3cf Merging: Fixed most of problems #2260 2018-06-09 19:03:07 +03:00
Vitaliy Lyudvichenko
9a788d9790 Fixed exception safety in TCPHandler. [#CLICKHOUSE-2910] 2018-06-09 18:58:41 +03:00
Alexey Milovidov
d56c199f07 Merging: Fixed half of problems #2260 2018-06-09 18:48:22 +03:00
Vitaliy Lyudvichenko
c04dfb40a6 Fixed memory tracking. [#CLICKHOUSE-2910] 2018-06-09 18:29:08 +03:00
Alexey Milovidov
0bc678474e Merge branch 'feature/support_truncate' of https://github.com/zhang2014/ClickHouse into zhang2014-feature/support_truncate 2018-06-09 17:24:50 +03:00
alexey-milovidov
b159bf1605
Update HTTPHandler.cpp 2018-06-09 15:24:18 +03:00
Olga Khvostikova
15cc44d894 Fix possible memeory problem 2018-06-09 07:18:59 +00:00
Olga Khvostikova
7b8c31eb50 Fix 2018-06-09 06:59:12 +00:00
Olga Khvostikova
c89c62f929 Draft 2018-06-09 06:56:10 +00:00
Vitaliy Lyudvichenko
ed7cd86f09 Fixed several bug. Trun on --server_logs_level=warning in tests. [#CLICKHOUSE-2910]
Fixed several test to be compatible with --server_logs_level=warning.
2018-06-08 22:50:15 +03:00
Alexey Milovidov
045d5975b3 Fixed discrepancy between Query, SelectQuery, InsertQuery profile events [#CLICKHOUSE-3769] 2018-06-08 22:32:35 +03:00
Alexey Milovidov
f45c0ce9a9 Added instruction to use TScanCode [#CLICKHOUSE-2]. 2018-06-08 21:52:37 +03:00
alexey-milovidov
77fd2f3721
Merge pull request #2484 from yandex/format-settings
Allowed to switch between 'basic' and 'best effort' methods of parsing DateTime values from text formats.
2018-06-08 21:46:07 +03:00
Alexey Milovidov
64ea1046e1 Using ninja by default: updated instructions [#CLICKHOUSE-2] 2018-06-08 19:18:07 +03:00
Alexey Milovidov
c937e2ebc6 Added test #1710 2018-06-08 06:27:44 +03:00
Alexey Milovidov
96fbe1d716 Allowed to switch between 'basic' and 'best effort' methods of parsing DateTime from text #1710 2018-06-08 06:27:34 +03:00
Alexey Milovidov
101276e541 Allowed to switch between 'basic' and 'best effort' methods of parsing DateTime from text #1710 2018-06-08 06:15:33 +03:00
Alexey Milovidov
2152b932c2 Allowed to switch between 'basic' and 'best effort' methods of parsing DateTime from text: preparation #1710 2018-06-08 05:56:37 +03:00
Alexey Milovidov
9940b4f8ff Passing settings to ser/de of data types: development #1710 2018-06-08 05:26:44 +03:00
Alexey Milovidov
29bd48fc7a Passing settings to ser/de of data types: development #1710 2018-06-08 05:24:27 +03:00
Alexey Milovidov
26d448baad Passing settings to ser/de of data types: development #1710 2018-06-08 04:51:55 +03:00
Alexey Milovidov
d81d4dfb29 Merge branch 'master' into format-settings 2018-06-08 01:39:55 +03:00
Alexey Milovidov
f483e4cb05 Added test for already fixed issue [#CLICKHOUSE-3750] 2018-06-08 00:27:05 +03:00
alexey-milovidov
7bae3506c4
Merge pull request #2483 from yandex/cast-fix-bad-code
Fixed bad code in implementation of CAST expression.
2018-06-08 00:25:30 +03:00
Alexey Milovidov
27fac69f1a Actualized tests [#CLICKHOUSE-3764] 2018-06-08 00:09:57 +03:00
Alexey Milovidov
8901414ad2 Fixed error; added test [#CLICKHOUSE-3764] 2018-06-07 23:49:59 +03:00
Alexey Milovidov
f71eb36719 Added test [#CLICKHOUSE-3764] 2018-06-07 23:37:16 +03:00
Alexey Milovidov
7125db4679 Fixed code with extremely high level of ugliness [#CLICKHOUSE-3764] 2018-06-07 23:25:38 +03:00
alexey-milovidov
a0592aa7a7
Merge pull request #2472 from alesapin/master
Introduce logging in shared library dictionaries
2018-06-07 22:04:38 +03:00
Vitaliy Lyudvichenko
99b68d3cf3 Add more options for loggig. [#CLICKHOUSE-2910] 2018-06-07 21:46:53 +03:00
Vitaliy Lyudvichenko
ac54e52fb3 Add server logs passing to client. [#CLICKHOUSE-2910] 2018-06-07 20:58:50 +03:00
alesapin
40c2b21b65 Change dictionary shared library api to v3. Both in library and examples. 2018-06-07 20:41:14 +03:00
morty
a1fa590b69 Merge branch 'master' into feature/suggestions 2018-06-07 19:19:55 +03:00
alexey-milovidov
587189b211
Merge branch 'master' into clang-compliant 2018-06-07 17:43:20 +03:00
proller
cb65528147 Build fixes (#2481)
* Build fixes

* fix

* Fix package without compiler

* Better

* fix

* fix

* fix

* Build fix

* fix

* fix

* fix

* Build fix

* Fix test

* test fixes

* test: netcat-openbsd

* Compile fixes

* Update AggregateFunctionStatisticsSimple.h

* Update FunctionsRound.h
2018-06-07 17:42:38 +03:00
alesapin
d2bfa25769 Remove unused include 2018-06-07 12:22:27 +03:00
morty
ec10e58df2 Turn off autocompletion if no readline library 2018-06-07 11:58:55 +03:00
flow
c408854c3c Clang compliant on macosx 2018-06-07 12:21:38 +08:00
alexey-milovidov
be4be0758a
Remove escaping in presentational formats (#2476)
* Removed escaping in presentational formats; changed a way how NULL is output #1729

* Addition to prev. revision #1729

* Addition to prev. revision #1729

* Updated tests #1729

* Updated function visibleWidth to be consistent with Pretty formats #1729
2018-06-07 04:30:29 +03:00
proller
095420e158 Build fixes (#2475)
* Build fixes

* fix

* Fix package without compiler

* Better

* fix

* fix

* fix

* Build fix

* fix

* fix

* fix

* Build fix

* Fix test
2018-06-07 04:20:53 +03:00
Alexey Milovidov
0b7bf8491f Merge branch 'master' into format-settings 2018-06-07 02:13:45 +03:00
Alexey Milovidov
89b2096fd7 Merge branch 'master' of github.com:yandex/ClickHouse 2018-06-07 00:21:46 +03:00
Alexey Milovidov
cc1691949a Modified tests #2429 2018-06-07 00:15:47 +03:00
Alexey Milovidov
a00e5e2c5c Preparations #2429 2018-06-07 00:13:49 +03:00
Alexey Milovidov
37bd5f175b Whitespaces #2429 2018-06-06 23:38:02 +03:00
Alexey Milovidov
5fa25968c8 Merge branch 'task_ends_starts' of https://github.com/VadimPE/ClickHouse into VadimPE-task_ends_starts 2018-06-06 23:36:22 +03:00
proller
347579ce46 Cmake: mark system includes as SYSTEM (#1449)
* contrib: cctz as submodule. update cctz.

* pbuilder: add ubuntu bionic, devel

* Cmake: mark system includes as SYSTEM

* Build fixes

* fix

* Fix package without compiler

* Better

* fix

* fix

* fix

* Build fix

* fix

* fix

* fix

* Cmake: Add SYSTEM to includes for external libs
2018-06-06 23:21:58 +03:00
alesapin
2a39f05f99 Shared Library Dict Logging: Replace multiple functions with single one and add logging examples into test libraries 2018-06-06 23:21:16 +03:00
proller
e475647594 Build fix 2018-06-06 23:07:41 +03:00
proller
8ba439a8b7 Build fix (copy-headers) 2018-06-06 22:57:01 +03:00
Vadim
57f961138e add \n 2018-06-06 22:55:08 +03:00
Vadim
2ca21dfde7 fix 2018-06-06 22:36:14 +03:00
proller
4dabc18585 Build fix 2018-06-06 22:00:11 +03:00
morty
f99433e09c Merge branch 'master' into feature/suggestions 2018-06-06 21:59:41 +03:00
Vadim
4b5e28a9d1 fix test's name 2018-06-06 21:49:43 +03:00
proller
01a31414eb
Build fixes (#2474) 2018-06-06 21:41:39 +03:00
Vadim
fec000b8dc Add new tests and new impl 2018-06-06 21:22:49 +03:00
morty
3e14bdddb0 Load suggestions in different thread 2018-06-06 21:19:17 +03:00
Alexey Milovidov
b6a6e391b8 Fixed minor security issue [#CLICKHOUSE-3758] 2018-06-06 21:05:35 +03:00
Alexey Milovidov
583b9af56f Fixed error: user settings don't apply when using session_id parameter [#CLICKHOUSE-3763] 2018-06-06 20:35:35 +03:00
Alexey Milovidov
3bb0bd322e Merge branch 'master' of github.com:yandex/ClickHouse 2018-06-06 20:17:06 +03:00
Alexey Milovidov
267a69fe7e Better type for number of rows [#CLICKHOUSE-2] 2018-06-06 20:16:05 +03:00
morty
823068f2fe Resolved conflicts 2018-06-06 19:48:33 +03:00
morty
fba5fdaf64 Added autoload and limit 2018-06-06 19:37:04 +03:00
proller
82a4565ebe
Build fixes (#2473) 2018-06-06 19:05:53 +03:00
alesapin
1adee7a6c5 Merge remote-tracking branch 'upstream/master' 2018-06-06 17:35:55 +03:00
alesapin
6426e573aa Fix format 2018-06-06 17:35:33 +03:00
Alexey Zatelepin
863c1c6ed5 add fields related to part mutations to system.replicas table [#CLICKHOUSE-3747] 2018-06-06 16:22:30 +03:00
Alexey Zatelepin
dbfee942af escape serialized AST in MutationCommands (just in case) [#CLICKHOUSE-3747] 2018-06-06 14:30:58 +03:00
Alexey Milovidov
092d156800 Settings for DateTime format (incomplete) [#CLICKHOUSE-2] 2018-06-06 00:39:01 +03:00
Alexey Milovidov
51044279e5 Squashed #2471 2018-06-05 23:09:51 +03:00
Alexey Milovidov
b9b89a5590 Less dependencies [#CLICKHOUSE-2] 2018-06-05 22:46:49 +03:00
Alexander Sapin
5a524a7819 Remove empty lines 2018-06-05 22:20:16 +03:00
Alexander Sapin
4e3dc0d8a2 Introduce logging in shared library dictionaries 2018-06-05 22:17:16 +03:00
proller
c1904d3c55
Build and test fixes (#2470) 2018-06-05 20:43:10 +03:00
Alexey Zatelepin
3947f25365 add general comment about the mutation algorithm [#CLICKHOUSE-3747] 2018-06-05 17:55:35 +03:00
Alexey Zatelepin
2fde0acb36 allow ALTER DELETE in distributed DDL [#CLICKHOUSE-3688] 2018-06-05 16:23:52 +03:00
alexey-milovidov
39e69b421a
Merge pull request #2468 from yandex/fix-partition-key-parts-pruning
Fix pruning of parts by conditions on partition key columns
2018-06-05 15:52:47 +03:00
Alexey Zatelepin
0e63004ecf add test [#CLICKHOUSE-3757] 2018-06-05 14:00:17 +03:00
Nikolai Kochetov
d018f3ad60 Per granula reading for ColumnWithDictionary in MergeTreeRangeReader. 2018-06-05 13:10:54 +03:00
Nikolai Kochetov
caa86bc59a Fixed ColumnWithDictionary::serializeBinaryBulkWithMultipleStreams, added more comments. 2018-06-05 13:10:44 +03:00
proller
4d12a823da Use copy-headers from cmake. (working compiler test without package install) (#2456)
* Try use copy-headers from cmake [WIP]

* Using internal compiler without install

* 32bit Compile fix

* Fixes

* fix

* clean

* fix

* clean
2018-06-04 23:26:17 +03:00
alexey-milovidov
f69ecf7a9d
Merge pull request #2448 from LiuYangkuan/fix-issue-2439
fix Exception in issue#2439
2018-06-04 23:17:44 +03:00
alexey-milovidov
3af746aab1
Merge pull request #2462 from proller/fix19
Build fixes
2018-06-04 23:17:21 +03:00
alexey-milovidov
88efe5ad56
Merge pull request #2463 from yandex/pvs-studio
Fixes according to PVS-Studio report.
2018-06-04 22:59:47 +03:00
Alexey Milovidov
0f96a5c1c5 Suppressions for PVS-Studio [#CLICKHOUSE-3] 2018-06-04 22:46:47 +03:00
Alexey Milovidov
a6caf556ef Fixed potential issue found by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 22:43:38 +03:00
Alexey Milovidov
f467fb38c7 Fixed bug found by PVS-Studio; added test [#CLICKHOUSE-3] 2018-06-04 22:37:58 +03:00
Alexey Milovidov
47c24bb2ad Added instruction of running PVS-Studio [#CLICKHOUSE-3] 2018-06-04 22:35:02 +03:00
Alexey Milovidov
ca52d96e09 Insignificant changes for PVS-Studio [#CLICKHOUSE-3] 2018-06-04 22:22:27 +03:00
proller
9907388766 32bit Compile fix 2018-06-04 20:04:31 +03:00
Alexey Milovidov
e5682e81f7 Slightly better (preparation) [#CLICKHOUSE-3] 2018-06-04 20:01:00 +03:00
Alexey Zatelepin
a9b348fe5e check if partition key condition can be true in parallelogram instead of range [#CLICKHOUSE-3757] 2018-06-04 19:20:02 +03:00
Alexey Zatelepin
ec7446e541 calculate primary key when mutating a part [#CLICKHOUSE-3747] 2018-06-04 18:45:34 +03:00
Alexey Milovidov
df11490b2a Insignificant changes guided by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 18:45:08 +03:00
Alexey Milovidov
5fa1cdf49e Better code (preparation) [#CLICKHOUSE-3] 2018-06-04 18:44:29 +03:00
Alexey Milovidov
d811647668 Suppressions for PVS-Studio [#CLICKHOUSE-3] 2018-06-04 18:28:25 +03:00
Alexey Milovidov
9b4823769a Better fix [#CLICKHOUSE-3] 2018-06-04 18:26:20 +03:00
Alexey Milovidov
522cd82e76 Non significant change: slightly better [#CLICKHOUSE-3] 2018-06-04 18:07:32 +03:00
Alexey Milovidov
1001209e2a Fixed bug found by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 18:05:19 +03:00
Alexey Milovidov
fa3a01f942 Fixed bug found by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 18:03:21 +03:00
Alexey Milovidov
531e9d14be Non significant change: slightly better [#CLICKHOUSE-3] 2018-06-04 18:01:24 +03:00
Alexey Milovidov
de72b4adde Fixed bug found by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 18:01:18 +03:00
morty
2479453aa5 Free memory before exit 2018-06-04 17:59:24 +03:00
morty
9b32d1ea66 Removed unneeded inclusion of source and header 2018-06-04 17:50:45 +03:00
Vitaliy Lyudvichenko
89f2107c75 C++ify taskstats getter, periodic auto update of profile events. [#CLICKHOUSE-2910] 2018-06-04 17:50:35 +03:00
morty
3ad80a6a0f Removed hashtable use ternary search tree 2018-06-04 17:50:16 +03:00
alexey-milovidov
f428f30bc6
Merge pull request #2461 from yandex/CLICKHOUSE-3749
Clickhouse-3749
2018-06-04 17:24:35 +03:00
Alexey Milovidov
1829aba596 Non significant change: slightly better [#CLICKHOUSE-3] 2018-06-04 17:17:47 +03:00
Alexey Milovidov
278ccdff73 Non significant change: removed redundant checks [#CLICKHOUSE-3] 2018-06-04 17:17:24 +03:00
Alexey Milovidov
9cbcfc87f2 Fixed bug found by PVS-Studio [#CLICKHOUSE-3] 2018-06-04 17:16:08 +03:00
Nikolai Kochetov
bc2be6afe3 Added more tests for in function in with pk columns. 2018-06-04 17:10:54 +03:00
Nikolai Kochetov
5717b16165 Updated test with in syntax. [#CLICKHOUSE-3749] 2018-06-04 16:32:20 +03:00
Nikolai Kochetov
1b4c294f01 Added left tuple argument unpacking for IN function if it doesn't equals to set types. [#CLICKHOUSE-3749] 2018-06-04 16:30:38 +03:00
Alexey Zatelepin
2e77c508ad add comments [#CLICKHOUSE-3747] 2018-06-04 14:43:09 +03:00
Alexey Zatelepin
e55097b866 introduce constants for max level and max block number 2018-06-04 14:23:47 +03:00
Alexey Milovidov
8cb65277e2 Non significant changes according to clang's -Weverything, part 5 [#CLICKHOUSE-2] 2018-06-04 01:11:50 +03:00
Alexey Milovidov
7c60adbebb Non significant changes according to clang's -Weverything, part 4 [#CLICKHOUSE-2] 2018-06-03 23:48:36 +03:00
Alexey Milovidov
f5adbceed2 Non significant changes according to clang's -Weverything, part 3 [#CLICKHOUSE-2] 2018-06-03 23:39:06 +03:00
Alexey Milovidov
1c2b024c39 Non significant changes according to clang's -Weverything, part 2 [#CLICKHOUSE-2] 2018-06-03 20:43:56 +03:00
Alexey Milovidov
734cebdf09 Non significant changes according to clang's -Weverything, part 1 [#CLICKHOUSE-2] 2018-06-03 19:51:31 +03:00
robot-metrika-test
a6693cffc0 Auto version update to [54386] 2018-06-01 23:16:46 +03:00
Alexey Zatelepin
89ebe9c49f add SYSTEM SYNC REPLICA before OPTIMIZE FINAL for test stability 2018-06-01 22:51:36 +03:00
Vitaliy Lyudvichenko
b46f2ad946 Simplified code via introducing states. [#CLICKHOUSE-2910] 2018-06-01 22:39:32 +03:00
alexey-milovidov
02f7277dc7
Update ReplicatedMergeTreeQueue.h 2018-06-01 21:06:43 +03:00
Vitaliy Lyudvichenko
2b179b560b Initialize external tables after enqueue query. [#CLICKHOUSE-2910] 2018-06-01 18:32:27 +03:00
alexey-milovidov
46cb408fd8
Update BackgroundSchedulePool.cpp 2018-06-01 16:35:16 +03:00
Alexey Zatelepin
af06ca5d3c Merge branch 'master' into replicated-mergetree-mutations 2018-06-01 16:21:14 +03:00
robot-metrika-test
6a57f55f0c Auto version update to [54385] 2018-06-01 15:43:56 +03:00
Alexey Milovidov
ba48e31507 Miscellaneous [#CLICKHOUSE-3753] 2018-06-01 15:37:56 +03:00
Alexey Milovidov
81a505ad64 Better name [#CLICKHOUSE-3753] 2018-06-01 15:37:50 +03:00
Alexey Milovidov
ce12f0b37c Fixed error in ZK library [#CLICKHOUSE-3753] 2018-06-01 15:37:39 +03:00
Vitaliy Lyudvichenko
549a6944d9 Better AsynchronousBlockInputStream in sync mode. [#CLICKHOUSE-2910] 2018-06-01 14:58:17 +03:00
Alexey Milovidov
3cb68784ad Miscellaneous [#CLICKHOUSE-3753] 2018-05-31 22:30:08 +03:00
Alexey Milovidov
515bd29df7 Better name [#CLICKHOUSE-3753] 2018-05-31 22:28:30 +03:00
Alexey Milovidov
6eb43fe9e9 Merge branch 'master' of github.com:yandex/ClickHouse 2018-05-31 22:26:46 +03:00
Alexey Milovidov
5dbd5b6d68 Fixed error in ZK library [#CLICKHOUSE-3753] 2018-05-31 22:26:21 +03:00
Alexey Zatelepin
8da32835d1 add needed file 2018-05-31 21:41:39 +03:00
Alexey Milovidov
848032ef16 Added test [#CLICKHOUSE-3726] 2018-05-31 21:28:47 +03:00
Alexey Milovidov
f45c479a8b Removed wrong query optimization [#CLICKHOUSE-3726] 2018-05-31 21:28:04 +03:00
Alexey Zatelepin
f63d2dc3c8 cannot take a number of unlocked abandonable lock 2018-05-31 20:28:17 +03:00
Alexey Milovidov
eeefe89acd Added test [#CLICKHOUSE-3092] 2018-05-31 20:06:07 +03:00
Vitaliy Lyudvichenko
0355f81f20 [WIP] Introduced query_thread_log. [#CLICKHOUSE-2910] 2018-05-31 18:54:08 +03:00
Alexey Zatelepin
c9bb986330 Merge branch 'master' into replicated-mergetree-mutations
Conflicts:
	dbms/src/Storages/MergeTree/AbandonableLockInZooKeeper.h
	dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h
	dbms/src/Storages/StorageReplicatedMergeTree.cpp
2018-05-31 18:52:42 +03:00
Alexey Zatelepin
dbf6949e0b support skipping mutations (just in case) [#CLICKHOUSE-3747] 2018-05-31 18:21:00 +03:00
Babacar Diassé
3d518e48b9 NULL check to allow insertion in distributed tables with Materialized views 2018-05-31 17:21:35 +03:00
Vitaliy Lyudvichenko
dc5de3bbec More optimal conflicts check in future_parts. [#CLICKHOUSE-2] 2018-05-31 17:14:50 +03:00
Vitaliy Lyudvichenko
888f5f4a24 Allow merges after CLEAR COLUMN. [#CLICKHOUSE-3]
Resolves #2315
2018-05-31 17:14:50 +03:00
Alexey Milovidov
0f2f2a043f Added README #2442 2018-05-31 16:35:22 +03:00
alexey-milovidov
5164ef91df
Merge pull request #2442 from shedx/master
benchmark data generator implemented
2018-05-31 16:33:23 +03:00
Alexey Zatelepin
d89221c458 easier init and deactivation of BackgroundSchedulePool tasks 2018-05-31 16:18:52 +03:00
alexey-milovidov
cdacf073e8
Merge pull request #2449 from proller/fix15
CLICKHOUSE-3587 Always write client error to log
2018-05-30 22:27:21 +03:00
proller
dc721ed721 Try make cache for getSampleBlock (#2313)
* Cache for getSampleBlock

* Update InterpreterSelectWithUnionQuery.cpp

* Update 00632_get_sample_block_cache.sql

* Add tests
2018-05-30 22:23:15 +03:00
proller
b1f4bf3199 CLICKHOUSE-3587 Always write client error to log 2018-05-30 19:15:35 +03:00
LiuYangkuan
7eb25ef55b fix Exception in issue#2439 2018-05-30 11:11:53 -04:00
morty
be0f0ecef9 Free hash after usage and dont use it at all if no readline present 2018-05-30 17:45:43 +03:00
Vadim
620b4a2587 fix tests 2018-05-30 02:21:20 +03:00
Vadim
31a6613105 fix error 2018-05-30 02:01:36 +03:00
Vadim
cf9c03a7bd add test 2018-05-29 22:18:05 +03:00
Vitaliy Lyudvichenko
e265e5c2ab Refactoring. [#CLICKHOUSE-2910] 2018-05-29 21:14:31 +03:00
proller
ead9493741 Build fixes 2018-05-29 20:54:48 +03:00
morty
12a68a9e23 Added all clickhouse query keywords 2018-05-29 20:04:53 +03:00
shedx
d9133cb74a benchmark data generator implemented 2018-05-29 19:14:03 +03:00
proller
221c833cfc Temporary use copy-headers from debian package 2018-05-29 18:13:30 +03:00
proller
0cd644f5ec Fix test (no zookeeper detection) 2018-05-29 15:48:36 +03:00
proller
060e965215
Try fix copy_headers (#2435) 2018-05-29 01:17:10 +03:00
proller
6a70df6d26
Again fix test 00505_secure with random ports (#2436) 2018-05-28 23:55:13 +03:00
proller
895b8e6515
Fix test 00505_secure with random ports (#2433) 2018-05-28 23:38:46 +03:00
Vitaliy Lyudvichenko
d81744fd06 Add more perfomance counters. [#CLICKHOUSE-2910] 2018-05-28 23:03:03 +03:00
Vadim
3aa24d39d4 Add comparison and fix functions 2018-05-28 23:01:20 +03:00
Vitaliy Lyudvichenko
aa40931824 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-05-28 20:22:27 +03:00
Alexey Zatelepin
f6c72f8e56 Merge branch 'master' into replicated-mergetree-mutations
Conflicts:
	dbms/src/Common/ActionBlocker.h
	dbms/src/Storages/MergeTree/ActiveDataPartSet.cpp
	dbms/src/Storages/MergeTree/ActiveDataPartSet.h
	dbms/src/Storages/MergeTree/MergeTreeData.h
	dbms/src/Storages/MergeTree/MergeTreeDataPart.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.h
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h
	dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp
	dbms/src/Storages/StorageMergeTree.cpp
	dbms/src/Storages/StorageReplicatedMergeTree.cpp
	dbms/src/Storages/StorageReplicatedMergeTree.h
2018-05-28 18:37:30 +03:00
Vitaliy Lyudvichenko
7615f5a09a More detail dignostic when parse JSONEachRow. [#CLICKHOUSE-2] 2018-05-28 14:40:07 +03:00
Vadim
79791ead1e Add startsWith and endsWith 2018-05-28 01:43:31 +03:00
proller
ab3ab7f52d clickhouse-test-server: use random ports (#2425)
* Fix internal compiler includes with new clang

* debug copy_headers.sh

* Fix copy_headers.sh

* Use copy-headers from cmake

* Update rules

* pbuildeR: use random ports for testing

* critical fix

* clickhouse-test-server: use random ports

* fix

* fix
2018-05-25 23:52:20 +03:00
Alexey Zatelepin
59fe12ed15 part log and metrics [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
aff6ad42ed support empty parts [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
2b80fbf972 DROP PARTITION now works with mutated parts [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
fdb33d8f3c execute mutation log entries [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
fd81cc7f66 mutation executor for MergeTree [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
1147e052e8 select and write part mutations to queue [#CLICKHOUSE-3747] 2018-05-25 23:13:00 +03:00
Alexey Zatelepin
41b7e533cd more honest constness in ActionBlocker 2018-05-25 23:06:36 +03:00
Alexey Zatelepin
2721daf782 don't select merges of parts with different mutation versions [#CLICKHOUSE-3747] 2018-05-25 23:06:28 +03:00
Alexey Zatelepin
4c661df146 notify relevant events directly from queue [#CLICKHOUSE-3747] 2018-05-25 23:06:23 +03:00
Alexey Zatelepin
42850f09b7 load mutations from ZK [#CLICKHOUSE-3747] 2018-05-25 23:06:15 +03:00
Alexey Zatelepin
49439aa2d2 write mutations to ZK [#CLICKHOUSE-3747] 2018-05-25 23:06:08 +03:00
Alexey Zatelepin
4ca3bf65f3 test getting abandonable lock in all partitions [#CLICKHOUSE-3747] 2018-05-25 23:05:10 +03:00
Alexey Zatelepin
9a32c76e76 parts versioning [#CLICKHOUSE-3687] 2018-05-25 23:04:07 +03:00
Alexey Zatelepin
2ab50c1f13 add test with inserts into Replicated tables from multiple threads [#CLICKHOUSE-3732] 2018-05-25 23:04:04 +03:00
Alexey Zatelepin
17437a95bf merge selection based on checking current inserts [#CLICKHOUSE-3732] 2018-05-25 23:03:56 +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
proller
68ba523b23 Compile and doc fixes (#2410)
* Try fix travis

* fix

* Fix clickhouse-local shared-split link

* fix

* fix

* fix

* Build fixes

* Fix tinfo

* fix

* tinfo -> termcap

* termcap fix

* Better llvm version detect

* fix

* Debian postinst fix
Tests: use /usr/local if exists

* Compile and doc fixes

* fix

* fix

* fix

* macos fixes

* fix

* wip

* Update demangle.h

* Update demangle.cpp
2018-05-25 21:13:48 +03:00
alexey-milovidov
ded9df1bed
Merge pull request #2423 from amosbird/fancy
Let's make it fancier (function try catch block).
2018-05-25 21:08:28 +03:00
proller
f1fdea74be pbuilder: use random ports for testing (#2424)
* Fix internal compiler includes with new clang

* debug copy_headers.sh

* Fix copy_headers.sh

* Use copy-headers from cmake

* Update rules

* pbuildeR: use random ports for testing

* critical fix
2018-05-25 21:05:30 +03:00
morty
dcff1bb79d First implementation 2018-05-25 19:52:50 +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
5665709bb9 Use copy-headers from cmake (#2412)
* Fix internal compiler includes with new clang

* debug copy_headers.sh

* Fix copy_headers.sh

* Use copy-headers from cmake

* Update rules
2018-05-25 01:20:37 +03:00
proller
87e8d8be5a
Fix internal compiler includes with new clang (#2406) 2018-05-24 15:40:02 +03:00
Vitaliy Lyudvichenko
42d5c6925c Removed bad test. [#CLICKHOUSE-2] 2018-05-23 21:29:35 +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
559d944412 Fixed build. 2018-05-21 14:52:02 +03:00
Nikolai Kochetov
937cb2db29 Merged with master. 2018-05-21 14:38:50 +03:00
Nikolai Kochetov
aeaec2e6d7 Renamed StringRangeHash to StringRangePointersHash and added StringRangePointersEqualTo. 2018-05-21 14:18:11 +03:00
zhang2014
3afb33593a ISSUES-2260 add some improvements 2018-05-21 13:26:35 +08:00
zhang2014
fa865636ce ISSUES-2259 add comment & move delete database metadata implementation 2018-05-21 11:38:46 +08:00
zhang2014
c8f655c1aa ISSUES-2259 fix the test after the merge master 2018-05-21 11:38:46 +08:00
zhang2014
6613e56784 ISSUES-2259 support truncate syntax 2018-05-21 11:38:46 +08: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
c932ce60c0 Added test with dummy recursive alias. [#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
proller
22d6afd2ad Debian postinst fix
Tests: use /usr/local if exists
2018-05-18 21:26:44 +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
robot-metrika-test
84532a2a30 Auto version update to [54383] 2018-05-18 02:16:00 +03:00
Vitaliy Lyudvichenko
537c564d02 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:05:39 +03:00
Vitaliy Lyudvichenko
6d854ee608 Fixed incorrect failed OP detection in ZooKeeper. [#CLICKHOUSE-2] 2018-05-18 02:05:22 +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
proller
445f8800c3
Build fixes [WIP] (#2374) 2018-05-17 20:55:07 +03:00
Vitaliy Lyudvichenko
bd4d8a6766 Add profile events and settings logging. [#CLICKHOUSE-2910] 2018-05-17 19:01:41 +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
d0341077ee Added test with bug caused set indexing by ptr. [#CLICKHOUSE-3734] 2018-05-17 17:54:57 +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
abc73eb6ba Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-05-15 21:35:52 +03:00
Vitaliy Lyudvichenko
412c154045 Better configs for an integration test. [#CLICKHOUSE-2] 2018-05-15 21:25:54 +03:00
Nikolai Kochetov
664171a003 Added test for in syntax. 2018-05-15 18:38:04 +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
04c734d785 delete unused space 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
3e79e8974f Addition to prev. revision [#CLICKHOUSE-2] 2018-05-15 00:37:56 +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
de6c48f4df Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910 2018-05-14 19:09:00 +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
Alexey Milovidov
1fa8a9a6df Fixed unclean code #2352 2018-05-13 13:05:34 +03:00
Alexey Milovidov
cecffcd5ab Apply ./utils/check-style/fix-style #2352 2018-05-13 12:36:51 +03:00
Alexey Milovidov
c79d4fd0fd Merge branch 'feature/funnelWindow' of https://github.com/clickhousecn/ClickHouse into clickhousecn-feature/funnelWindow 2018-05-13 12:34:23 +03:00
Alexey Milovidov
8690d596b0 Miscellaneous [#CLICKHOUSE-2] 2018-05-13 12:32:56 +03:00
alexey-milovidov
9043820565
Update AggregateFunctionWindowFunnel.h 2018-05-13 12:31:13 +03:00
sundy-li
c56e9967f2 Add tests && docs 2018-05-13 16:18:35 +08:00
sundy-li
64b1b6d764 Add windowFunnel AggregateFunction 2018-05-12 23:49:17 +08:00
proller
0b386381ac Build fixes 2018-05-11 21:00:24 +03:00
Winter Zhang
adbbbb3c48 ISSUES-2343 fix failed test (#2344) 2018-05-11 17:35:32 +03:00
proller
efe661b620 Build fixes (#2347)
* Try fix travis

* fix

* Fix clickhouse-local shared-split link

* fix

* fix

* fix

* Build fixes

* Fix tinfo

* fix

* tinfo -> termcap
2018-05-11 17:16:16 +03:00
Vitaliy Lyudvichenko
d292190d4b Try to fix broken test. [#CLICKHOUSE-2] 2018-05-11 16:53:39 +03:00
Alexey Milovidov
715a9a7233 Miscellaneous [#CLICKHOUSE-2] 2018-05-11 14:04:12 +03:00
Alexey Milovidov
471eb5c8ca Removed useless file [#CLICKHOUSE-2] 2018-05-11 03:49:06 +03:00
Alexey Milovidov
8b05841142 Removed useless files [#CLICKHOUSE-2] 2018-05-11 03:08:49 +03:00
Alexey Milovidov
294b468a32 Avoid warnings in LLVM code #2277 2018-05-11 02:25:46 +03:00
Alexey Milovidov
582085bf15 Be more conservative about new feature #2277 2018-05-11 00:29:44 +03:00
Alexey Milovidov
65a08210ac Merge branch 'llvm-jit' of https://github.com/pyos/ClickHouse into pyos-llvm-jit 2018-05-10 22:09:47 +03:00
pyos
e5ebc24657 Revert the part of bd332b that moved a read after std::move. 2018-05-10 21:19:41 +03:00
pyos
1718e575a7 Bridge between incompatible LLVM APIs 2018-05-10 20:31:24 +03:00
Alexey Milovidov
4d9088d3d4 Merge branch 'llvm-jit' of https://github.com/pyos/ClickHouse into pyos-llvm-jit 2018-05-10 18:23:53 +03:00
Alexey Milovidov
d3b7bafedf Miscellaneous #2277 2018-05-10 18:22:54 +03:00
Alexey Milovidov
93352237d9 Better exception message [#CLICKHOUSE-2] 2018-05-10 18:20:19 +03:00
pyos
c123be1fe4 Fix incorrect phi node edges in if 2018-05-10 17:49:38 +03:00
pyos
6d2259f2cf Implement jit for comparisons, except for (double, int).
That one has some edge cases which I can't be bothered to code.
2018-05-10 17:03:18 +03:00
pyos
bd332b9171 Allow calling into libc from jitted code.
Mostly for intrinsics like memcpy/memset/memmove, which are inserted
during optimization by LLVM itself. (With a null resolver, a compiled
version of something like `Uint64 < 0` would segfault.)
2018-05-10 17:00:32 +03:00
pyos
4776168c3b Merge branch 'master' of https://github.com/yandex/ClickHouse into llvm-jit 2018-05-10 13:25:26 +03:00
pyos
4abcef13a1 Merge branch 'pyos-llvm-jit' of https://github.com/yandex/ClickHouse into llvm-jit 2018-05-10 13:19:49 +03:00
Vitaliy Lyudvichenko
990bcbb007 Add test for --help. [#CLICKHOUSE-3713] 2018-05-10 02:15:06 +03:00
Vitaliy Lyudvichenko
b4025e312e Use neat boost::program_options, more parameters. [#CLICKHOUSE-3713] 2018-05-10 02:15:06 +03:00
Vitaliy Lyudvichenko
5704de8774 Fixed settings passing in clickhouse-local and tmp dirs. [#CLICKHOUSE-3713] 2018-05-10 02:15:06 +03:00
Alexey Milovidov
6f69c41bdd Fixed error #2277 2018-05-10 01:29:23 +03:00
Alexey Milovidov
72ab282bca Removed hack #2277 2018-05-10 00:03:03 +03:00
Alexey Milovidov
f82ef70b4f Updated submodules #2277 2018-05-09 23:36:33 +03:00
Alexey Milovidov
3a059b82d2 Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit 2018-05-09 23:34:20 +03:00
Alexey Milovidov
4d2989e42f Added support for bundled LLVM libraries #2277 2018-05-09 23:31:03 +03:00
Alexey Milovidov
845d6372e7 Fixed linking of tests #2277 2018-05-09 21:33:29 +03:00
Vitaliy Lyudvichenko
864dc0546b Add requested changes. [#CLICKHOUSE-3645] 2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
8746149965 More persistent directory names for replicas. [#CLICKHOUSE-2] 2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
1f05000c2c Better naming. [#CLICKHOUSE-3645] 2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
704583968f Do not save resolved addresses in Connections. [#CLICKHOSUE-2]
Add disable_internal_dns_cache main config option.
2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
8fd72a6777 Add automatic DROP DNS CACHE, update of SYSTEM queries. [#CLICKHOUSE-3645] 2018-05-09 07:55:08 +03:00
Alexey Milovidov
bd79242688 Better #2328 2018-05-09 07:49:34 +03:00
alexey-milovidov
1e9edac617
Merge pull request #2328 from proller/fix15
Build fixes (gcc8)
2018-05-09 07:25:18 +03:00
Alexey Milovidov
b442cd9c64 Miscellaneous (no effect) [#CLICKHOUSE-2] 2018-05-09 07:22:30 +03:00
Alexey Milovidov
14223a88a3 Fixed build [#CLICKHOUSE-2] 2018-05-09 07:21:40 +03:00
Alexey Milovidov
6efcdc5a6c Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit 2018-05-09 04:55:49 +03:00
proller
eb772b8001 gcc8 fixes (memset, uncaught_exception) 2018-05-08 22:44:54 +03:00
proller
b6ffdd93e1 Ignore werror in Core/Field.h 2018-05-08 17:46:55 +03:00
pyos
f060883c4b Fix a typo 2018-05-08 16:02:32 +03:00
Alexey Milovidov
6e2028d921 Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit 2018-05-08 16:01:56 +03:00
Alex Zatelepin
7244dfe1f5
better detached part name 2018-05-08 15:47:06 +03:00
robot-metrika-test
10f68290ee Auto version update to [54382] 2018-05-08 14:40:41 +03:00
alexey-milovidov
fd9938cc46 Update getNumberOfPhysicalCPUCores.cpp 2018-05-08 12:43:45 +03:00
Atri Sharma
14cc530833 Update based on comments 2018-05-08 12:43:45 +03:00
Atri Sharma
22530c38e4 Add Rounding to nearest number 2018-05-08 12:43:45 +03:00
Atri Sharma
9b5ecc83ac Fix quota issue 2018-05-08 12:43:45 +03:00
Atri Sharma
cbaf78df4f Implement CGroups Limit for CPU 2018-05-08 12:43:45 +03:00
Alexey Milovidov
14649ad5e6 Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit 2018-05-08 00:27:13 +03:00
Alexey Milovidov
3453bf577a Merge branch 'llvm-jit' of github.com:pyos/ClickHouse into pyos-llvm-jit 2018-05-08 00:25:13 +03:00
Alexey Milovidov
43f0b419ea Removed useless code [#CLICKHOUSE-2] 2018-05-08 00:01:15 +03:00
Alexey Zatelepin
6047db7ea2 fix removing failed quorum parts at startup (tryGetChilden actually returns error code, not success flag) 2018-05-07 23:31:28 +03:00
pyos
2d70d9d601 Implement jit for numeric if and multiIf 2018-05-07 23:17:22 +03:00
pyos
1433e6e849 Extract native bool cast; generalize number cast to nullables 2018-05-07 22:21:23 +03:00
Alexey Milovidov
089ef3277f Removed useless code [#CLICKHOUSE-2] 2018-05-07 19:30:47 +03:00
pyos
cfc41e1a64 Copy changes from LLVM {5,6} CMakeLists to 7 2018-05-07 19:14:00 +03:00
pyos
f070f73220 Merge branch 'master' of https://github.com/yandex/ClickHouse into llvm-jit
Conflicts:
	debian/.pbuilderrc
2018-05-07 19:11:48 +03:00
pyos
32fd123010 Select an *exact* target machine, not an approximation.
Required for enabling advanced features such as AVX and AVX2.

Code mostly copied from LLVM's tools/opt/opt.cpp.
2018-05-07 19:06:13 +03:00
Alexey Milovidov
a611fbd143 Merge branch 'master' of github.com:yandex/ClickHouse into pyos-llvm-jit 2018-05-07 19:00:41 +03:00
proller
398097d24a Build fixes (#2323)
* Build fixes

* Fixes

* remove libzookeeper-mt-dev

* fix

* fix

* wrong

* try fix

* fix

* Update CMakeLists.txt
2018-05-07 18:59:52 +03:00
pyos
686c1f73fd Implement IntExp2Impl::compile 2018-05-07 16:36:07 +03:00
pyos
b08dbf2b22 Remove a redundant target_compile_options 2018-05-07 16:33:07 +03:00
pyos
d4b5c01a1e Fix addModule check for LLVM < 7
It returns `Expected`, so false-y is a failure. (In >= 7 it returns
an `Error`, so truth-y is a failure. Wow, that's confusing.)
2018-05-07 16:04:07 +03:00
pyos
0e09138405 Assume output and one input of LLVMFunction is non-const 2018-05-07 16:03:26 +03:00
Alexey Milovidov
4c1c2dbdff Merge remote-tracking branch 'origin/master' into pyos-llvm-jit 2018-05-07 13:44:15 +03:00
Alexey Milovidov
01bbf650f8 Build fixes #2277 2018-05-07 11:59:24 +03:00
Alexey Milovidov
147919928d Better error checks #2277 2018-05-07 09:49:56 +03:00
Alexey Milovidov
d1b4b5c836 Fixed error; added ProfileEvent #2277 2018-05-07 09:23:18 +03:00
Alexey Milovidov
e06223cbb8 Style [#CLICKHOUSE-2] 2018-05-07 05:15:47 +03:00
Alexey Milovidov
b8a6261bbc Style [#CLICKHOUSE-2] 2018-05-07 05:15:47 +03:00
Alexey Milovidov
a916d2760e Style [#CLICKHOUSE-2] 2018-05-07 05:15:24 +03:00
Alexey Milovidov
fd0ee5c6b1 Style [#CLICKHOUSE-2] 2018-05-07 05:14:24 +03:00
Alexey Milovidov
02f8757bef Applied clang-format #2272 2018-05-07 05:09:44 +03:00
Alexey Milovidov
b2edcfaa50 Applied clang-format #2272 2018-05-07 05:09:29 +03:00
Alexey Milovidov
723cc53948 Applied clang-format to some imported code [#CLICKHOUSE-2] 2018-05-07 05:08:38 +03:00
Alexey Milovidov
c4ff517b8e Fixed style [#CLICKHOUSE-2] 2018-05-07 05:08:38 +03:00
Alexey Milovidov
1dc1ccc1d8 Applied clang-format #2272 2018-05-07 05:08:38 +03:00
Alexey Milovidov
e26abf0ab4 Applied clang-format to some imported code [#CLICKHOUSE-2] 2018-05-07 05:08:38 +03:00
Alexey Milovidov
59bc8e1b48 Applied clang-format to some imported code [#CLICKHOUSE-2] 2018-05-07 05:07:47 +03:00
Alexey Milovidov
619a0dbd8c Fixed style [#CLICKHOUSE-2] 2018-05-07 05:07:17 +03:00
Alexey Milovidov
90427db854 Applied clang-format #2272 2018-05-07 05:06:55 +03:00
Alexey Milovidov
598c7fddb7 Applied clang-format to some imported code [#CLICKHOUSE-2] 2018-05-07 05:06:00 +03:00
Alexey Milovidov
94369e55d3 Fixed style a bit [#CLICKHOUSE-2] 2018-05-07 05:01:29 +03:00
Alexey Milovidov
956128a67a Fixed style a bit [#CLICKHOUSE-2] 2018-05-07 05:01:11 +03:00
Alexey Milovidov
a687c90100 Allow to link with LLVM if it was compiled without RTTI #2277 2018-05-07 03:00:12 +03:00
proller
81e2467283 Squashed commit of the following:
commit f1c193ea483872fee44e2969fc79a9b111a61d3d
Author: proller <proller@github.com>
Date:   Sun May 6 16:28:46 2018 +0300

    Clang5 build fix

commit c0ff4234747858dfd7741c90a5c77e9f8d47cd40
Merge: 852e11b 71814a3
Author: proller <proller@github.com>
Date:   Sun May 6 16:04:26 2018 +0300

    Merge remote-tracking branch 'upstream/master' into fix15

commit 852e11b409
Author: proller <proller@github.com>
Date:   Sat May 5 20:15:40 2018 +0300

    Try master

commit 2a5cebb5e5
Author: proller <proller@github.com>
Date:   Sat May 5 19:34:55 2018 +0300

    Try fix contrib/capnproto error with new compilers

commit bbfe581683
Merge: f493474 634ba89
Author: proller <proller@github.com>
Date:   Sat May 5 19:25:01 2018 +0300

    Merge remote-tracking branch 'upstream/master' into fix15

commit f49347469d
Author: proller <proller@github.com>
Date:   Sat May 5 15:31:47 2018 +0300

    Build fixes
2018-05-06 16:29:51 +03:00
Alexey Milovidov
71814a33d5 Fixed code #2272 2018-05-06 14:34:31 +03:00
Alexey Milovidov
9da677719c Fixed code #2272 2018-05-06 14:34:16 +03:00
Alexey Milovidov
daed1ea0dc Fixed code #2272 2018-05-06 14:33:19 +03:00
Alexey Milovidov
63625c0a30 Fixed code #2272 2018-05-06 14:33:03 +03:00
Alexey Milovidov
ee019183d2 Fixed code #2272 2018-05-06 14:31:14 +03:00
Alexey Milovidov
04d1c8c449 Fixed code #2272 2018-05-06 14:29:17 +03:00
Alexey Milovidov
b580d1c487 Allow to build with clang 7 2018-05-06 14:16:38 +03:00
Alexey Milovidov
6c7f896f9f Miscellaneous #2277 2018-05-06 13:42:35 +03:00
Alexey Milovidov
69c67b4cd4 Addition to prev. revision #2277 2018-05-06 12:37:16 +03:00
Alexey Milovidov
c4a26764ce Miscellaneous #2277 2018-05-06 12:32:36 +03:00
Alexey Milovidov
f495d8cfa5 Removed deprecated CMake function #2277 2018-05-06 12:30:35 +03:00
Alexey Milovidov
b1b95454cc Make warning suppressions more local #2277 2018-05-06 12:29:57 +03:00
Alexey Milovidov
53f03a4909 Merge branch 'llvm-jit' of https://github.com/pyos/ClickHouse into pyos-llvm-jit 2018-05-06 12:22:42 +03:00
Alexey Milovidov
f589149189 Fixed build of embedded compiler with clang 7 [#CLICKHOUSE-2] 2018-05-06 12:04:10 +03:00
Alexey Milovidov
a8deddbc68 Removed useless code [#CLICKHOUSE-2] 2018-05-06 09:52:23 +03:00
Alexey Milovidov
4bc5163b80 Fixed build with clang 7 #2277 2018-05-06 09:35:59 +03:00
Alexey Milovidov
a227a984b5 Fixed warning found by clang 7 [#CLICKHOUSE-2] 2018-05-06 09:29:57 +03:00
Alexey Milovidov
a5dd90c35e Added a patch for cc1as_main from clang7 #2277 2018-05-06 09:03:36 +03:00
Alexey Milovidov
2ba241b06e Fixed build of embedded compiler with clang 7 #2277 2018-05-06 09:03:05 +03:00
Alexey Milovidov
a0f1b1f1ee Whitespace [#CLICKHOUSE-2] 2018-05-06 05:21:59 +03:00
proller
634ba89f90 Build fixes 2018-05-05 15:34:17 +03:00
pyos
88bb2f7c25 Resolve symbols right after compiling.
llvm::orc::RTDyldObjectLinkingLayer::findSymbol appears to be non-threadsafe.
2018-05-05 00:38:17 +03:00
proller
7781492624 Fix user name on distributed queries (#2292)
* Fix user name on distributed queries

* wip

* fix
2018-05-05 00:21:23 +03:00
Nikolai Kochetov
b45b2b9ea5 added DataTypeWithDictionary serialization per granule 2018-05-04 23:32:26 +03:00
Nikolai Kochetov
6fe65a4740 added DataTypeWithDictionary serialization per granule 2018-05-04 23:17:27 +03:00
Nikolai Kochetov
361d1193cb added DataTypeWithDictionary serialization per granule 2018-05-04 23:15:56 +03:00
Nikolai Kochetov
ad9cdee06a added DataTypeWithDictionary serialization per granule 2018-05-04 23:14:52 +03:00
Nikolai Kochetov
387227409a added DataTypeWithDictionary serialization per granule 2018-05-04 23:13:29 +03:00
Nikolai Kochetov
bfc42259cb added DataTypeWithDictionary serialization per granule 2018-05-04 23:11:32 +03:00
Nikolai Kochetov
5b0ac680ec added DataTypeWithDictionary serialization per granule 2018-05-04 22:38:41 +03:00
Nikolai Kochetov
5e6d105fd5 added DataTypeWithDictionary serialization per granule 2018-05-04 22:19:12 +03:00
Nikolai Kochetov
d13780d3ef added DataTypeWithDictionary serialization per granule 2018-05-04 22:12:51 +03:00
Nikolai Kochetov
afb1f6dd64 added DataTypeWithDictionary serialization per granule 2018-05-04 22:11:41 +03:00
Nikolai Kochetov
726780868e added DataTypeWithDictionary serialization per granule 2018-05-04 21:56:28 +03:00
Nikolai Kochetov
25f0f2f2d1 added DataTypeWithDictionary serialization per granule 2018-05-04 21:54:58 +03:00
Nikolai Kochetov
310931a8a5 added DataTypeWithDictionary serialization per granule 2018-05-04 19:28:53 +03:00
Nikolai Kochetov
535e883770 Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 15:17:53 +03:00
Nikolai Kochetov
0897d2a9c4 Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 15:11:57 +03:00
Nikolai Kochetov
af5475b77c Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 14:50:42 +03:00
Nikolai Kochetov
67769ef333 Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 14:47:39 +03:00
Nikolai Kochetov
f4627af23f Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 14:44:52 +03:00
Nikolai Kochetov
13ba167dce Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 14:40:36 +03:00
Nikolai Kochetov
530b99cee5 Added ConvertColumnWithDictionaryToFullBlockInputStream. 2018-05-04 14:39:15 +03:00
Nikolai Kochetov
cf60dba414 Fixed ColumnWithDictionsry insert functions. Added insertFromFullColumn and insertRangeFromFullColumn. 2018-05-04 13:59:19 +03:00
Nikolai Kochetov
c61049dc59 Fixed ColumnWithDictionsry insert functions. Added insertFromFullColumn and insertRangeFromFullColumn. 2018-05-04 13:58:28 +03:00
Nikolai Kochetov
9c696f40b9 Fixed ColumnWithDictionsry insert functions. Added insertFromFullColumn and insertRangeFromFullColumn. 2018-05-04 13:48:09 +03:00
Nikolai Kochetov
040c5acc35 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 20:47:29 +03:00
Nikolai Kochetov
5e076ec594 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 20:46:12 +03:00
Nikolai Kochetov
ec46b915e8 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 20:34:17 +03:00
KochetovNicolai
e0addcdfec
Update ColumnVector.cpp
Fixed memset bytes count.
2018-05-03 20:29:53 +03:00
Nikolai Kochetov
e2416cfa6f Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 20:25:10 +03:00
Nikolai Kochetov
7788d30dca Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 20:23:18 +03:00
Nikolai Kochetov
5d1c25df25 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 19:28:14 +03:00
Nikolai Kochetov
99602c1633 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 18:56:57 +03:00
Nikolai Kochetov
153fda001e Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 18:20:58 +03:00
Nikolai Kochetov
ed83798dd2 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 18:17:10 +03:00
Nikolai Kochetov
04a056f804 Moved DataTypeWithDictionary implementation to DataTypeWithDictionary.cpp 2018-05-03 17:53:35 +03:00
Nikolai Kochetov
98ff5b0a55 Register DataTypeWithDictionary in DataTypeFactory 2018-05-03 17:00:24 +03:00
Nikolai Kochetov
0806b957aa added IColumn::select 2018-05-03 16:45:11 +03:00
pyos
a286dea2e1 Don't waste time jit-compiling isolated functions.
This is already done ahead of time when building the executable.
2018-05-03 16:34:42 +03:00
Vitaliy Lyudvichenko
63cc34d3f6 Fixed incorrect failed OP detection in ZooKeeper. [#CLICKHOUSE-2] 2018-05-03 16:34:19 +03:00
pyos
23bbf632e5 If all inputs to a jitted function are constant, return a constant 2018-05-03 16:33:40 +03:00
Nikolai Kochetov
ce3b588de0 added IColumn::select 2018-05-03 16:19:50 +03:00
Nikolai Kochetov
db23e0fcb4 added IColumn::select 2018-05-03 15:53:18 +03:00
Nikolai Kochetov
ba0a5af437 added IColumn::select 2018-05-03 15:51:26 +03:00
Nikolai Kochetov
97fbd37cb0 added IColumn::select 2018-05-03 15:47:14 +03:00
Nikolai Kochetov
4ac8078c82 added IColumn::select 2018-05-03 15:02:36 +03:00
Nikolai Kochetov
882ddff7d4 added IColumn::select 2018-05-03 14:59:01 +03:00
Nikolai Kochetov
b662dcdd0a added IColumn::select 2018-05-03 13:53:00 +03:00
pyos
accbbdb9e3 Add a setting that disables jit-compilation 2018-05-03 00:48:20 +03:00
pyos
900b92f744 Merge API changes from upstream 2018-05-01 22:52:33 +03:00
pyos
27f12eeaa3 Merge branch 'master' of https://github.com/yandex/ClickHouse into llvm-jit 2018-05-01 22:51:37 +03:00
alexey-milovidov
52c58d3a82
Merge pull request #2308 from ilyshnikova/master
Without std::move
2018-05-01 12:35:57 -07:00
Tsarkova Anastasia
3a36569439 Without std::move 2018-05-01 21:34:42 +02:00
alexey-milovidov
81161be755
Merge pull request #2307 from ilyshnikova/master
Without std::move
2018-05-01 12:32:37 -07:00
Tsarkova Anastasia
8245dc3f6a Without std::move 2018-05-01 21:31:01 +02:00
alexey-milovidov
cb221cee29
Merge pull request #2306 from ilyshnikova/master
struct instead of class
2018-05-01 12:20:03 -07:00
Tsarkova Anastasia
ba901ebc3f struct instead of class 2018-05-01 21:18:13 +02:00
alexey-milovidov
9be89bd0d4
Merge pull request #2272 from ilyshnikova/master
Conditional computations.
2018-05-01 12:08:46 -07:00
Tsarkova Anastasia
9412222f55 Add test. 2018-05-01 15:33:39 +02:00
Tsarkova Anastasia
7c9741ed5b Fix style. 2018-05-01 15:31:38 +02:00
Tsarkova Anastasia
fe0753a128 Minor fixes, adding test case. 2018-05-01 15:24:43 +02:00
pyos
7483ed24f0 Implement jit for logic functions 2018-05-01 14:43:15 +03:00
Tsarkova Anastasia
210a389592 Getting rid of measure action, other small fixes applied. 2018-04-30 21:33:32 +02:00
pyos
e4ace21f24 Remove laziness on nullable arguments from default implementation
It breaks semantics, sadly.
2018-04-30 15:35:32 +03:00
pyos
4970b06b57 Remove outdated comments 2018-04-30 02:21:45 +03:00
pyos
039c377a7a Work around a bug in llvm::IRBuilder::CreateMaxNum 2018-04-30 02:07:39 +03:00
pyos
059bbcacca Implement jit for most arithmetic functions, remove the test function 2018-04-30 01:43:02 +03:00
pyos
7529aa55a4 Fix a bug that limited inlining depth at 2 2018-04-30 01:23:27 +03:00
Tsarkova Anastasia
a99ff6f380 Fix tests. 2018-04-29 23:48:33 +02:00
Tsarkova Anastasia
9286c98789 Fix build. 2018-04-29 23:13:01 +02:00
pyos
b4c7bee12b Merge branch 'master' of https://github.com/yandex/ClickHouse into llvm-jit 2018-04-29 23:22:18 +03:00
pyos
72f2fea837 Extract the code that compiles a single IFunctionBase from LLVMFunction 2018-04-29 21:03:58 +03:00
pyos
1be009d485 Remove getDefaultNativeValue in favor of llvm::Constant::getNullValue 2018-04-29 20:32:30 +03:00
Tsarkova Anastasia
4bce6035b1
Merge branch 'master' into master 2018-04-29 18:02:34 +02:00
Tsarkova Anastasia
2c96b1c684 Add comments. Change projection restoring function. 2018-04-29 15:49:58 +02:00
pyos
01aaf99d75 Use C++17 fold expressions to simplify FunctionsArithmetic.h 2018-04-29 16:04:28 +03:00
pyos
fb577b1049 Hide the whole JIT API behind #if USE_EMBEDDED_COMPILER
Kind ugly, but at least the conditionals are used consistently now.
2018-04-29 13:48:16 +03:00
pyos
4641e2960f Move ExpressionActions::compileFunctions to ExpressionJIT.cpp.
This means ExpressionJIT.h only has to expose one function.
2018-04-29 13:39:01 +03:00
pyos
08345628a2 Support {Date,DateTime,Interval,UUID,FixedString} in compiled functions 2018-04-28 18:55:48 +03:00
pyos
6e05c5ace4 compilePrologue() isn't particularly useful after all.
Basically the only thing it can do that compile() can't is create 'alloca'
instructions, which are only needed to get pointers to stack variables.
Given that dynamically-sized allocations aren't possible with this API,
such pointers are probably completely pointless (heh).
2018-04-28 18:11:23 +03:00
pyos
1ffc2a0775 Make LLVMFunction monotonicity computation shorter (and fix a typo-bug) 2018-04-28 17:41:24 +03:00
pyos
a1eb938ed2 Inline nullable number constants into compiled code.
Also, protect against some segfaults during compilation by checking
correctness of the type returned by compile().
2018-04-28 17:12:00 +03:00
pyos
ccc895d162 Represent nullable types as pairs instead of pointers.
Turns out LLVM has insertvalue & extractvalue for struct in registers. This is
faster than pointers because null checks are now subject to more optimizations.
2018-04-28 14:12:23 +03:00
pyos
5c75342d54 Check nativity of all types *before* calling isCompilable 2018-04-28 01:03:52 +03:00
pyos
979c4d959f Let jit-compilable functions deal with NULLs themselves.
And provide a default implementation of compile() for nullable columns
that actually works and is consistent with execute().
2018-04-28 00:34:27 +03:00
alexey-milovidov
093c054b1f
Merge pull request #2263 from luc1ph3r/arbitrary-csv-delimiter
Support an arbitrary CSV delimiter
2018-04-27 13:13:09 -07:00
alexey-milovidov
96e2dfa790
Update SettingsCommon.h 2018-04-27 13:12:26 -07:00
pyos
49b61cd27d Refactor LLVMFunction to make extending to DataTypeNullable easier 2018-04-27 18:44:38 +03:00
Ivan Zhukov
a9653e5759 Add a test for CSV input and output formatting 2018-04-27 03:49:44 +03:00
proller
bef63d1dd0 Test: fill CLICKHOUSE_CONFIG from args.configserver 2018-04-26 23:02:10 +03:00
Vitaliy Lyudvichenko
e152f223c9 Fix nodes leak in case of session expiration. [#CLICKHOUSE-2] 2018-04-26 22:46:45 +03:00
Vitaliy Lyudvichenko
ed25e6d634 Fixed tests isolation. [#CLICKHOUSE-2] 2018-04-26 22:46:45 +03:00
pyos
a9e0b6de9f Use system LLVMConfig.cmake with minor tweaks.
Should fix Travis build, finally.
2018-04-26 22:45:39 +03:00
Vitaliy Lyudvichenko
af82c78a45 Fix nodes leak in case of session expiration. [#CLICKHOUSE-2] 2018-04-26 22:43:51 +03:00
Vitaliy Lyudvichenko
4695511b58 Fixed tests isolation. [#CLICKHOUSE-2] 2018-04-26 22:21:32 +03:00
Ivan Zhukov
4094e21be5 Code review 2018-04-26 20:41:43 +03:00
pyos
b4d527ee85 Inline compile-time constants into jitted functions. 2018-04-26 14:30:16 +03:00
pyos
c95f8a669f Throw in untyped versions of IFunction::{isCompilable,compile}
IFunction inherits IFunctionBase for some reason despite not actually knowing
the types, so these two methods make no sense. The versions with DataTypes&
as an argument should be used instead.
2018-04-25 20:07:19 +03:00
pyos
9ae5fe1b6d Minor style fixes 2018-04-25 18:33:58 +03:00
pyos
854f85dd9b Put #if USE_EMBEDDED_COMPILER in ExpressionJIT.{cpp,h} 2018-04-25 18:19:22 +03:00
pyos
d59b0d7ec0 Add IColumn::getRawData to fixed-contiguous columns 2018-04-25 18:16:48 +03:00
pyos
6c275c27d0 Remove an unnoticed debug return 2018-04-25 16:44:24 +03:00
pyos
c419d5a1a5 Poison only columns actually used by ARRAY_JOIN and JOIN 2018-04-25 16:01:06 +03:00
pyos
5482282943 Implement informational methods for LLVMFunction 2018-04-25 16:01:06 +03:00
pyos
af7ecd4c4a Move function compilation before insertion of REMOVE_COLUMNs 2018-04-25 16:01:06 +03:00
pyos
162a0c8b33 Fix some comments' style 2018-04-25 16:01:06 +03:00
pyos
0da110234c Do not compile the jit if USE_EMBEDDED_COMPILER is disabled 2018-04-25 16:01:00 +03:00
pyos
1bece1de46 Support nullable columns (with default behavior) in jitted functions 2018-04-25 13:37:26 +03:00
pyos
4bd0906613 Fix some comments 2018-04-25 13:37:26 +03:00
pyos
3789eba5c4 Fix CMakeFiles syntax 2018-04-25 13:37:26 +03:00
pyos
2b1be27b1b Add missing option to CMakeFiles.txt 2018-04-25 13:37:26 +03:00
pyos
df2d2e0b25 Tweak the jit compilation API to be more amenable to lazy computation 2018-04-25 13:37:26 +03:00
pyos
b2077a466a Inline jit-compilable functions into other jit-compilable functions 2018-04-25 13:37:26 +03:00
pyos
3810173103 Remove IFunction::createResultColumn.
Given that the list of supported types is hardcoded in
LLVMContext::Data::toNativeType, this method is redundant because
LLVMPreparedFunction can create a ColumnVector itself.
2018-04-25 13:37:26 +03:00
pyos
6b526f784c Enable the default set of LLVM optimization passes
I honestly can't tell if they work. LLVM has surprisingly bad API documentation.
2018-04-25 13:37:26 +03:00
pyos
8c8a8f9c0f Extend the test jit-compilable function to arbitrary numbers 2018-04-25 13:37:25 +03:00
pyos
5f1bf11ede Implement a loop over the columns in jit-compiled code 2018-04-25 13:37:25 +03:00
pyos
407008a4d9 Separate jit-compilability checks from actual compilation 2018-04-25 13:37:25 +03:00
pyos
e96a5e8344 Implement JIT compilation, without a loop for now.
It actually seems to work, so long as you only have one row that is. E.g.

    > select something(cast(number + 6 as Float64), cast(number + 2 as Float64)) from system.numbers limit 1';
    8

with this IR:

    define void @"something(CAST(plus(number, 6), 'Float64'), CAST(plus(number, 2), 'Float64'))"(void**, i8*, double*) {
    entry:
      %3 = load void*, void** %0
      %4 = bitcast void* %3 to double*
      %5 = load double, double* %4
      %6 = getelementptr void*, void** %0, i32 1
      %7 = load void*, void** %6
      %8 = bitcast void* %7 to double*
      %9 = load double, double* %8
      %10 = fadd double %5, %9
      store double %10, double* %2
      ret void
    }
2018-04-25 13:37:25 +03:00
pyos
b398ffbaba Map all number types to LLVM types.
The example from the previous commit doesn't need a cast to Float64 anymore.
2018-04-25 13:37:25 +03:00
pyos
851684de51 Add a JIT interface for row-wise default-nullable functions.
Not actually implemented, though. It does print out some jit-compiled stuff,
but that's about it. For example, this query:

    select number from system.numbers where something(cast(number as Float64)) == 4

results in this on server's stderr:

    define double @"something(CAST(number, 'Float64'))"(void**, i8*, void*) {
    "something(CAST(number, 'Float64'))":
      ret double 1.234500e+04
    }

(and an exception, because that's what the non-jitted method does.)

As one may notice, this function neither reads the input (first argument;
tuple of arrays) nor writes the output (third argument; array), instead
returning some general nonsense.

In addition, `#if USE_EMBEDDED_COMPILER` doesn't work for some reason,
including LLVM headers requires -Wno-unused-parameter, this probably only
works on LLVM 5.0 due to rampant API instability, and I'm definitely
no expert on CMake. In short, there's still a long way to go.
2018-04-25 13:37:25 +03:00
pyos
27d90fb941 Add an example function that uses LLVM to compile its own body 2018-04-25 13:37:25 +03:00
Silviu Caragea
1dd5a704fc Merge remote-tracking branch 'origin/master' into background-schedule-pool-fix
# Conflicts:
#	dbms/src/Common/ZooKeeper/LeaderElection.h
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp
#	dbms/src/Storages/StorageReplicatedMergeTree.cpp
2018-04-24 20:11:59 +03:00
alexey-milovidov
6c73fb86e3 Update FunctionsMath.h 2018-04-24 10:11:03 -07:00
Babacar Diassé
22b2099b0b use exp10 and cbrt from vectorclass when enabled 2018-04-24 10:11:03 -07:00
Tsarkova Anastasia
12c8014e5c Conditional computations. 2018-04-24 09:16:39 +02:00
sundy-li
e882acef31 fix:ODBC sqlType mapping 2018-04-23 22:55:06 -07:00
Nikolai Kochetov
7a62bb9267 added comments and fixed tests build 2018-04-23 22:41:10 +03:00
Nikolai Kochetov
792caf4294 added IColumn::select 2018-04-23 21:20:52 +03:00
Nikolai Kochetov
46d47cd892 added IColumn::select 2018-04-23 21:19:34 +03:00
Nikolai Kochetov
8625686205 added IColumn::select 2018-04-23 20:19:24 +03:00
Nikolai Kochetov
e6e29eef29 added IColumn::select 2018-04-23 20:02:50 +03:00
Nikolai Kochetov
387c32e1ec added IColumn::select 2018-04-23 20:01:28 +03:00
Nikolai Kochetov
8470a091bb added IColumn::select 2018-04-23 19:59:11 +03:00
Nikolai Kochetov
4aaf56d9a2 added IColumn::select 2018-04-23 19:55:26 +03:00
Nikolai Kochetov
61e14b8a83 added IColumn::select 2018-04-23 19:51:27 +03:00
Nikolai Kochetov
44807df50f added IColumn::select 2018-04-23 19:48:46 +03:00
Nikolai Kochetov
4369613435 added IColumn::select 2018-04-23 19:40:25 +03:00
Alexey Milovidov
2627a4da2e Better test #2066 2018-04-22 22:09:35 -07:00
Alexey Milovidov
afb7127c67 Better test #2066 2018-04-22 20:32:53 -07:00
Alexey Milovidov
958a3d7ee7 Fixed error with Arrays inside Nested data type; added a test #2066 2018-04-22 20:30:28 -07:00
Ivan Zhukov
8cb45392c1 Propagate a CSV delimiter to non-basic DataTypes 2018-04-22 20:30:07 +03:00
Ivan Zhukov
e402ff3f81 Unify string checks with a new type 2018-04-22 02:42:01 +03:00
Ivan Zhukov
e84263eb3b Add a SettingChar type 2018-04-22 02:42:00 +03:00
Ivan Zhukov
a138ab2820 Add CSV delimter support in CSVRowOutputStream 2018-04-22 02:08:50 +03:00
Ivan Zhukov
91cb03bdaf Add delimiter support in CSVRowInputStream 2018-04-22 02:08:31 +03:00
Ivan Zhukov
1fc6bb6ffe Add a CSV delimiter setting 2018-04-22 01:20:39 +03:00
Alexey Milovidov
499b67642f Allow to startup with replicated tables in readonly mode when there is no ZooKeeper configured [#CLICKHOUSE-2] 2018-04-21 21:41:06 +03:00
Nikolai Kochetov
7e45661a38 merged with master 2018-04-20 22:51:21 +03:00
robot-metrika-test
c6e29f0cbb Auto version update to [54380] 2018-04-20 22:47:21 +03:00
Alexey Milovidov
fb4a44a913 Added test #2257 2018-04-20 22:46:01 +03:00
Alexey Milovidov
5ba5e80846 Added correct code #2257 2018-04-20 22:45:23 +03:00
Nikolai Kochetov
233ac6c599 style fixes 2018-04-20 22:38:34 +03:00
Alexey Milovidov
970fda46fd Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-20 22:22:24 +03:00
Alexey Milovidov
9c750c4786 Added test #2257 2018-04-20 22:22:03 +03:00
alexey-milovidov
60fade5de8 Revert "ISSUES-1885 UTF8 countCodePoints use SIMD" 2018-04-20 22:18:24 +03:00
robot-metrika-test
8bbb295bbc Auto version update to [54379] 2018-04-20 22:15:52 +03:00
Alexey Milovidov
c087449023 Fixed error #2246 2018-04-20 22:14:04 +03:00
Alexey Milovidov
ac48e1e911 Fixed error #2246 2018-04-20 20:34:09 +03:00
alexey-milovidov
21a5d2dfde Update Macros.h 2018-04-20 19:10:26 +03:00
alexey-milovidov
c783a69d6b Update Macros.cpp 2018-04-20 19:10:26 +03:00
Kirill Shvakov
918dbc2902 #2249 allow macros while creating kafka engine 2018-04-20 19:10:26 +03:00
Nikolai Kochetov
a6375d6155 merged with master 2018-04-20 17:15:03 +03:00
Nikolai Kochetov
f5fe383620 fix build 2018-04-20 17:06:01 +03:00
Ivan He
c94b0a1960 fix typo of struct name 2018-04-20 16:27:48 +03:00
Alexey Milovidov
6b88a2a7a5 Better info in log #2246 2018-04-20 04:14:04 +03:00
Alexey Milovidov
70be882b64 Renamed PK to Key where it's appropriate #2246 2018-04-20 03:27:25 +03:00
Alexey Milovidov
d71b3a95ef Renamed PK to Key where it's appropriate #2246 2018-04-20 03:20:50 +03:00
Alexey Milovidov
72f9f927ac Added test result #2246 2018-04-20 00:38:45 +03:00
Alexey Milovidov
207a8cc03c Fixed error with Sets, part 2 #2246 2018-04-20 00:36:58 +03:00
Alexey Milovidov
ce0ac3f8f8 Fixed error with Sets, part 2 #2246 2018-04-20 00:34:04 +03:00
Alexey Milovidov
02abff4fdb Added failing test #2246 2018-04-19 23:45:27 +03:00
Alexey Milovidov
fee22dac33 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-19 23:34:23 +03:00
Alexey Milovidov
c0978919e3 Fixed error with partition key IN, part 1 #2246 2018-04-19 23:34:02 +03:00
Alexey Milovidov
a6c194fa6d Insignificant change #2246 2018-04-19 23:32:56 +03:00
张健
e9b03b3abc ISSUES-2242 add default data_path & metadata_path for system.tables with temporary (#2243) 2018-04-19 23:22:08 +03:00
Vitaliy Lyudvichenko
a29a99b7d3 Add test for ZooKeeperImpl with watch and chroot. [#CLICKHOUSE-2] 2018-04-19 22:40:42 +03:00
Alexey Milovidov
9a05dd6161 ZooKeeperImpl: fixed error with watches and chroot [#CLICKHOUSE-2] 2018-04-19 22:21:37 +03:00
Alexey Milovidov
12e33cfd85 Exit from threads when ZooKeeper session is expired (non significant change) [#CLICKHOUSE-2] 2018-04-19 21:16:18 +03:00
Alexey Milovidov
da94c7dd91 Exit from queueUpdatingThread when ZooKeeper session is expired (non-significant change) [#CLICKHOUSE-2] 2018-04-19 21:01:50 +03:00
Nikolai Kochetov
dd10c2073c merged with master 2018-04-19 18:10:44 +03:00
Nikolai Kochetov
a3308bf675 added IStorage::getQueryProcessingStage 2018-04-19 17:47:09 +03:00
Silviu Caragea
32dd4554da Merge remote-tracking branch 'github/master' into background-schedule-pool-fix
# Conflicts:
#	dbms/src/Storages/StorageReplicatedMergeTree.cpp
2018-04-19 09:29:49 +03:00
Alexey Milovidov
f9da1fce37 Addition to prev. revision #2164 2018-04-19 08:54:16 +03:00
Alexey Milovidov
41428e4a11 Allowed to read files by table function "file" inside "user_files_path" #2164 2018-04-19 08:32:09 +03:00
alexey-milovidov
08dfd8a09b
Merge pull request #2164 from topvisor/add_table_function_file
Add table function file
2018-04-19 07:53:49 +03:00
alexey-milovidov
565c31c0fb
Update TableFunctionFile.cpp 2018-04-19 07:46:29 +03:00
alexey-milovidov
8f5436e8b0
Update StorageFile.cpp 2018-04-19 07:39:48 +03:00
alexey-milovidov
4b3aa3fc11
Update StorageFile.cpp 2018-04-19 07:39:16 +03:00
alexey-milovidov
19f918512b
Update StorageFile.cpp 2018-04-19 07:36:08 +03:00
Alexey Milovidov
ef14902ef9 Style #1925 2018-04-19 07:25:08 +03:00
Alexey Milovidov
6388c916de Fixed style; added a comment about terribly wrong code [#CLICKHOUSE-2] 2018-04-19 07:23:58 +03:00
alexey-milovidov
0612977bc3
Merge pull request #1925 from zhang2014/fix/ISSUES-995
ISSUES-995 support relative path with domain
2018-04-19 07:19:23 +03:00
Alexey Milovidov
dcdaa2c7bc Added performance test #1925 2018-04-19 06:24:27 +03:00
Alexey Milovidov
ea5dac67d6 More tests #2134 2018-04-19 06:10:10 +03:00
Alexey Milovidov
67c451e9cf Miscellaneous #2134 2018-04-19 06:08:22 +03:00
alexey-milovidov
b23db369f4
Merge pull request #2134 from zhang2014/fix/union_syntax
ISSUES-2133 Support union query with subquery
2018-04-19 05:42:52 +03:00
Alexey Milovidov
cce4c8886c Removed obsolete code #2226 2018-04-19 00:23:55 +03:00
Alexey Milovidov
b4bf2f0c09 Added comment [#CLICKHOUSE-2] 2018-04-19 00:14:47 +03:00
Nikolai Kochetov
2119469c51 added IColumn::select 2018-04-19 00:00:47 +03:00
alexey-milovidov
d0b6ac9fa0
Merge pull request #2238 from alex-krash/master
Regression test for bug in 1.1.54370
2018-04-18 23:40:06 +03:00
alexey-milovidov
0b26539313
Update 00621_regression_for_in_operator.sql 2018-04-18 23:39:53 +03:00
Alexey Milovidov
a55abd0a25 Fixed test [#CLICKHOUSE-2] 2018-04-18 23:27:27 +03:00
Alexey Milovidov
b6fcb808fe Updated old code [#CLICKHOUSE-2] 2018-04-18 23:18:18 +03:00
Alexey Milovidov
91e740da4c Actualized tests [#CLICKHOUSE-2] 2018-04-18 22:54:15 +03:00
Alexey Milovidov
3eff0184fa Added set size checking when set from subquery is used for index; removed harmful feature for special support of (a, b) IN (SELECT (a, b)) instead of (a, b) IN (SELECT a, b) [#CLICKHOUSE-2] 2018-04-18 22:38:40 +03:00
Alexey Milovidov
3bb2fa4702 Fixed bad code [#CLICKHOUSE-2] 2018-04-18 21:44:02 +03:00
Alexandr Krasheninnikov
3065ebe571 Regression test for bug in 1.1.54370 2018-04-18 15:14:21 +03:00
proller
f8dc8f32d5 Writing changelog (#2215)
* Maybe fix flappy test

* Make changelog

* Revert "Temporary revert doc about new package name (clickhouse-server vs cickhouse-server-common)"

This reverts commit 721153ed53.

* Revert "Temporary revert site about new package name (clickhouse-server vs clickhouse-server-common)"

This reverts commit ba5cb121ae.

* Better changelog

* Better

* Better changelog

* more

* Update CHANGELOG_RU.md

* Update CHANGELOG_RU.md

* Update CHANGELOG_RU.md
2018-04-17 23:57:02 +03:00
alexey-milovidov
22f7a3a545
Merge pull request #2223 from sundy-li/master
Fix:ignore the format_version check when the data is empty
2018-04-17 22:50:26 +03:00
alexey-milovidov
089e71d9a5
Merge pull request #2235 from yandex/small-enhancements
Small enhancements
2018-04-17 22:45:01 +03:00
Vitaliy Lyudvichenko
400ad55754 Support allow_databases in distributed DDL. [#CLICKHOUSE-3]
Resolves #2189
2018-04-17 22:33:58 +03:00
Vitaliy Lyudvichenko
bf832b3ea6 Fixed OPTIMIZE after RENAME of replicated table. [#CLICKHOUSE-2] 2018-04-17 20:59:42 +03:00
Nikolai Kochetov
e9bc071837 default implementation for functions with ColumnWithDictionary arguments 2018-04-17 20:47:27 +03:00
Vitaliy Lyudvichenko
5536bf202c Allow SELECT FROM system.processes while max_queries limit is exceeded. [#CLICKHOUSE-3670] 2018-04-17 20:08:15 +03:00
Vitaliy Lyudvichenko
604c7071c3 Fixed a long lock of ProcessList when KILL QUERY is called. [#CLICKHOUSE-3706] 2018-04-17 18:16:32 +03:00
Vitaliy Lyudvichenko
f642d0828e Avoid freezing of KILL QUERY. [#CLICKHOUSE-3706] 2018-04-17 17:29:52 +03:00
Nikolai Kochetov
cdc8bbea7e fix build 2018-04-17 15:41:16 +03:00
Nikolai Kochetov
d97e7362db fix build 2018-04-17 14:28:35 +03:00
Nikolai Kochetov
852992ac3b fix build 2018-04-17 14:22:35 +03:00
Nikolai Kochetov
7f9454cc77 fix build 2018-04-17 14:12:11 +03:00
Nikolai Kochetov
b8957e4d97 fix build 2018-04-17 13:45:05 +03:00
Nikolai Kochetov
c6a3fec726 Merge branch 'master' into data-type-with-dictionary 2018-04-17 13:44:19 +03:00
Nikolai Kochetov
0f0d5b3c0c added DataTypeWithDictionary [#CLICKHOUSE-3621] 2018-04-17 13:43:46 +03:00
Nikolai Kochetov
a163459d83 added ColumnWithDictionary [#CLICKHOUSE-3621] 2018-04-17 13:43:40 +03:00
Nikolai Kochetov
b7ee1be6df added ColumnUnique [#CLICKHOUSE-3621] 2018-04-17 13:43:02 +03:00
Alexey Milovidov
798bee18a7 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-17 00:04:36 +03:00
proller
27b4af9dd7 Change obsolete comment 2018-04-16 23:25:07 +03:00
alexey-milovidov
17dd218338
Merge pull request #2202 from proller/fix15
CLICKHOUSE-3700: Fix empty password on replica query
2018-04-16 23:18:47 +03:00
proller
42cb1540a1
Update ClientInfo.h 2018-04-16 23:12:44 +03:00
Nikolai Kochetov
66905a1366 fix build 2018-04-16 22:59:12 +03:00
Nikolai Kochetov
081f0feb56 fix test [#CLICKHOUSE-3694] #2156 2018-04-16 22:49:14 +03:00
Alexey Milovidov
1fdea85e21 Adjusted racy test [#CLICKHOUSE-2] 2018-04-16 21:51:13 +03:00
Nikolai Kochetov
73cf78eec9 updated test 2018-04-16 18:48:27 +03:00
Nikolai Kochetov
d9ab10634a fix build 2018-04-16 18:39:12 +03:00
Nikolai Kochetov
9e05052c2a merged with master 2018-04-16 18:35:11 +03:00
Nikolai Kochetov
7b8a306e34 minor fixes 2018-04-16 18:11:13 +03:00
sundy-li
12211ffc5b Fix:ignore the format_version check when the data is empty 2018-04-16 18:04:59 +08:00
proller
0114b69f61 Fix build 2018-04-13 23:16:12 +03:00
Nikolai Kochetov
41229b201b Merge branch 'master' into fix-header-for-union-stream-in-distributed-2 2018-04-13 23:11:04 +03:00
Nikolai Kochetov
325f16f8a5 fix perf 2018-04-13 23:09:13 +03:00
proller
f9cd6a09e6 sql: initial EXTRACT(... FROM ...) support (#2196)
* start

* wip

* wip

* wip

* wip

* wip

* Fix clickhouse-server.postinst

* clean

* wip

* clean

* clean

* clean

* wip

* clean

* Update dump_variable.cpp
2018-04-13 22:35:08 +03:00
Alexey Milovidov
bc47a49d58 Added a test #2208 2018-04-13 21:49:23 +03:00
robot-metrika-test
bf5763e525 Auto version update to [54378] 2018-04-13 15:44:34 +03:00
proller
5b19d89133 Add git hash to version info 2018-04-13 15:42:35 +03:00
Nikolai Kochetov
d9ae4bedb8 added test 2018-04-11 22:10:25 +03:00
Nikolai Kochetov
42f9a4d773 added PrewhereInfo [#CLICKHOUSE-3694] #2156 2018-04-11 22:10:08 +03:00
Nikolai Kochetov
c9abeed3f5 remove unused columns from prewhere actions [#CLICKHOUSE-3694] #2156 2018-04-11 22:08:53 +03:00
robot-metrika-test
fe6feb3a69 Auto version update to [54377] 2018-04-11 17:23:50 +03:00
robot-metrika-test
50c2252c31 Auto version update to [54376] 2018-04-10 21:29:22 +03:00
proller
4034fcecf3 Merge remote-tracking branch 'upstream/master' into fix15 2018-04-10 21:27:21 +03:00
proller
0c2ba39978
Debian: Try make compatible package depends (#2194)
* Fix split shared build

* Fix build without system odbc libs

* Move dbms/src/Common/iostream_debug_helpers.h -> libs/libcommon/include/common/iostream_debug_helpers.h

* Fix build with libiodbc

* Fix clickhouse-server.postinst

* Debian: Try make compatible package depends

* Try fix fail on travis tests fail

* Try fix package

* Fix ssl test

* fix

* fix

* wip

* try fix

* clean

* fix
2018-04-10 11:25:08 -07:00
Alexey Milovidov
2392f87dca ZooKeeper: Fixed error [#CLICKHOUSE-2] 2018-04-10 19:48:43 +03:00
proller
157067b127 CLICKHOUSE-3700: Fix empty password on replica query 2018-04-10 17:49:52 +03:00
Silviu Caragea
f1b8d4bc39 Merge remote-tracking branch 'github/master' into background-schedule-pool-fix 2018-04-10 16:27:17 +03:00
Silviu Caragea
c547c5a7b0 Merge remote-tracking branch 'origin/background-schedule-pool-fix'
# Conflicts:
#	dbms/src/Common/ZooKeeper/LeaderElection.h
#	dbms/src/Common/ZooKeeper/ZooKeeper.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp
#	dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp
#	dbms/src/Storages/StorageReplicatedMergeTree.cpp
2018-04-10 16:20:14 +03:00
decaseal
c641a6cd57 table function file - remove unnecessary includes [#add_table_function_file] 2018-04-10 11:59:53 +03:00
decaseal
40b41c3c6e storage file - change error code [#add_table_function_file] 2018-04-10 11:54:31 +03:00
decaseal
e8ae0343ed Merge remote-tracking branch 'yandex/master' into add_table_function_file_dev 2018-04-10 10:30:46 +03:00
decaseal
50f65890dc table function file - use only FileStorage [#add_table_function_file] 2018-04-10 10:28:57 +03:00
decaseal
a2db6db50c table function file - use only FileStorage [#add_table_function_file] 2018-04-10 10:26:33 +03:00
decaseal
279fa17ff6 storage file - fix check creation is allowed [#add_table_function_file] 2018-04-10 10:09:50 +03:00
Alexey Milovidov
d3cf85057b Removed useless code [#CLICKHOUSE-2] 2018-04-09 18:49:12 +03:00
proller
c26b3bdef1
Fix split shared build; fix build without system odbc libs (#2191)
* Fix split shared build

* Fix build without system odbc libs

* Move dbms/src/Common/iostream_debug_helpers.h -> libs/libcommon/include/common/iostream_debug_helpers.h

* Fix build with libiodbc
2018-04-09 06:52:39 -07:00
Alexey Milovidov
f02239a307 Fixed linkage of tests [#CLICKHOUSE-2] 2018-04-08 07:54:23 +03:00
Alexey Milovidov
79e319a7b6 ZooKeeper: fixed error [#CLICKHOUSE-2] 2018-04-08 07:45:59 +03:00
Alexey Milovidov
a2482f120d Fixed test [#CLICKHOUSE-2] 2018-04-08 07:38:27 +03:00
Alexey Milovidov
86317fe0f9 ZooKeeper: Fixed error [#CLICKHOUSE-2] 2018-04-08 07:25:13 +03:00
proller
07b81c875e CLICKHOUSE-3444: show error for old query on replace_running_query (#2127)
* Add tests

* Fix test

* Fix test build

* CLICKHOUSE-3444: show error for replace_running_query

* fix naming

* fix

* fix test

* Update IProfilingBlockInputStream.cpp
2018-04-07 06:49:49 +03:00
Alexey Milovidov
babfc6aaf7 Fixed error [#CLICKHOUSE-2] 2018-04-07 06:46:20 +03:00
Alexey Milovidov
18bbd0e61b Moved SessionPoolHelpers #2180 2018-04-07 06:07:32 +03:00
Alexey Milovidov
f40817f851 Moved SessionPoolHelpers #2180 2018-04-07 06:07:26 +03:00
Alexey Milovidov
3f264f07e9 Removed excessive library dependencies #2180 2018-04-07 05:29:12 +03:00
Alexey Milovidov
3fd2773151 Improved code after introduction of method "getHeader" in every stream [#CLICKHOUSE-2] 2018-04-07 04:46:50 +03:00
Alexey Milovidov
0a4b349f73 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-07 00:47:18 +03:00
Alexey Milovidov
4e5e0fa664 ReplicatedMergeTree: Better diagnostics [#CLICKHOUSE-2] 2018-04-07 00:46:57 +03:00
alexey-milovidov
84726e17e8
Merge pull request #2185 from yandex/fix-leader-election-race
Fix races in leader election.
2018-04-07 00:18:26 +03:00
robot-metrika-test
984d7044ac Auto version update to [54375] 2018-04-06 23:52:52 +03:00
Alexey Milovidov
9b3169a331 Fixed build with clang 5 (although it is Ok on clang 6) [#CLICKHOUSE-2] 2018-04-06 23:03:35 +03:00
Alexey Milovidov
708dc5ef82 ZooKeeper: fixed error [#CLICKHOUSE-2] 2018-04-06 22:54:18 +03:00
Alexey Milovidov
0d8d99e7a4 Fixed typo [#CLICKHOUSE-2] 2018-04-06 22:48:54 +03:00
Alexey Milovidov
ee7fe63b69 Avoid herd effect in ReplicatedMergeTreeCleanupThread (continued) [#CLICKHOUSE-2] 2018-04-06 22:44:55 +03:00
Alexey Milovidov
fa776b93c2 Avoid herd effect in ReplicatedMergeTreeCleanupThread [#CLICKHOUSE-2] 2018-04-06 22:43:37 +03:00
Alexey Milovidov
af226d62f5 Fixed totally wrong code in SummingMergeTree in the case of complex maps [#CLICKHOUSE-2] 2018-04-06 21:09:20 +03:00
Alexey Milovidov
47637c7885 Actualized test #1846 2018-04-06 19:26:38 +03:00
Alexey Zatelepin
3a8ca70d1f fix races in leader election [#CLICKHOUSE-3533] 2018-04-06 19:10:23 +03:00
decaseal
139b40f976 storage file - fix check creation is allowed [#add_table_function_file] 2018-04-06 16:43:29 +03:00
decaseal
22870e1e24 table function file - fix data path [#add_table_function_file] 2018-04-06 16:36:17 +03:00
decaseal
157d51446b Merge remote-tracking branch 'yandex/master' into add_table_function_file_dev 2018-04-06 15:55:02 +03:00
decaseal
92416c3333 table function file - fix [#add_table_function_file] 2018-04-06 15:39:30 +03:00
decaseal
194974f88d table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:37:35 +03:00
decaseal
b9fee66dfa table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:33:03 +03:00
decaseal
b3ed1c6cca table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:32:29 +03:00
decaseal
5f52defb29 table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:32:19 +03:00
decaseal
29b94a0467 table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:25:14 +03:00
decaseal
9ebe22dd2c table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:18:05 +03:00
decaseal
5b601b9153 table function file - fix use storage file [#add_table_function_file] 2018-04-06 15:13:08 +03:00
decaseal
dc60788fa5 table function file - use storage file [#add_table_function_file] 2018-04-06 15:10:22 +03:00
proller
e933d1a1ee
Cmake fixes (#2177)
* cmake fixes

* Fix test server config
2018-04-06 05:07:40 -07:00
decaseal
b8d010eb09 table function file - test db data path [#add_table_function_file] 2018-04-06 14:21:41 +03:00
decaseal
30e79f4c7d storage file - relative table path starts with db_dir_path [#add_table_function_file] 2018-04-06 13:35:52 +03:00
decaseal
8b96dc8c7e storage file - test db_dir_path [#add_table_function_file] 2018-04-06 13:24:12 +03:00
decaseal
7296bf2cb7 storage file - fix check table file path [#add_table_function_file] 2018-04-06 13:11:39 +03:00
decaseal
d56b78c073 storage file - test fd [#add_table_function_file] 2018-04-06 12:53:38 +03:00
decaseal
39cc42172d storage file - check table file path [#add_table_function_file] 2018-04-06 12:53:29 +03:00
decaseal
9404ddff84 table function file - test application context [#add_table_function_file] 2018-04-06 11:54:45 +03:00
Alexey Milovidov
9bbd8a968e ZooKeeper: clarifications [#CLICKHOUSE-2] 2018-04-06 09:22:59 +03:00
Alexey Milovidov
0771874695 ZooKeeper: Fixed error when exception is thrown while session expiration and not all callbacks are called [#CLICKHOUSE-2] 2018-04-06 09:19:53 +03:00
Alexey Milovidov
775daa0fe9 Little better [#CLICKHOUSE-2] 2018-04-06 08:49:03 +03:00
Alexey Milovidov
3884146d92 Little better [#CLICKHOUSE-2] 2018-04-06 08:44:17 +03:00
Alexey Milovidov
ac58f92a97 Fixed error with IN where left hand side is nullable #1846 2018-04-06 08:12:47 +03:00
Alexey Milovidov
2ae9e719c6 Fixed warning [#CLICKHOUSE-2] 2018-04-06 07:48:48 +03:00
Alexey Milovidov
e655cb0bff Better debug helpers [#CLICKHOUSE-2] 2018-04-06 07:46:18 +03:00
Alexey Milovidov
65ad97452b Added a test from Silviu Caragea #2113 2018-04-06 03:28:53 +03:00
Alexey Milovidov
30dd11f8ca Removed (obsolete) special handling for Arrays in the left hand side of IN (continued) #2113 2018-04-06 03:25:14 +03:00
Alexey Milovidov
cf1a2241af Updated test [#CLICKHOUSE-2] 2018-04-06 02:06:03 +03:00
Alexey Milovidov
e6e12e6490 Fixed test [#CLICKHOUSE-2] 2018-04-06 02:04:31 +03:00
Alexey Milovidov
4c2adf1f30 Fixed test #797 2018-04-06 02:00:19 +03:00
Alexey Milovidov
f66d2fb780 Allow to use FINAL even in case of single part #2086 2018-04-06 00:36:55 +03:00
Alexey Milovidov
6452a3bb76 Removed (obsolete) special handling for Arrays in the left hand side of IN [#CLICKHOUSE-2] 2018-04-05 23:52:01 +03:00
Alexey Milovidov
d9b54a6aae Updated comment [#CLICKHOUSE-2] 2018-04-05 23:47:06 +03:00
Alexey Milovidov
da7975dc29 Added test #797 2018-04-05 23:43:35 +03:00
Alexey Milovidov
32f6adc5ed Added test #797 2018-04-05 23:41:55 +03:00
Alexey Milovidov
7d69a3363f Added test #1282 2018-04-05 23:29:19 +03:00
Alexey Milovidov
83b72b578d Miscellaneous [#CLICKHOUSE-2] 2018-04-05 22:28:07 +03:00
Alexey Milovidov
438dc2c318 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-05 22:27:41 +03:00
Alexey Milovidov
0b4a59c8b0 Fixed flappy test [#CLICKHOUSE-2] 2018-04-05 22:27:20 +03:00
robot-metrika-test
feaae7d439 Auto version update to [54374] 2018-04-05 21:26:55 +03:00
Alexey Milovidov
1e2b5f24ac Improved debug helpers [#CLICKHOUSE-2] 2018-04-05 19:43:39 +03:00
Alexey Milovidov
a2ce515a84 ZooKeeper: Fixed potential issue [#CLICKHOUSE-2] 2018-04-05 19:42:54 +03:00
Daniel Bershatsky
805325015f Include vector if ENABLE_CLICKHOUSE_CLIENT=True. (#2182)
* Include vector if ENABLE_CLICKHOUSE_CLIENT=True.

* Update main.cpp
2018-04-05 07:27:39 -07:00
decaseal
aebc28d44b table function file - test application context [#add_table_function_file] 2018-04-05 12:21:01 +03:00
Alexey Milovidov
36c9409899 Fixed error [#CLICKHOUSE-2] 2018-04-05 07:42:20 +03:00
Alexey Milovidov
d3408d45a8 ZooKeeper: fixed error [#CLICKHOUSE-2] 2018-04-05 07:31:04 +03:00
Alexey Milovidov
e00e81c3e9 ZooKeeper: fixed error [#CLICKHOUSE-2] 2018-04-05 07:06:23 +03:00
Alexey Milovidov
403a2c62a2 Miscellaneous [#CLICKHOUSE-2] 2018-04-05 05:56:11 +03:00
Alexey Milovidov
d5c5a34049 Miscellaneous [#CLICKHOUSE-2] 2018-04-05 05:55:21 +03:00
Alexey Milovidov
dec4094e5b Removed test case that test for behaviour that was correct accidentially [#CLICKHOUSE-2] 2018-04-05 05:31:17 +03:00
Alexey Milovidov
f734a4523a Fixed bad test [#CLICKHOUSE-2] 2018-04-05 05:19:32 +03:00
Alexey Milovidov
0dbc8aa1a5 ZooKeeper: added comment [#CLICKHOUSE-2] 2018-04-05 03:53:27 +03:00
Alexey Milovidov
cde5d315f1 ZooKeeper: added comment [#CLICKHOUSE-2] 2018-04-05 03:46:26 +03:00
Alexey Milovidov
0c519c763b ZooKeeper: added comment [#CLICKHOUSE-2] 2018-04-05 03:44:58 +03:00
Alexey Milovidov
b8df381a97 ZooKeeper: changed operation timeout to 10s because some users run ZooKeeper on servers with HDD and high background load [#CLICKHOUSE-2] 2018-04-05 03:02:09 +03:00
Alexey Milovidov
8faea5437a ZooKeeper: Better metrics about active sessions [#CLICKHOUSE-2] 2018-04-05 02:59:37 +03:00
Alexey Milovidov
e4fe1ef4b3 ZooKeeper: Better connection loop [#CLICKHOUSE-2] 2018-04-05 02:43:11 +03:00
Alexey Milovidov
5a525605be ZooKeeper: thread names [#CLICKHOUSE-2] 2018-04-05 02:36:58 +03:00
Alexey Milovidov
ddc4e1e388 ZooKeeper: Better connection loop [#CLICKHOUSE-2] 2018-04-05 02:33:21 +03:00
alexey-milovidov
19312e14b4
Merge pull request #2173 from yandex/fix-in-tuple
Fix pk in tuple
2018-04-05 00:43:28 +03:00
KochetovNicolai
634dd2a1d2
Merge branch 'master' into fix-in-tuple 2018-04-05 00:06:52 +03:00
Alexey Milovidov
436de0d0a7 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-05 00:05:37 +03:00
Alexey Milovidov
669b0d4bb0 Fixed highlight for UNION ALL [#CLICKHOUSE-3689] 2018-04-05 00:05:11 +03:00
Nikolai Kochetov
8f4b54d65b updated test #2170 2018-04-05 00:03:21 +03:00
Nikolai Kochetov
b96039bafe added check for partition column in mayBenefitFromIndexForIn #2170 2018-04-05 00:03:16 +03:00
alexey-milovidov
a7a924c03c Update TimeoutSetter.h 2018-04-04 22:44:38 +03:00
Vitaliy Lyudvichenko
ce8de108ed Better timeouts handling. [#CLICKHOUSE-2] 2018-04-04 22:44:38 +03:00
Nikolai Kochetov
f5ec675f4a updated test [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
dc22b881a7 added columns_added_by_join into in with pk [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
fde23f7975 added array_join_columns [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
7d0602c279 added columns from array join to aggregated_columns [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
1ad3010c4a updated test [#CLICKHOUSE-3680] 2018-04-04 22:36:22 +03:00
Nikolai Kochetov
dddbe14b4b added columns_added_by_join into in with pk [#CLICKHOUSE-3680] 2018-04-04 22:26:14 +03:00
Nikolai Kochetov
248fe37cb8 added array_join_columns [#CLICKHOUSE-3680] 2018-04-04 21:56:30 +03:00
Nikolai Kochetov
ae76d11833 Merge branch 'master' into fix-in-tuple 2018-04-04 17:42:57 +03:00
Nikolai Kochetov
67330e6789 Merge branch 'fix-in-tuple' of github.com:yandex/ClickHouse into fix-in-tuple 2018-04-04 17:37:34 +03:00
Nikolai Kochetov
eb4171bc0e added columns from array join to aggregated_columns [#CLICKHOUSE-3680] 2018-04-04 17:36:28 +03:00
Alexey Milovidov
e203457d55 Fixed metric ZooKeeperWaitMicroseconds [#CLICKHOUSE-2] 2018-04-04 05:07:12 +03:00
robot-metrika-test
848d9ecf68 Auto version update to [54373] 2018-04-04 00:45:08 +03:00
Alexey Milovidov
ba7a0ebf86 Better exception messages [#CLICKHOUSE-2] 2018-04-04 00:40:58 +03:00
Alexey Milovidov
76e822274a Better exception messages [#CLICKHOUSE-2] 2018-04-04 00:29:11 +03:00
Alexey Milovidov
c387b73f70 ZooKeeper: miscellaneous [#CLICKHOUSE-2] 2018-04-04 00:18:46 +03:00
alexey-milovidov
e2a517db12 Update MergeTreeData.cpp 2018-04-04 00:17:22 +03:00
Nikolai Kochetov
537c495a8e added test [#CLICKHOUSE-3680] 2018-04-04 00:17:22 +03:00
Nikolai Kochetov
4f7d262997 added aggregated_columns to mayBenefitFromIndexForIn [#CLICKHOUSE-3680] 2018-04-04 00:17:22 +03:00
Nikolai Kochetov
2163977b2a mayBenefitFromIndexForIn returns true if at least one tuple element is in pk [#CLICKHOUSE-3680] 2018-04-04 00:17:22 +03:00
alexey-milovidov
23baae447d
Update MergeTreeData.cpp 2018-04-04 00:16:58 +03:00
Alexey Milovidov
b0eca318cf ZooKeeper: more instrumentation [#CLICKHOUSE-2] 2018-04-04 00:14:10 +03:00
Alexey Milovidov
8029a9b579 ZooKeeper: more instrumentation [#CLICKHOUSE-2] 2018-04-04 00:11:54 +03:00
Alexey Milovidov
788d8e740d ZooKeeper: more instrumentation [#CLICKHOUSE-2] 2018-04-04 00:07:22 +03:00
Alexey Milovidov
944748e7da Modifications after removing libzookeeper [#CLICKHOUSE-2] 2018-04-03 22:54:35 +03:00
Alexey Milovidov
f5652b4477 Modifications after removing libzookeeper; initialize ZooKeeper session lazily [#CLICKHOUSE-2] 2018-04-03 22:43:33 +03:00
Nikolai Kochetov
f7b39b8df2 added test [#CLICKHOUSE-3680] 2018-04-03 22:30:39 +03:00
Nikolai Kochetov
33774e93fa added aggregated_columns to mayBenefitFromIndexForIn [#CLICKHOUSE-3680] 2018-04-03 22:16:24 +03:00
Nikolai Kochetov
a687c41a8c mayBenefitFromIndexForIn returns true if at least one tuple element is in pk [#CLICKHOUSE-3680] 2018-04-03 21:37:35 +03:00
Alexey Milovidov
08170d0d77 Modifications after removing libzookeeper [#CLICKHOUSE-2] 2018-04-03 21:24:18 +03:00
Alexey Milovidov
9379d71f74 Miscellaneous [#CLICKHOUSE-2] 2018-04-03 20:37:30 +03:00
Alexey Milovidov
2310bd7947 Miscellaneous [#CLICKHOUSE-2] 2018-04-03 20:35:48 +03:00
decaseal
77b0d7d23b Merge branch 'master' into add_table_function_file 2018-04-03 15:17:45 +03:00
proller
e58b0830e6
Prepare to new poco (PocoData renamed to PocoSQL) (#2158) 2018-04-03 04:48:40 -07:00
decaseal
98463ebe28 table function file - comments [#add_table_function_file] 2018-04-03 11:12:24 +03:00
decaseal
1804d19a2b table function file - comments [#add_table_function_file] 2018-04-03 11:07:44 +03:00
Alexey Milovidov
0d2c2ea3d4 Fixed error after removed libzookeeper [#CLICKHOUSE-2] 2018-04-03 03:39:58 +03:00
Alexey Milovidov
daa736700d Minor modification after removing libzookeeper [#CLICKHOUSE-2] 2018-04-03 00:48:39 +03:00
Alexey Milovidov
0c889b76db Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-02 22:24:23 +03:00
Alexey Milovidov
97431c90bd Renamed test [#CLICKHOUSE-2] 2018-04-02 22:24:03 +03:00
robot-metrika-test
40e454b1b6 Auto version update to [54372] 2018-04-02 22:13:54 +03:00
Alexey Milovidov
9f472b41e8 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-02 21:59:37 +03:00
Alexey Milovidov
6364c49ad8 ZooKeeper: fixed chroot [#CLICKHOUSE-2] 2018-04-02 21:59:18 +03:00
proller
6e03373b8d clickhouse-common-dbg -> clickhouse-common-static-dbg (#2157) 2018-04-02 21:44:19 +03:00
Alexey Milovidov
a5f05dc71e Added test #217 [#CLICKHOUSE-1942] 2018-04-02 21:19:47 +03:00
Alexey Milovidov
bcda215439 Added a comment about absolutely wrong code [#CLICKHOUSE-1942] 2018-04-02 21:16:40 +03:00
Alexey Milovidov
205d648e0d Fixed error with timeout of distributed queries, part 1 #217 [#CLICKHOUSE-1942] 2018-04-02 21:01:25 +03:00
Alexey Milovidov
5ec4c44989 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-02 20:57:58 +03:00
Alexey Milovidov
b3e6bb453a Renamed method #217 [#CLICKHOUSE-1942] 2018-04-02 20:57:38 +03:00
Vitaliy Lyudvichenko
fb7e2cbd16 Fixed processConfig, skip temporary files. [#CLICKHOUSE-2] 2018-04-02 19:23:00 +03:00
Alexey Milovidov
c1d36b559a Added example config for ZooKeeper on localhost: for development purposes [#CLICKHOUSE-2] 2018-04-02 18:54:12 +03:00
decaseal
ca78eed896 table function file - fix path validate [#add_table_function_file] 2018-04-02 18:51:22 +03:00
decaseal
2100d00764 table function file - fix path validate [#add_table_function_file] 2018-04-02 18:49:40 +03:00
decaseal
0a9e281199 table function file - test path validate [#add_table_function_file] 2018-04-02 18:47:31 +03:00
decaseal
a0f40c79f9 table function file - fix path validate [#add_table_function_file] 2018-04-02 18:40:35 +03:00
decaseal
fba2f32c53 table function file - fix path validate [#add_table_function_file] 2018-04-02 18:38:43 +03:00
decaseal
58489628aa fix table function file [#add_table_function_file] 2018-04-02 17:23:53 +03:00
decaseal
42f028ddde fix table function file [#add_table_function_file] 2018-04-02 17:15:41 +03:00
KochetovNicolai
62e6a1bde6
Update MergeTreeBaseBlockInputStream.cpp
Check is block is not empty before removing prewhere column
2018-04-02 17:08:05 +03:00
decaseal
358e0183f5 fix table function file [#add_table_function_file] 2018-04-02 16:56:54 +03:00
decaseal
2a6dbd14ae realize table function file [#add_table_function_file] 2018-04-02 16:15:25 +03:00
Silviu Caragea
f811da7ed4 Move merge selection state into ReplicatedMergeTreeMergeSelectingThread 2018-04-02 15:45:55 +03:00
proller
440b0f33c7 Compile fixes 2018-04-02 15:31:49 +03:00
decaseal
94a573e845 register table function file [#add_table_function_file] 2018-04-02 14:43:51 +03:00
decaseal
871c7a5f0e create table function file [#add_table_function_file] 2018-04-02 14:43:37 +03:00
Alexey Milovidov
ad137994f9 Modifications after removing libzookeeper [#CLICKHOUSE-2] 2018-04-02 02:16:41 +03:00
Alexey Milovidov
3fe743e2bd Fixed error after merge [#CLICKHOUSE-2] 2018-04-01 22:29:08 +03:00
alexey-milovidov
b07fb1ddda
Merge branch 'master' into better-range-reader 2018-04-01 22:16:39 +03:00
Alexey Milovidov
d57fcc35c0 Merge branch 'master' of github.com:yandex/ClickHouse 2018-04-01 20:37:20 +03:00
Alexey Milovidov
a1aecc5d96 Fixed error after merge [#CLICKHOUSE-2] 2018-04-01 20:37:09 +03:00
alexey-milovidov
588591f683
Merge pull request #2149 from lamber-ken/master
change the return type of funciton countEqual
2018-04-01 20:31:02 +03:00
alexey-milovidov
428ee63a04
Merge branch 'master' into libzookeeper-rewrite 2018-04-01 17:31:20 +03:00
谢磊
c898986650
change the return type of funciton countEqual
the maximum length of the array is defined as UInt64.
the maximum of `UInt32` just 4294967295.
it's better to define the return type of the function `countEqual` as `UInt64`.
2018-03-31 12:54:06 -05:00
proller
b3e8949d2a CLICKHOUSE-3675 Add glibc version test
Fix zookeeper tools compile
2018-03-30 16:58:00 +03:00
Alexey Zatelepin
5fdd50c2a2 process included config node once more if include happened [#MTRSADMIN-3894] 2018-03-30 16:33:43 +03:00
proller
ce23653cad
Fix build with old poco (#2144) 2018-03-30 05:42:06 -07:00
alexey-milovidov
e6019624c1
Merge pull request #2138 from bretthoerner/uninitialized-fix
Fix build when using GCC 7.3.1: -Wmaybe-uninitialized error
2018-03-30 00:15:33 +03:00
alexey-milovidov
f358dc4125
Update ColumnString.h 2018-03-30 00:15:14 +03:00
alexey-milovidov
10e5d63d76
Merge pull request #2131 from ClickHouse-Ninja/system-log-prepare-table-on-each-flush
SystemLog: проверка структуры и существования таблицы при каждом flush
2018-03-29 23:55:14 +03:00
alexey-milovidov
30838f4d9f
Update SystemLog.h 2018-03-29 23:54:57 +03:00
alexey-milovidov
c9da34dd84
Merge pull request #2139 from proller/fix16
CLICKHOUSE-3644: Server: do not use SO_REUSEPORT
2018-03-29 23:50:06 +03:00
alexey-milovidov
db53190854
Update ColumnString.h 2018-03-29 23:21:40 +03:00
proller
450efef456 Maybe fix test 00429_long_http_bufferization (remove curl timeout) 2018-03-29 22:12:24 +03:00
proller
037cf62230 CLICKHOUSE-3644: Server: do not use SO_REUSEPORT 2018-03-29 20:24:46 +03:00
Brett Hoerner
fef91af96f Fix build when using GCC 7.3.1: -Wmaybe-uninitialized error
Before adding this ignore you would receive the following when using GCC
7.3.1:

[ 82%] Building CXX object dbms/src/Storages/System/CMakeFiles/clickhouse_storages_system.dir/StorageSystemAsynchronousMetrics.cpp.o
In file included from /ClickHouse/dbms/src/Storages/System/StorageSystemAsynchronousMetrics.cpp:5:0:
/ClickHouse/dbms/src/Columns/ColumnString.h: In member function ‘virtual DB::BlockInputStreams DB::StorageSystemAsynchronousMetrics::read(const Names&, const DB::SelectQueryInfo&, const DB::Context&, DB::QueryProcessingStage::Enum&, size_t, unsigned int)’:
/ClickHouse/dbms/src/Columns/ColumnString.h:96:45: error: ‘*((void*)&<anonymous> +8)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         const size_t size_to_append = s.size() + 1;
                                       ~~~~~~^~
cc1plus: all warnings being treated as errors
make[2]: *** [dbms/src/Storages/System/CMakeFiles/clickhouse_storages_system.dir/build.make:63: dbms/src/Storages/System/CMakeFiles/clickhouse_storages_system.dir/StorageSystemAsynchronousMetrics.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:9105: dbms/src/Storages/System/CMakeFiles/clickhouse_storages_system.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
2018-03-29 12:02:09 -05:00
Alexey Milovidov
b997830289 Fixed error found by Artemeey Gavryushin [#CLICKHOUSE-3] 2018-03-29 18:31:59 +03:00
Kirill Shvakov
b742908731 SystemLog: execute prepareTable() on each flush
Merge remote-tracking branch 'upstream/master' into system-log-prepare-table-on-each-flush

#2131 deleted excessive logging

Revert "#2131 deleted excessive logging"

This reverts commit d78a46d958.

Revert "SystemLog: execute prepareTable()  on each flush"

This reverts commit 7f60bb0a9b.

SystemLog: execute prepareTable() on each flush
2018-03-29 16:57:16 +03:00
Vitaliy Lyudvichenko
134efcd7ed Swapped send and receive timeouts settings from client. [#CLICKHOUSE-2] 2018-03-29 16:35:59 +03:00
Vitaliy Lyudvichenko
63eee94319
Add max_network_bandwidth_for_all_users setting. [#CLICKHOUSE-2] (#2137) 2018-03-29 16:24:36 +03:00
proller
a6f9df105c Allow use encryption for distributed tables (#2065)
* Allow use encryption for distributed tables

* wip

* fix

* rename encryption to secure

* Fix DirectoryMonitor with +secure

* fix

* fix

* Update DirectoryMonitor.cpp

* Update DirectoryMonitor.cpp
2018-03-29 04:41:06 +03:00
alexey-milovidov
54986af313
Merge pull request #2122 from proller/fix14
CLICKHOUSE-3630: Fix race on logger reload, enable reload
2018-03-29 04:30:30 +03:00
zhang2014
b00cb9d9b0 ISSUES-2133 Support union query with subquery 2018-03-29 09:06:17 +08:00
alexey-milovidov
4126c7767d
Merge pull request #2130 from yandex/fix-distributed-batch-inserts
More aggressively move files to broken/ when doing distributed batch inserts
2018-03-29 03:12:28 +03:00
alexey-milovidov
2e15ce6791
Merge pull request #2132 from yandex/small-enhancements
Small enhancements
2018-03-29 03:07:49 +03:00
alexey-milovidov
a220a43b8e
Merge branch 'master' into fix-detach-database 2018-03-29 03:01:07 +03:00
Vitaliy Lyudvichenko
de3791dbda Accpet client-side send and recieve timeouts. [#CLICKHOUSE-2] 2018-03-28 17:10:11 +03:00
Vitaliy Lyudvichenko
701b58b4ff Faster DROP PARTITION. [#CLICKHOUSE-2] 2018-03-28 15:48:40 +03:00
Alexey Zatelepin
aa4f4e62fe mark failed batches as broken [#CLICKHOUSE-3594] 2018-03-28 15:28:15 +03:00
Alexey Zatelepin
00da8a477c report broken files more accurately [#CLICKHOUSE-3594] 2018-03-28 15:28:15 +03:00
proller
239f0974fa CLICKHOUSE-3630: Fix race on logger reload, enable reload 2018-03-28 15:20:45 +03:00
Alexey Zatelepin
f2db72a5e5 move squashing to read side #2084 [#CLICKHOUSE-3540]
This way there is a clear correspondence between blocks inserted into the parent table
and blocks inserted into the materialized view.
2018-03-28 14:41:20 +03:00
alexey-milovidov
ca5fd1e9de
Merge pull request #2033 from yandex/show-create-database
Show create database
2018-03-28 05:29:36 +03:00
alexey-milovidov
e3cbd3306c
Merge pull request #2081 from yandex/stricter-mutable-column-semantic-2
&& - qualified IColumn::mutate
2018-03-28 05:27:35 +03:00
alexey-milovidov
f48caff360
Update COWPtr.h 2018-03-28 05:27:25 +03:00
Alex Zatelepin
1be7c09702 add readPrefix()/readSuffix() calls for completeness #2084 [#CLICKHOUSE-3540] 2018-03-27 22:25:50 +00:00
Alexey Zatelepin
88a9b7de91 fix calls to writeSuffix() in PushingToViewsBlockOutputStream #2084 [#CLICKHOUSE-3540]
don't use copyData because it calls writeSuffix() prematurely.
2018-03-27 23:04:40 +03:00
Nikolai Kochetov
192409ebd2 added test 2018-03-27 22:14:54 +03:00
Nikolai Kochetov
d3157d910c minor fixes 2018-03-27 22:14:48 +03:00
Alexey Zatelepin
d58483b084 squash blocks when inserting into materialized views #2084 [#CLICKHOUSE-3540] 2018-03-27 20:08:41 +03:00
proller
348b7c3bda clickhouse-test: Fix run without server config 2018-03-27 18:08:51 +03:00
Silviu Caragea
0a057695aa Reduce the number of lock releases and reacquires in the BckSchPoolDelay thread 2018-03-27 16:29:41 +03:00
Silviu Caragea
1418e339e4 Rename merge_selecting_handle with merge_selecting_task_handle for consistency 2018-03-26 23:18:19 +03:00
Silviu Caragea
0aa9b9efbe Use consistent names for the task variables (change from next_update_task_handle to merge_selecting_handle) (reverted from commit 50992843c6) 2018-03-26 23:12:17 +03:00
Silviu Caragea
438121e45b Renamed Zookeeper get method with getWatch for consistency 2018-03-26 23:08:14 +03:00
Silviu Caragea
50992843c6 Use consistent names for the task variables (change from next_update_task_handle to merge_selecting_handle) 2018-03-26 22:59:58 +03:00
Silviu Caragea
4361df913b Remove exists and use existsWatch instead for WatchCallbacks 2018-03-26 22:46:14 +03:00
Silviu Caragea
31874ed172 Use consistent names for the task variables 2018-03-26 22:37:47 +03:00
alexey-milovidov
03b01fc249
Merge pull request #2118 from yandex/faster-sync-insert
Faster distributed sync insert
2018-03-26 22:23:41 +03:00
Silviu Caragea
7d6268c8a9 Fix bug in the exit predicate 2018-03-26 22:18:56 +03:00
Vitaliy Lyudvichenko
190964f98e Avoid extra waits in copier. [#CLICKHOUSE-2] 2018-03-26 21:39:28 +03:00
Nikolai Kochetov
0d3ee2e07b Merge branch 'read_query_body_fix' of https://github.com/silviucpp/ClickHouse into silviucpp-read_query_body_fix 2018-03-26 21:30:15 +03:00
Nikolai Kochetov
d63d9a4ffb fix test [#CLICKHOUSE-3590] 2018-03-26 18:48:19 +03:00
KochetovNicolai
d25c244946
Merge pull request #1882 from zhang2014/support/simd_for_lengthUTF-8
ISSUES-1885 UTF8 countCodePoints use SIMD
2018-03-26 18:27:07 +03:00
Alex Zatelepin
c5b04f7f17 Add info about total uncompressed part size to system tables (#2052)
* column size calculating routines now take into account multiple streams [#CLICKHOUSE-2831]

* rename for clarity

* use more appropriate method for calculating table size

* add info about total uncompressed part size to system.parts and system.parts_columns [#CLICKHOUSE-2831]

* rename columns for clarity [#CLICKHOUSE-2831]

* count shared substreams only once [#CLICKHOUSE-2831]
2018-03-26 17:18:04 +03:00
alexey-milovidov
f1887fe033
Merge pull request #2105 from elBroom/add-query-id-to-client
Added query_id to client
2018-03-26 01:45:29 +03:00
alexey-milovidov
9ba28666e1
Update Client.cpp 2018-03-26 01:44:54 +03:00
alexey-milovidov
db4944508f
Merge pull request #2100 from tobad357/bugfix/fix-subscribe-multiple-topics
#2095 Make sure to split the topics args list on ','
2018-03-26 01:43:21 +03:00
alexey-milovidov
237c530b4e
Update StorageKafka.cpp 2018-03-26 01:42:36 +03:00
Jonatas Freitas
e07cde4363 Added missing slash on graphite monitoring section 2018-03-25 01:43:12 -03:00
Alexey Milovidov
5ac329c91c Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 07:34:33 +03:00
Alexey Milovidov
93307a82e6 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 07:20:31 +03:00
Alexey Milovidov
c2f40e8d41 Removed libzookeeper [#CLICKHOUSE-2] 2018-03-25 06:47:56 +03:00
Alexey Milovidov
2c4b28597e Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:57:04 +03:00
Alexey Milovidov
49045754d9 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:56:08 +03:00
Alexey Milovidov
6721914041 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:36:35 +03:00
Alexey Milovidov
548c4b0adf Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:20:51 +03:00
Alexey Milovidov
522bf01db9 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 03:15:52 +03:00
elBroom
b80f5ed875 ignoring query_id in interactive mode 2018-03-25 02:50:30 +03:00
elBroom
d406454f39 Added query_id to client 2018-03-25 02:22:58 +03:00
Alexey Milovidov
0714a217fe Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 02:13:05 +03:00
Alexey Milovidov
280a5f8e3f Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-25 02:01:21 +03:00
Alexey Milovidov
24f94d9352 Merge remote-tracking branch 'origin/master' into libzookeeper-rewrite 2018-03-24 23:30:57 +03:00
Alexey Milovidov
87b4d8209a Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-24 23:28:43 +03:00
Alexey Milovidov
7ec66830af Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-24 23:17:27 +03:00
Alexey Milovidov
58f32f98d7 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-24 23:11:46 +03:00
Alexey Milovidov
ae9633c1e5 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-24 23:00:16 +03:00
Alexey Zatelepin
2a366afbf5 add shutdowns everywhere [#CLICKHOUSE-3664] 2018-03-24 12:08:32 +00:00
Alexey Zatelepin
10b669a833 extract common base for DatabaseMemory and DatabaseOrdinary [#CLICKHOUSE-3664] 2018-03-24 12:08:32 +00:00
Tobias Adamson
0af09ae0c7 Add trim to topic names to be a bit more lenient if config is 'topic1, topic2' 2018-03-24 14:51:35 +08:00
Tobias Adamson
dd06b39e5f Fix rename of variable, duplication of wrong variable name 2018-03-24 09:16:33 +08:00
Alexey Milovidov
26584844b6 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-24 04:00:12 +03:00
Alexey Milovidov
10be6ca8f8 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-24 03:45:04 +03:00
Alexey Milovidov
6b684fc1a3 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-24 02:15:14 +03:00
Alexey Zatelepin
cf3c24d07d break cycle of ptrs to StorageReplicatedMergeTree [#CLICKHOUSE-3664] 2018-03-23 23:30:04 +03:00
proller
405ad39cd4 Fix test 2018-03-23 22:45:33 +03:00
Nikolai Kochetov
cc2c1f5171 removed createImmutable 2018-03-23 22:24:55 +03:00
Alexey Milovidov
f5896d35b4 Removed duplicate code that could lead to wrong behaviour #1959 2018-03-23 21:20:54 +03:00
Alexey Milovidov
046346645f Minor modifications #1959 2018-03-23 19:55:35 +03:00
alexey-milovidov
d298f9af5c
Merge pull request #1959 from kshvakov/show-server-group-in-client
Возможность показывать группу сервера при подключении в клиенте
2018-03-23 19:26:22 +03:00
proller
7cdb6b5de1 Fix test 2018-03-23 19:25:02 +03:00
alexey-milovidov
3f320eb031
Merge branch 'master' into show-server-group-in-client 2018-03-23 19:23:25 +03:00
alexey-milovidov
7ba82eb359
Update Defines.h 2018-03-23 19:18:36 +03:00
proller
caf83a650e libs: compiling with msvc2017 (#1996)
* Allow use bundled *ssl library

* fix

* Add submodule

* Fixes

* fix

* fixes

* fixes

* fix

* fix

* update poco

* fix warnings

* fix

* fix

* Build fixes

* Build fixes

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* add bat

* no zookeeper in dbms

* update boost

* fixes

* fixes

* fix

* fix

* fix

* fix

* try fix

* try fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Better

* fix

* dh verbose

* fix

* dh verbose

* fix

* clean

* Update LocalDate.h

* Update LocalDateTime.h
2018-03-23 19:05:14 +03:00
zhang2014
06d71a9493 ISSUES-218 add test for distributed & case when then 2018-03-23 18:42:06 +03:00
proller
b87cfd2924 Add tests 2018-03-23 18:36:50 +03:00
Tobias Adamson
c76d1a008d Make sure to split the topics args list on ',' 2018-03-23 22:13:09 +08:00
KochetovNicolai
aacc0bee53
Merge pull request #2097 from yandex/CLICKHOUSE-3663
Clickhouse 3663
2018-03-23 14:56:08 +03:00
Nikolai Kochetov
2f468f1ae1 fix test [#CLICKHOUSE-3663] 2018-03-23 13:50:20 +03:00
Silviu Caragea
23aee5ed5b Task cannot be scheduled and deactivated in the same time. 2018-03-23 10:05:58 +02:00
alexey-milovidov
cf52c2840a
Merge branch 'master' into better-range-reader 2018-03-23 02:14:40 +03:00
Alexey Milovidov
0a06971e43 Merge remote-tracking branch 'origin/master' into libzookeeper-rewrite 2018-03-23 02:10:00 +03:00
robot-metrika-test
6249245018 Auto version update to [54371] 2018-03-23 01:11:43 +03:00
alexey-milovidov
a75d5525e7 Update MergeTreeDataPartChecksum.h 2018-03-23 00:26:46 +03:00
Vitaliy Lyudvichenko
883de7a2a6 startup() waits for initialization of ReplicatedMergeTreeRestartingThread. [#CLICKHOUSE-2] 2018-03-23 00:26:46 +03:00
Vitaliy Lyudvichenko
fe8dfd3038 Add minimalistic checksums. [#CLICKHOUSE-3660] 2018-03-23 00:26:46 +03:00
Vitaliy Lyudvichenko
7c2a99c9b8 Introduced MinimalisticDataPartChecksums. [#CLICKHOUSE-3660] 2018-03-23 00:26:46 +03:00
Silviu Caragea
24de8d624f Fix for corner case where executing task will occupy not one but two threads in the pool which are in short supply. 2018-03-22 22:26:03 +02:00
Nikolai Kochetov
6f60e6ee4f added test [#CLICKHOUSE-3663] 2018-03-22 23:18:11 +03:00
Nikolai Kochetov
cbfd862fa3 fix reading with evaluated defaults [#CLICKHOUSE-3663] 2018-03-22 23:18:11 +03:00
Nikolai Kochetov
74211b5bf8 added test [#CLICKHOUSE-3663] 2018-03-22 22:54:21 +03:00
Nikolai Kochetov
97624d7d78 fix reading with evaluated defaults [#CLICKHOUSE-3663] 2018-03-22 22:53:19 +03:00
Alexey Milovidov
f4b742e9fb Fixed segfault in case of bad argument types for some aggregate functions [#CLICKHOUSE-2] 2018-03-22 18:37:24 +03:00
Silviu Caragea
a2dc16a582 Remove the link between TaskHandles and ZooKeeper 2018-03-22 17:21:14 +02:00
Silviu Caragea
6629b03af9 Fixed few of the observation of the code review 2018-03-22 17:09:30 +02:00
Silviu Caragea
f2479673d6 Fix BackgroundSchedulePool 2018-03-22 17:07:12 +02:00
Silviu Caragea
b24a4b2111 Add back the buggy BackgroundSchedulePool 2018-03-22 17:07:12 +02:00
Alexey Milovidov
6d889da41e Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-22 15:15:23 +03:00
Alexey Milovidov
d690c24198 Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-22 00:40:53 +03:00
Nikolai Kochetov
5c91eecb2b fix test 2018-03-21 21:43:17 +03:00
Nikolai Kochetov
bd3f2ea361 Merge branch 'stricter-mutable-column-semantic-3' into stricter-mutable-column-semantic-2 2018-03-20 22:47:40 +03:00
Nikolai Kochetov
476d4b339c Immutable construction for columns 2018-03-20 22:45:10 +03:00
proller
9c9e918b78 Fix flapping test 00371_union_all 2018-03-20 22:18:56 +03:00
proller
f6f505ea33
better test in pbuilder (#2080)
* better test in pbuilder
2018-03-20 20:24:39 +03:00
Nikolai Kochetov
1f4db58d53 fix test 2018-03-20 20:01:13 +03:00
Nikolai Kochetov
a399c17f01 && - qualified IColumn::mutate 2018-03-20 17:01:00 +03:00
Alexey Zatelepin
3effbc4411 add test [#CLICKHOUSE-3659] 2018-03-20 16:44:36 +03:00
Alexey Zatelepin
86d53b34a5 forward ALTER PARTITION statements for materialized views [#CLICKHOUSE-3659] 2018-03-20 16:44:36 +03:00
Alexey Milovidov
76f9e0032d Using different ZooKeeper library (development) [#CLICKHOUSE-2] 2018-03-20 00:34:56 +03:00
Alexey Milovidov
644c5e67b6 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 22:25:21 +03:00
Alexey Milovidov
c8f8dc429c Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 22:23:05 +03:00
Alexey Milovidov
831d38fd59 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 22:07:50 +03:00
Vitaliy Lyudvichenko
1a0833d0e7 Fixed small race condition in ClusterCopier. [#CLICKHOUSE-2] 2018-03-19 21:30:49 +03:00
Vitaliy Lyudvichenko
e41b653f14 Parallelized block split in sync Distributed insert. [#CLICKHOUSE-2] 2018-03-19 21:26:52 +03:00
Alexey Zatelepin
b1274f7b34 fix deadlock in StorageKafka::shutdown() in case startup() wasn't called #2075 2018-03-19 20:52:48 +03:00
Alexey Milovidov
72ededeab5 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 20:45:30 +03:00
Alexey Milovidov
7ca8b82ed1 Merge branch 'master' into libzookeeper-rewrite 2018-03-19 20:02:22 +03:00
Alexey Milovidov
590feb02b5 Fixed error; added test from Alexander Zaitsev [#CLICKHOUSE-2] 2018-03-19 17:29:40 +03:00
Alexey Milovidov
1b0a43ce55 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 17:19:32 +03:00
Alexey Milovidov
c5ddbbb1ab Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 16:31:09 +03:00
Alexey Milovidov
5146ab8acc Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 03:32:59 +03:00
Alexey Milovidov
0d11b75def Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 02:11:57 +03:00
Alexey Milovidov
347a83029a Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-19 00:53:56 +03:00
Alexey Milovidov
c68af7f09a Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-18 23:25:40 +03:00
Alexey Milovidov
a4e1bd5bc4 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-18 21:31:18 +03:00
Alexey Milovidov
c1c5aa00ca Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-18 21:14:01 +03:00
Alexey Milovidov
30196169a1 Rewriting ZooKeeper library [#CLICKHOUSE-2] 2018-03-18 18:23:06 +03:00
proller
bbb12e89f0 Better listen_try, pbuilder fix (#2068)
* rename libboost/boost_1_65_0 -> contrib/boost ; make submodule ; update boost to 1.66.0

* Update contrib/boost

* Update contrib/boost

* Add comments

* Fix

* Pbuilder fix

* Better listen_try

* Much better listen_try

* Revert "remove ipv6 listen_host from docker_related_config to allow running in ipv4-only dockers"

This reverts commit 3cfa4c3e65.

* Fix freebsd and macos build
2018-03-18 12:02:29 +03:00
Alexey Milovidov
90aa6374a7 Revert "Preparation #2026"
This reverts commit 60ecc03253.
2018-03-17 21:29:50 +03:00
Alexey Milovidov
b916f17215 Implemented 'uniq' family of functions for generic case including Array argument #2010 2018-03-17 21:14:05 +03:00
Alexey Milovidov
60701afa3e Removed unused code #2010 2018-03-17 21:02:19 +03:00
Alexey Milovidov
5356637e7b Merge branch 'master' of github.com:yandex/ClickHouse 2018-03-17 20:46:34 +03:00
Alexey Milovidov
60ecc03253 Preparation #2026 2018-03-17 20:46:25 +03:00
Kirill Shvakov
109b73b947 fix CREATE TEMPORARY TABLE IF NOT EXISTS 2018-03-17 01:55:07 +03:00
Vitaliy Lyudvichenko
1f28410490 Fixed false positive error messages for queries with IN and ARRAY JOIN. [#CLICKHOUSE-2] 2018-03-16 17:11:49 +03:00
robot-metrika-test
86e4099cc2 Auto version update to [54370] 2018-03-16 12:01:50 +03:00
Alexey Milovidov
a6892b8813 Fixed test [#CLICKHOUSE-2] 2018-03-16 12:00:04 +03:00
robot-metrika-test
9126692441 Auto version update to [54369] 2018-03-16 10:31:37 +03:00
Alexey Milovidov
796c65a09f Added test [#CLICKHOUSE-2] 2018-03-16 10:04:51 +03:00
Alexey Milovidov
02c67e2b13 Fixed error [#CLICKHOUSE-2] 2018-03-16 09:51:37 +03:00
Alexey Milovidov
e3e7c8c256 Merge branch 'master' of github.com:yandex/ClickHouse 2018-03-16 09:39:42 +03:00
Alexey Milovidov
cf6112fd37 Fixed half of bad code [#CLICKHOUSE-2] 2018-03-16 09:39:32 +03:00