Commit Graph

5859 Commits

Author SHA1 Message Date
alexey-milovidov
e122cf0bcf Merge pull request #914 from yandex/database-dictionary
DatabaseDictionary
2017-06-25 22:02:45 +03:00
Alexey Milovidov
8f145da1e8 Preparation [#CLICKHOUSE-2]. 2017-06-25 06:43:59 +03:00
Alexey Milovidov
dbc61a6a43 Added support for SQL-style quoting [#CLICKHOUSE-20]. 2017-06-25 06:43:37 +03:00
Alexey Milovidov
275a1d4651 Improvement [#CLICKHOUSE-3091]. 2017-06-25 05:48:38 +03:00
Alexey Milovidov
90a1ae1062 Fixed error in prev. revision [#CLICKHOUSE-3091]. 2017-06-25 05:22:10 +03:00
Alexey Milovidov
516b095423 Fixed error in prev. revision [#CLICKHOUSE-3091]. 2017-06-25 04:54:25 +03:00
Alexey Milovidov
8228acd3ea Removed obsolete code that was relevant only in extremely rare case of transforming CollapsingMergeTree to ReplicatedCollapsingMergeTree through ATTACHing data parts and while some considerations about data order in table is important [#CLICKHOUSE-3091]. 2017-06-25 03:51:51 +03:00
Alexey Milovidov
3c660fd65b Fixed translation errors [#CLICKHOUSE-3091]. 2017-06-25 03:17:08 +03:00
Alexey Milovidov
28e9e06992 Preparation: locking block number only after write to filesystem; removed obsolete code [#CLICKHOUSE-3091]. 2017-06-25 03:01:10 +03:00
Alexey Milovidov
c7f35997f5 Removed unused variable [#CLICKHOUSE-2]. 2017-06-25 01:36:43 +03:00
Alexey Milovidov
30b6c36b83 Added support for identifiers in double quotes [#CLICKHOUSE-20]. 2017-06-24 04:49:15 +03:00
proller
4db8d09de9 Reorganize includes. part 1 (#921)
* Make libunwind optional. Allow use custom libcctz

* fix

* Fix

* fix

* Update BaseDaemon.cpp

* Update CMakeLists.txt

* Reorganize includes. part 1

* Update dbms_include.cmake

* Reorganize includes. part 2

* Reorganize includes. part 3

* dbms/src/Common/ThreadPool -> libs/libcommon

* Reorganize includes. part 4

* Fix print_include_directories

* Update thread_creation_latency.cpp

* Update StringRef.h
2017-06-23 23:22:35 +03:00
Nikolai Kochetov
c2ddb63218 merged with remote 2017-06-23 19:04:30 +03:00
Nikolai Kochetov
adb632319d DatabaseDictionary creates new storage for every create table query; drop table works untill restart 2017-06-23 18:55:45 +03:00
Alexey Milovidov
061c214c16 Fixed error [#CLICKHOUSE-3074]. 2017-06-23 09:57:55 +03:00
Alexey Milovidov
3c33f1841f Little better [#CLICKHOUSE-2]. 2017-06-23 09:45:48 +03:00
Alexey Milovidov
f409cad0ac Miscellaneous [#CLICKHOUSE-3091]. 2017-06-23 09:18:00 +03:00
Alexey Milovidov
7f48f1a7f5 Fixed error [#CLICKHOUSE-2]. 2017-06-23 09:11:00 +03:00
Alexey Milovidov
d51245809f Fixed error in SessionCleaner [#CLICKHOUSE-2949]. 2017-06-23 08:53:04 +03:00
Alexey Milovidov
324fc7ef3e Miscellaneous [#CLICKHOUSE-3094]. 2017-06-23 08:39:27 +03:00
Alexey Zatelepin
87fbfe0950 correct comparisons for strings with null bytes [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +03:00
Alexey Zatelepin
cc87d4ad80 add string comparisons performance test [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +03:00
Alexey Milovidov
7d732343eb Fixed error in prev. revision [#CLICKHOUSE-3091]. 2017-06-22 22:52:06 +03:00
Alexey Milovidov
7b7b3ac3d8 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-22 22:45:36 +03:00
proller
70d9fb06b4 PerformanceTest: use getMultiple*FromConfig, fix debug helpers (#915)
* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file
2017-06-22 21:56:40 +03:00
Alexey Milovidov
425156e32c Raised up limit on max size of parts to merge [#CLICKHOUSE-3091]. 2017-06-22 21:29:40 +03:00
Alexey Milovidov
990e62e579 Miscellaneous [#CLICKHOUSE-2]. 2017-06-22 21:16:28 +03:00
proller
23fa44aa50 Server startup: print info about available ram and number of cores/threads (#906)
* Fix missing includes

* ComplexKeyCacheDictionary: Move includes to .cpp

* Fixing PerformanceTest: table_exists condition, move getMemoryAmount function to file. Add more debug helpers

* Multiplatform memory size getter

* Server startup: print info about available ram and number of cores/threads

* Requested changes

* Requested changes

* Requested changes

* fix

* Requested changes

* Requested changes
2017-06-22 21:08:14 +03:00
alexey-milovidov
145912724a Update DatabaseDictionary.h 2017-06-22 21:00:29 +03:00
alexey-milovidov
11b81e6683 Update StorageDictionary.cpp 2017-06-22 20:59:19 +03:00
Alexey Milovidov
6eb06774d3 Addition to prev. revision [#CLICKHOUSE-3091]. 2017-06-22 19:29:15 +03:00
Alexey Milovidov
c96719685c Lowered max_delay_to_insert to one second, because higher values are non practical and could be harmful for usual failover logic in client apps [#CLICKHOUSE-3091]. 2017-06-22 19:17:01 +03:00
Alexey Milovidov
941c281221 Updated comment [#CLICKHOUSE-3091]. 2017-06-22 19:09:03 +03:00
Alexey Milovidov
22e7070fb0 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-22 19:07:57 +03:00
Alexey Milovidov
bb7fc04e2b Whitespaces [#CLICKHOUSE-2]. 2017-06-22 19:07:52 +03:00
proller
8ef51bf19b Fixing PerformanceTest: table_exists condition, move getMemoryAmount function to file. Add more debug helpers (#905)
* Fix missing includes

* ComplexKeyCacheDictionary: Move includes to .cpp

* Fixing PerformanceTest: table_exists condition, move getMemoryAmount function to file. Add more debug helpers

* Multiplatform memory size getter

* Requested changes

* Requested changes

* Requested changes

* fix

* Requested changes
2017-06-22 18:57:37 +03:00
Nikolai Kochetov
4c114bc3a1 added DatabaseDictionary 2017-06-22 18:44:19 +03:00
Vitaliy Lyudvichenko
d7db235269 Better names and log messages. [#CLICKHOUSE-2896] 2017-06-22 18:32:09 +03:00
Vitaliy Lyudvichenko
99f502d5e0 Support OPTIMIZE query on non-leader replica. [#CLICKHOUSE-2] 2017-06-22 18:01:08 +03:00
proller
51b41aa0e3 Fix build 2017-06-22 17:14:13 +03:00
Vitaliy Lyudvichenko
eff3588f28 Rename DROP COLUMN FROM PARTITION -> CLEAR COLUMN IN PARTITION. [#CLICKHOUSE-2896] 2017-06-22 16:18:19 +03:00
Alexey Milovidov
4af5a9c7ba Merge branch 'cache_parts_that_cannot_be_merged' 2017-06-22 03:56:44 +03:00
Alexey Milovidov
946c275dfb Added missing case for broken files in StorageDistributed [#CLICKHOUSE-3091]. 2017-06-22 03:56:17 +03:00
Alexey Milovidov
db546dc827 Caching parts that cannot be merged for some time [#CLICKHOUSE-3091]. 2017-06-22 03:28:44 +03:00
Vitaliy Lyudvichenko
53adb891b3 Add replicated DROP COLUMN FROM partition for optimistic case. [#CLICKHOUSE-2896] 2017-06-22 00:56:38 +03:00
Alexey Zatelepin
374e92f76e performance-test: allow same stop condition to be present in all_of and any_of sections [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Zatelepin
1783d233e2 performance-test: do not take cancelled query times into account [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Zatelepin
0bc0150682 performance-test: add server version to json output [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Zatelepin
53aa599dc7 performance-test: rename params for clarity [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Zatelepin
678d1ef605 performance-test: fix incorrect results reporting [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Zatelepin
ef2cf67736 performance-test: allow several queries in xml scenarios [#CLICKHOUSE-3086] 2017-06-21 22:20:57 +03:00
Alexey Milovidov
7bdc87adf0 Loosened threshold on broken parts in filesystem [#CLICKHOUSE-3076]. 2017-06-21 22:11:11 +03:00
Alexey Milovidov
5c322f5756 Loosened threshold on amount of replica inconsistency to refuse server startup [#CLICKHOUSE-3076]. 2017-06-21 22:07:08 +03:00
Alexey Milovidov
f16eaa99a1 Fixed error with unusual case of ARRAY JOIN [#METR-25109]. 2017-06-21 21:21:37 +03:00
Alexey Milovidov
4738094d7e Fixed error when dynamically compiled .so file is broken [#METR-25550]. 2017-06-21 20:31:22 +03:00
Alexey Milovidov
6df5d556e5 Changed namespace [#DEVTOOLS-3381]. 2017-06-21 11:35:38 +03:00
Alexey Milovidov
a99f25f2a0 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-21 04:24:10 +03:00
Alexey Milovidov
604de2bfeb Better [#DEVTOOLS-3381]. 2017-06-21 04:24:05 +03:00
Vitaliy Lyudvichenko
8b72f573d8 Get rid of SET GLOBAL command. [#MTRSADMIN-3068] 2017-06-20 22:26:59 +03:00
Vitaliy Lyudvichenko
2167e4efdd Removed SET GLOBAL query. [#MTRSADMIN-3068]
It even was not supported properly in console client.
2017-06-20 22:26:59 +03:00
Vitaliy Lyudvichenko
353dba545d Correct cascade of user setting calculation. [#MTRSADMIN-3068] [#CLICKHOUSE-2906] 2017-06-20 22:26:59 +03:00
proller
9c7d30e0df Fix missing includes 2017-06-20 17:16:51 +03:00
Георгий Кондратьев
a736ef618a Put ClickHouse variant of CityHash into DB namespace [#DEVTOOLS-3381]
This avoids symbol conflict when linking external applications that use another
variant of CityHash in the global namespace with ClickHouse libraries.
2017-06-20 12:25:16 +03:00
alexey-milovidov
057b919f20 Update ArrayCache.h 2017-06-20 10:51:53 +03:00
alexey-milovidov
ec5d2c3914 Update Allocator.cpp 2017-06-20 10:51:53 +03:00
Георгий Кондратьев
4d57012c62 Fix older Darwin build [#DEVTOOLS-3381] 2017-06-20 10:51:53 +03:00
Vitaliy Lyudvichenko
534b766250 CREATE of MergeTree checks that data dir is empty. [#CLICKHOUSE-3083] 2017-06-20 10:49:18 +03:00
Vitaliy Lyudvichenko
515ffa5262 Add extra check. [#CLICKHOUSE-3083] 2017-06-20 10:49:18 +03:00
Vitaliy Lyudvichenko
a098fb170a Avoid creating multiple global Context. [#CLICKHOUSE-3083] 2017-06-20 10:49:18 +03:00
Alexey Milovidov
150d3bb60f Removed useless code [#CLICKHOUSE-2]. 2017-06-20 10:36:16 +03:00
Георгий Кондратьев
47161f8425 Specify all link dependencies [#DEVTOOLS-3381]
Tested with:

export LDFLAGS="-Wl,--no-undefined"
cmake -DUSE_STATIC_LIBRARIES=OFF -DBUILD_SHARED_LIBS=ON
2017-06-20 00:53:12 +03:00
Alexey Milovidov
47484b4bed Tiny modifications [#DEVTOOLS-3381]. 2017-06-20 00:06:46 +03:00
Георгий Кондратьев
7ca75180c7 Fix type name [#DEVTOOLS-3381] 2017-06-19 23:50:56 +03:00
Alexey Milovidov
1b17f6191b Addition to prev. revision [#DEVTOOLS-3381]. 2017-06-19 23:09:11 +03:00
Alexey Milovidov
f578bbd459 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-19 23:06:53 +03:00
Alexey Milovidov
05accbdcbe Removed cyclic dependency [#DEVTOOLS-3381]. 2017-06-19 23:06:35 +03:00
Vitaliy Lyudvichenko
b772eaa3a8 Resolved #891. Fixed aliases for empty scalar subqueries. [#CLICKHOUSE-3] 2017-06-19 22:40:12 +03:00
Alexey Milovidov
b0c0432b71 Fixed build [#CLICKHOUSE-31]. 2017-06-19 06:18:30 +03:00
Alexey Milovidov
eb47356e4f Qualified names: continued [#CLICKHOUSE-31]. 2017-06-19 06:05:05 +03:00
Alexey Milovidov
6fe3e432c5 Implemented qualified identifiers in a bad way [#CLICKHOUSE-31]. 2017-06-19 05:14:18 +03:00
Alexey Milovidov
401d922a4b Tiny modifications [#CLICKHOUSE-3044]. 2017-06-18 09:11:49 +03:00
Alexey Milovidov
f51db5e1f6 Fixed build [#CLICKHOUSE-3044]. 2017-06-18 08:55:46 +03:00
Alexey Milovidov
6be0428ffe Preparation [#CLICKHOUSE-31]. 2017-06-18 08:44:09 +03:00
Alexey Milovidov
d64f2beaf8 Fixed build [#CLICKHOUSE-3044]. 2017-06-18 08:43:29 +03:00
Alexey Milovidov
942c1dea21 Fixed build [#CLICKHOUSE-31]. 2017-06-18 07:09:04 +03:00
Alexey Milovidov
62be911d79 Additions to prev. revision [#CLICKHOUSE-31]. 2017-06-18 06:35:25 +03:00
Alexey Milovidov
313e52279d UNION ALL rewrite: preparation [#CLICKHOUSE-31]. 2017-06-18 06:35:25 +03:00
Alexey Milovidov
a726c68865 Check Nullable(... Nullable) early [#CLICKHOUSE-2]. 2017-06-16 21:39:09 +03:00
Alexey Milovidov
8343cf3578 Fixed error with NULLs [#CLICKHOUSE-2993]. 2017-06-16 21:05:45 +03:00
Alexey Milovidov
ee49c37fa6 Whitespaces [#CLICKHOUSE-2]. 2017-06-16 19:23:23 +03:00
Alexey Milovidov
6aa69c06cf Moved tools sources out of library code [#CLICKHOUSE-2]. 2017-06-16 19:20:51 +03:00
Alexey Milovidov
7a0ffc9986 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-16 19:19:42 +03:00
Alexey Zatelepin
3c6b278b3d fix infinite recursion in StorageMerge::isRemote() [#CLICKHOUSE-2911] 2017-06-16 19:19:15 +03:00
Alexey Milovidov
b1a645cb6d Moved tools sources out of library code [#CLICKHOUSE-2]. 2017-06-16 19:16:22 +03:00
Vitaliy Lyudvichenko
aef0bf7e2e Fix trying to load database.sql from incorrect path. [#CLICKHOUSE-3044] 2017-06-16 19:08:24 +03:00
Vitaliy Lyudvichenko
67fdd0f544 Load the system database first. [#CLICKHOUSE-3044] 2017-06-16 19:08:24 +03:00
Alex Zatelepin
4cd9df27ab fix infinite loop in StorageMerge::isRemote() [#CLICKHOUSE-2911] 2017-06-16 03:21:00 +03:00
alexey-milovidov
43a18b164d Merge pull request #883 from yandex/fix-merge-global-in
Fix GLOBAL IN for Merge table over Distributed tables
2017-06-15 23:09:51 +03:00
alexey-milovidov
f2c1858f78 Merge pull request #882 from proller/freebsd
Freebsd and macos fixes
2017-06-15 23:07:33 +03:00
proller
4c7dd6ff8b Freebsd and macos fixes 2017-06-15 22:39:35 +03:00
Alexey Zatelepin
8ee85e6440 calculate isRemote() from underlying tables of StorageMerge [#CLICKHOUSE-2911] 2017-06-15 22:24:59 +03:00
Alexey Milovidov
0743cfe6d7 Removed code that was used solely by Metrika [#DEVTOOLS-3343]. 2017-06-15 21:27:51 +03:00
Alexey Milovidov
9bf083625d Removed support for QuickLZ (obsolete) [#CLICKHOUSE-2]. 2017-06-15 21:21:59 +03:00
Alexey Milovidov
4f3738c527 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-15 20:56:05 +03:00
Alexey Milovidov
bc45598c08 Fixed name [#CLICKHOUSE-2]. 2017-06-15 20:55:57 +03:00
Vitaliy Lyudvichenko
63ac609e8b Avoid overestimation of avg. column element size. [#CLICKHOUSE-3058] 2017-06-15 20:33:03 +03:00
Nikolai Kochetov
221c05402f fixed bytes_allocated counter for cache dictionaries 2017-06-15 20:31:48 +03:00
Alexey Milovidov
3ec14e0481 Fixed error [#CLICKHOUSE-4]. 2017-06-14 22:31:05 +03:00
Alexey Zatelepin
3b33d3fbab force reconnect by default for connections returned by ConnectionPool [#CLICKHOUSE-3068] 2017-06-14 22:16:19 +03:00
LiuCong
55b5f9bae3 Fixed a comment typo of Server/Server.cpp 2017-06-13 22:27:39 +03:00
Vitaliy Lyudvichenko
6d74a5f5d1 Resolves #851. Table was in shutdown state after aborted drop. [#CLICKHOUSE-2184] 2017-06-13 22:27:18 +03:00
Alexey Milovidov
91b5599412 Miscellaneous [#CLICKHOUSE-2]. 2017-06-13 09:22:20 +03:00
Alexey Milovidov
1e45dc5480 Fixed build [#CLICKHOUSE-2]. 2017-06-13 09:21:52 +03:00
Alexey Milovidov
f1f336275e Removed useless file [#CLICKHOUSE-2]. 2017-06-13 09:12:13 +03:00
Alexey Milovidov
10f5543a49 Revert "Add support for skipping whitespaces"
This reverts commit 704a79ee6c.
2017-06-13 09:09:59 +03:00
Alexey Milovidov
49e8473456 Fixed error [#CLICKHOUSE-2]. 2017-06-13 08:55:04 +03:00
Alexey Milovidov
8ba0ed9aeb Less dependencies [#CLICKHOUSE-2]. 2017-06-13 08:15:12 +03:00
Alexey Milovidov
a73790f17d Less dependencies [#CLICKHOUSE-2]. 2017-06-13 08:14:24 +03:00
Alexey Milovidov
2cc7c776ce Fixed build [#CLICKHOUSE-2]. 2017-06-13 07:50:26 +03:00
Alexey Milovidov
a782f81f8f Moved common code from Functions; fixed build after merge [#CLICKHOUSE-2]. 2017-06-13 07:45:30 +03:00
Alexey Milovidov
77aa0ed3d2 Fixed build [#CLICKHOUSE-31]. 2017-06-13 07:33:07 +03:00
alexey-milovidov
a669136ac2 Merge branch 'master' into CLICKHOUSE-5 2017-06-13 07:30:36 +03:00
alexey-milovidov
e03ae570f7 Merge pull request #763 from yandex/storage-dictionary
Storage dictionary
2017-06-13 07:20:46 +03:00
alexey-milovidov
3f6cccaaa1 Merge pull request #834 from luc1ph3r/Add-performance-test
Add performance test
2017-06-13 07:20:01 +03:00
Vitaliy Lyudvichenko
49eab81d9a Fix: ReshardingWorker doesn't finish if ZooKeeper session expired. [#CLICKHOUSE-2] 2017-06-13 07:15:25 +03:00
Alexey Milovidov
74bd90701e Removed useless code [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
3ddea6b260 Removed useless code [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
1c219c5a7b Addition to prev. revision [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
782fe332b1 Miscellaneous [#CLICKHOUSE-31]. 2017-06-13 07:13:54 +03:00
Alexey Milovidov
43fedfecea Get rid of INSERT ID [#CLICKHOUSE-31]. 2017-06-13 07:13:20 +03:00
Alexey Milovidov
1790eeeb5e Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-13 07:13:00 +03:00
Alexey Milovidov
5aa1a1da27 Modified comment [#CLICKHOUSE-31]. 2017-06-13 07:12:51 +03:00
proller
f6f85440d4 Fix compile with gcc7 2017-06-13 02:50:34 +03:00
Alexey Milovidov
7f87bb07da Fixed linkage [#CLICKHOUSE-2]. 2017-06-12 03:26:22 +03:00
Alexey Milovidov
e9ea838c66 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-10 13:43:49 +03:00
Alexey Milovidov
45c76803a9 Moved table functions to separate library; fixed errors; improved testability [#CLICKHOUSE-31]. 2017-06-10 12:04:31 +03:00
Alexey Milovidov
5548f1fdd9 Analyzers: Memoizing table functions [#CLICKHOUSE-31] 2017-06-10 08:31:14 +03:00
Alexey Milovidov
d5ca92093a Fixed comment [#CLICKHOUSE-2]. 2017-06-10 08:30:07 +03:00
Nikolai Kochetov
b872751c5e Merge branch 'master' into storage-dictionary 2017-06-09 11:38:23 +03:00
Alexey Zatelepin
877283b589 fix sorting when all columns are const [#CLICKHOUSE-3062] 2017-06-09 09:13:20 +03:00
Alexey Zatelepin
b03c87be39 fix nulls sorting when limit is greater than rows count [#CLICKHOUSE-3061] 2017-06-09 09:13:20 +03:00
Nikolai Kochetov
2f7f9a328e changed ComplexKeyCacheDictionary key serialization 2017-06-08 20:51:46 +03:00
Nikolai Kochetov
679cccc52d renamed *.hpp to *.h in DictionaryBlickInputStream 2017-06-08 16:35:35 +03:00
Nikolai Kochetov
bff77d1bae merged with master 2017-06-08 15:00:11 +03:00
Alexey Milovidov
a4b28db411 Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-08 09:29:49 +03:00
Vitaliy Lyudvichenko
7ab88b8055 Fix HTTP sessions test. [#CLICKHOUSE-3] 2017-06-07 22:06:43 +03:00
Alexey Milovidov
7c6f647559 Removed questionable code [#CLICKHOUSE-2]. 2017-06-07 04:52:11 +03:00
Alexey Milovidov
d5a83f6cef Removed questionable code [#CLICKHOUSE-2]. 2017-06-07 04:49:23 +03:00
Alexey Milovidov
38885d00a3 Merge branch 'storage-startup-method' 2017-06-07 02:27:16 +03:00
Alexey Milovidov
dc0d5b604f Addition to prev. revision [#CLICKHOUSE-2]. 2017-06-06 22:06:44 +03:00
Alexey Milovidov
50b84fcc9d Removed duplicate code [#CLICKHOUSE-2]. 2017-06-06 21:48:38 +03:00
Alexey Milovidov
0d7d379b44 Removed duplicate code [#CLICKHOUSE-2]. 2017-06-06 21:36:13 +03:00
Alexey Milovidov
9c5ddce06d Get rid of .hpp files [#CLICKHOUSE-2]. 2017-06-06 20:18:32 +03:00
Alexey Milovidov
9ebf0b633f Added IStorage::startup method to avoid starting replication and merging threads too early during server startup [#CLICKHOUSE-2]. 2017-06-06 20:06:14 +03:00
Vitaliy Lyudvichenko
cce302588a Revert "Avoid extra context copying. [#CLICKHOUSE-3023]"
This reverts commit 87af5b5576.
2017-06-06 16:29:08 +03:00
Alexey Milovidov
153693cd4c Non significant modifications [#CLICKHOUSE-3]. 2017-06-05 23:43:23 +03:00
Alexey Milovidov
aba8432477 Fixed bad translation [#CLICKHOUSE-3]. 2017-06-05 23:18:15 +03:00
Alexey Milovidov
9593119a64 Fixed error after merge; tiny modification [#CLICKHOUSE-2]. 2017-06-05 17:40:44 +03:00
alexey-milovidov
0fb00dc88a Update AddingDefaultBlockOutputStream.h 2017-06-05 17:25:10 +03:00
Vitaliy Lyudvichenko
1e4906816c Avoid SIGSEGV in SystemLog destructors. [#CLICKHOUSE-3023] 2017-06-05 17:25:10 +03:00
Vitaliy Lyudvichenko
87af5b5576 Avoid extra context copying. [#CLICKHOUSE-3023] 2017-06-05 17:25:10 +03:00
Nikolai Kochetov
04e1a23d1a removed IBlockInputStream.h from IDictionary.h 2017-06-05 13:01:47 +03:00
Nikolai Kochetov
bbd6a1f238 added DictionaryBlockInpustStream support for TrieDictionary 2017-06-05 12:02:05 +03:00
f1yegor
8e261e34c5 translate comments: Interpreters 2017-06-03 19:21:00 +03:00
Alexey Milovidov
efc12f2334 Sessions in HTTP interface: modifications after merge [#CLICKHOUSE-2949]. 2017-06-03 00:01:17 +03:00
Alexey Milovidov
8fb0afe74e Fixed build of tests [#CLICKHOUSE-2]. 2017-06-02 22:35:37 +03:00
Sergey V. Galtsev
07f14e05ee Implement sessions in HTTP interface [#CLICKHOUSE-2949]. 2017-06-02 22:35:05 +03:00
alexey-milovidov
147b2f62b2 Update StorageReplicatedMergeTree.cpp 2017-06-02 20:02:59 +04:00
alexey-milovidov
12e6024abd Update StorageReplicatedMergeTree.h 2017-06-02 20:02:59 +04:00
Vitaliy Lyudvichenko
6bddd4c1c5 Clean incomplete part nodes in ZooKeeper. [#CLICKHOUSE-3040] 2017-06-02 20:02:59 +04:00
Alexey Milovidov
ba499585cd Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-02 18:54:43 +03:00
Alexey Milovidov
80080f1ad6 Small refinements [#CLICKHOUSE-2]. 2017-06-02 18:54:39 +03:00
Alexey Milovidov
5bd9342c0b Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-01 21:13:42 +03:00
Alexey Milovidov
862a304db2 Small refinements [#CLICKHOUSE-2]. 2017-06-01 16:41:58 +03:00
Vitaliy Lyudvichenko
1c367fc666 Fix DDLLogEntry::CURRENT_VERSION variable issue. [#CLICKHOUSE-5] 2017-06-01 13:49:22 +03:00
Vitaliy Lyudvichenko
6db8da82c6 Add requested changes. [#CLICKHOUSE-5] 2017-06-01 13:49:21 +03:00
Vitaliy Lyudvichenko
73e2aab9ec Updated integration tests. Add integration test for DDL. [#CLICKHOUSE-5] 2017-06-01 13:49:21 +03:00
Vitaliy Lyudvichenko
226d84be09 Update doc. [#CLICKHOUSE-5] 2017-06-01 13:49:21 +03:00
Vitaliy Lyudvichenko
55aa8217f3 Disable DDL ALTER for replicated tables. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
3a2c1a195d Add ZooKeeper session recovering and trashy integration test. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
9fd8d6b79f Add ALTER queries. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
48ade83090 Parsers refactoring. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
91f45c628b Add queue cleanup. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
feb1db051d Add status stream for distributed DDLs. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
4322b0c5a9 Implemented global ZK queue for DDLs. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
209015574f Workable version for CREATE DROP w/o ZK tests. [#CLICKHOUSE-5] 2017-06-01 13:49:20 +03:00
Vitaliy Lyudvichenko
aa7504a7f5 Distributed DDL PR rebase. [#CLICKHOUSE-5] 2017-06-01 13:49:19 +03:00
Nikolai Kochetov
d606436023 using MergeTreeDataPartChecksums to calculate marks_size in system.parts 2017-05-31 20:54:40 +04:00
Nikolai Kochetov
c58e98b607 added marks_size column in system.parts 2017-05-31 20:54:40 +04:00
Vitaliy Lyudvichenko
1a4b0eb355 Remove tmp part directories on server start. [#CLICKHOUSE-3044] 2017-05-31 18:01:25 +03:00
Nikolai Kochetov
334fa11d12 deleted IBlickInputStream.h include form IDictionary.h 2017-05-31 12:05:44 +03:00
ivanzhukov
52b5f18db9 Code Review 2017-05-31 00:36:45 +03:00
Nikolai Kochetov
38e9e837c5 style fixes 2017-05-30 18:02:44 +03:00
Nikolai Kochetov
7c736b12ef added raw serialization functions for IColumn; changed key serialization in ComplexKeyCacheDictionary; style fixes 2017-05-29 20:26:45 +03:00
Nikolai Kochetov
787bf12572 merged with master 2017-05-29 20:23:14 +03:00
proller
27d675465d Remove wrong char from code 2017-05-29 14:18:51 +03:00
f1yegor
0bf5182020 translate comments: etc 2017-05-28 16:32:59 +02:00
f1yegor
b3e0533860 translate comments: IO 2017-05-28 16:29:40 +02:00
f1yegor
f49b433a83 translate comments: functions 2017-05-27 19:29:55 +02:00
f1yegor
92712eeedd translate comments: parsers 2017-05-27 19:27:16 +02:00
f1yegor
0882092c20 translate comments: functions 2017-05-27 17:45:25 +02:00
Nikolai Kochetov
5fb5397941 added max_block_size for DictionaryBlockImputStreamBase 2017-05-26 19:08:56 +03:00
Alexey Milovidov
13f0af3d83 Whitespaces [#CLICKHOUSE-2] 2017-05-26 18:30:07 +03:00
Alexey Milovidov
fa64d14f26 More readable temporary part names [#CLICKHOUSE-2]. 2017-05-26 03:47:06 +03:00
Alexey Milovidov
ed44304c49 Removed obsolete commented code [#CLICKHOUSE-2]. 2017-05-26 03:43:35 +03:00
alexey-milovidov
c79ebc586d Merge pull request #825 from yandex/CLICKHOUSE-2989
Separate dirs for different part sources, fix RC during replicated alters
2017-05-26 04:42:03 +04:00
Alexey Milovidov
c8ccbd56c0 More correct wording [#CLICKHOUSE-3039]. 2017-05-26 00:00:04 +03:00
Alexey Milovidov
d35a586af2 Fixed deadlock when using executable dictionary source with cache or complex_key_cache layout [#CLICKHOUSE-3039]. 2017-05-25 23:59:14 +03:00
Alexey Milovidov
ccce305d73 Fixed totally wrong code [#CLICKHOUSE-3039]. 2017-05-25 23:17:23 +03:00
Alexey Milovidov
f448c9690c Little better [#CLICKHOUSE-3039]. 2017-05-25 23:09:48 +03:00
Alexey Milovidov
e05547f4f8 Little better [#CLICKHOUSE-3039]. 2017-05-25 22:52:05 +03:00
Alexey Milovidov
7a5c0a3cc2 Style [#CLICKHOUSE-3039]. 2017-05-25 22:36:03 +03:00
Alexey Milovidov
22a0da824f Fixed bad code (again) [#CLICKHOUSE-3039]. 2017-05-25 22:27:23 +03:00
Alexey Milovidov
6f5dcb1d84 Miscellaneous [#CLICKHOUSE-3039]. 2017-05-25 22:26:17 +03:00
Alexey Milovidov
4fd2714a74 Fixed bad code [#CLICKHOUSE-3039]. 2017-05-25 22:21:57 +03:00
Alexey Milovidov
fedd829803 Miscellaneous [#CLICKHOUSE-3039]. 2017-05-25 21:24:47 +03:00
alexey-milovidov
72822714c3 Merge branch 'master' into CLICKHOUSE-2989 2017-05-25 21:04:37 +04:00
Vitaliy Lyudvichenko
1e29795cf9 Fix race condition between cleanup and fetch thread. [#CLICKHOUSE-2989]
It was happening during ALTERs.
TODO: stop fetches during ALTER.
2017-05-25 13:08:52 +03:00
Alexey Zatelepin
1c903df8d7 move AccurateComparison.h [#CLICKHOUSE-3002] 2017-05-25 05:34:26 +04:00
Alexey Zatelepin
e9f8f99e06 Correct index comparisons in case constants cannot be precisely casted [#CLICKHOUSE-3002] 2017-05-25 05:34:26 +04:00
Alexey Milovidov
a77369d082 Preparation: Storages do not modify query [#CLICKHOUSE-31]. 2017-05-25 04:12:41 +03:00
Alexey Milovidov
6e9fa39af5 Analyzers: development [#CLICKHOUSE-31]. 2017-05-25 03:41:07 +03:00
Alexey Milovidov
557c3dc7f4 Preparation: removed support for unreplicated data in Replicated tables [#CLICKHOUSE-31]. 2017-05-25 00:38:56 +03:00
Alexey Milovidov
48f65e9097 Preparation: untangling [#CLICKHOUSE-31]. 2017-05-25 00:06:29 +03:00
Alexey Milovidov
59ac7f8063 Preparation: untangle settings manipulation in InterpreterSelectQuery [#CLICKHOUSE-31]. 2017-05-24 23:25:01 +03:00
Vitaliy Lyudvichenko
d9637c2980 MergeTreeDataPart refactoring. [#CLICKHOUSE-2989]
Use relative_path to store actual part path.
Use renameTo() to move parts.
2017-05-24 23:23:58 +03:00
Vitaliy Lyudvichenko
5618234ee8 Separate tmp part dirs for merges, fetches and inserts. [#CLICKHOUSE-2989] 2017-05-24 23:23:58 +03:00
Alexey Milovidov
cb83b200cb Preparation [#CLICKHOUSE-31]. 2017-05-24 23:13:04 +03:00
Alexey Milovidov
8d570e2768 Renamed column "default_type" to "default_kind" in system.columns table to avoid ambiguity [#CLICKHOUSE-2]. 2017-05-24 22:54:25 +03:00
Alexey Milovidov
9fdd795087 Using more light method of query_id generation [#CLICKHOUSE-3025]. 2017-05-24 22:31:50 +03:00
Alexey Milovidov
0a55310076 Added comment [#CLICKHOUSE-3027]. 2017-05-24 21:49:30 +03:00
Alexey Milovidov
2e47c35fa9 Fixed error "zero number of streams requested" on Google Compute Engine VMs [#CLICKHOUSE-2037]. 2017-05-24 21:38:18 +03:00
Alexey Milovidov
91f9009cc4 Fixed build [#CLICKHOUSE-2955]. 2017-05-24 01:34:52 +03:00
Alexey Milovidov
0dd71e32e0 Preparations, part 8 [#CLICKHOUSE-31]. 2017-05-23 23:04:42 +03:00
Alexey Milovidov
e073b62301 Fixed build [#CLICKHOUSE-31]. 2017-05-23 21:58:38 +03:00
Alexey Milovidov
c4f58f776b Preparations, part 7: Analyzers use const Context (and could be used in ExpressionAnalyzer) [#CLICKHOUSE-31]. 2017-05-23 21:53:11 +03:00
Alexey Milovidov
34cd1b9787 Preparations, part 6 [#CLICKHOUSE-31]. 2017-05-23 21:46:52 +03:00
Alexey Milovidov
46644aaaf0 Preparations, part 5: table functions are using const Context for execution [#CLICKHOUSE-31]. 2017-05-23 21:44:36 +03:00
Alexey Milovidov
2b20eca06b Preparations, part 4: StorageDistributed is initialized with const Context [#CLICKHOUSE-31]. 2017-05-23 21:37:14 +03:00
Alexey Milovidov
ce581bbf35 Preparations, part 3 [#CLICKHOUSE-31]. 2017-05-23 21:33:48 +03:00
Alexey Milovidov
a822dedc45 Preparations, part 2 [#CLICKHOUSE-31]. 2017-05-23 21:24:43 +03:00
Alexey Milovidov
66e209b492 Preparations, part 1 [#CLICKHOUSE-31]. 2017-05-23 21:01:50 +03:00
Alexey Milovidov
bb2f0a0893 Always restore in case of corrupted query_log, part_log [#CLICKHOUSE-3020]. 2017-05-23 20:35:05 +03:00
Alexey Milovidov
c24f4c57af Style; removed useless catch [#CLICKHOUSE-2955]. 2017-05-23 19:36:07 +03:00
Nikolai Kochetov
45c1beca2a Merge branch 'master' into storage-dictionary 2017-05-23 13:44:03 +03:00
Nikolai Kochetov
f0ec7901e9 Merge branch 'master' into dictionary-invalidate-query 2017-05-23 13:27:31 +03:00
Alexey Milovidov
0c416be381 More simple code; fixed translation error [#CLICKHOUSE-2]. 2017-05-23 04:09:47 +03:00
Alexey Milovidov
25209bf040 Allow semicolon after JSONEachRow lines, for convenience [#CLICKHOUSE-2] 2017-05-23 03:57:58 +03:00
Alexey Milovidov
7269f3a23b Format Vertical: added support for totals, extremes and output_format_pretty_max_rows [#CLICKHOUSE-3014]. 2017-05-22 22:00:45 +03:00
Alexey Milovidov
734b240490 TrivialBuffer: fixed build after merge [#CLICKHOUSE-2929]. 2017-05-22 19:46:33 +03:00
Nikolai Kochetov
db3fbd91b7 added readInvalidateQuery 2017-05-22 19:46:14 +03:00
Nikolai Kochetov
86e63d2bba added readInvalidateQuery for uniform reading from BlockInputStream 2017-05-22 19:38:24 +03:00
Alexander Makarov
55bfaca662 StorageTrivialBuffer: added support for the replication [#CLICKHOUSE-2929] 2017-05-22 18:40:11 +04:00
Alexander Makarov
fdd636a785 fixup #2: comments on English, proper classname, StorageFactory update and merging in 'flush' method without lock [#CLICKHOUSE-2929] 2017-05-22 18:40:11 +04:00
Alexander Makarov
f8e19de0e3 fixups after review [#CLICKHOUSE-2929] 2017-05-22 18:40:11 +04:00
alexey-milovidov
90e1767387 Update TrivialBuffer.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
2fdb7057ba Update TrivialBuffer.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
10f188708b Update TrivialBuffer.h 2017-05-22 18:40:11 +04:00
alexey-milovidov
84040d8a85 Update TrivialBuffer.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
1059c87828 Update TrivialBuffer.h 2017-05-22 18:40:11 +04:00
alexey-milovidov
3d009d153d Update TrivialBuffer.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
4cb799307b Update TrivialBuffer.h 2017-05-22 18:40:11 +04:00
alexey-milovidov
fd1403d4c4 Update TrivialBuffer.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
0fb0d36045 Update Block.h 2017-05-22 18:40:11 +04:00
alexey-milovidov
d9761b6506 Update Block.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
d8e9e8fa99 Update Block.cpp 2017-05-22 18:40:11 +04:00
alexey-milovidov
934476b2ed Update Block.cpp 2017-05-22 18:40:11 +04:00
Alexander Makarov
dfabe90373 TrivialBuffer implementation [#CLICKHOUSE-2929] 2017-05-22 18:40:11 +04:00
Vitaliy Lyudvichenko
48d85af41a Allow to skip garbage in TSKV format. [#CLICKHOUSE-3012] 2017-05-22 17:50:13 +04:00
Vitaliy Lyudvichenko
4fd357a311 Add more clear comments, refined code. [#CLICKHOUSE-2957] 2017-05-22 15:16:21 +04:00
Nikolai Kochetov
7762204b86 Merge branch 'master' into dictionary-invalidate-query 2017-05-22 13:49:45 +03:00
Alexey Milovidov
571af20a4f Added function defaultValueForArgumentType [#CLICKHOUSE-3013]. 2017-05-22 01:27:41 +03:00
Alexey Milovidov
0f252046ca Preparations [#CLICKHOUSE-2] 2017-05-22 01:25:25 +03:00
Vitaliy Lyudvichenko
45c1856556 Fix wrong implementation of CastTypeBlockInputStream (#807)
* Fix wrong implementation of CastTypeBlockInputStream. [#CLICKHOUSE-2957]

* Fix typos and add comments. [#CLICKHOUSE-2957]
2017-05-20 18:47:40 +04:00
Alexey Zatelepin
9c6829e982 Fix replica delay counting in case of ZooKeeper communication problems [#CLICKHOUSE-2141] 2017-05-20 17:32:00 +04:00
Vitaliy Lyudvichenko
bbe2a656cd Fixed preferred_block_size_bytes in case of PREWHERE with non-materialized column. [#METR-25237] 2017-05-20 17:30:59 +04:00
Alexey Zatelepin
d9306ab6b5 choose row with the max version for unmatched paths [#CLICKHOUSE-2984] 2017-05-20 17:25:48 +04:00
Alexey Zatelepin
f37ed1fbdb fix bugs in GraphiteMergeTree [#CLICKHOUSE-2984]:
* destructive rollup with Time=0 if no pattern matches
* differences in row count for Path and Value columns
* missed output rows on the boundaries between blocks
2017-05-20 17:25:48 +04:00
KochetovNicolai
f9cdae50d9 Cast boolean json fields to numbers (#809)
* added readBoolTextWord

* moved json bool cast to DataTypeNumber
2017-05-20 17:15:04 +04:00
Vitaliy Lyudvichenko
1d00f45dd3 Detect race condition between fetches and merges of the same part. [#CLICKHOUSE-2989] 2017-05-17 21:44:16 +04:00
Nikolai Kochetov
df087a2e98 merged with master 2017-05-16 13:06:45 +03:00
Nikolai Kochetov
16256503ec merged with master 2017-05-16 13:03:06 +03:00
Dmitry Luhtionov
4cc10af7b7 Add MACStringToOUI function 2017-05-16 10:32:49 +04:00
orantius
da83036326 Add age 55 for function roundAge. [#CLICKHOUSE-3001] 2017-05-15 22:42:39 +04:00
Nikolai Kochetov
7398062010 added undate by invalidate_query for MySql and ODBC dictionary sources 2017-05-15 17:16:10 +03:00
Nikolai Kochetov
427c020140 deleted dictionary ptr from StorageDictionary 2017-05-15 16:58:40 +03:00
Marek Vavruša
9520234365 Dictionaries/TrieDictionary: IP prefix dictionary
This commit implements a basic IP prefix dictionary
that allows storing IPv4/IPv6 prefixes and
matching them against a single IP address on query
time. This allows for doing IP -> ASN matching and
other similar things on query time.

The implementation is basic for start, using a
simple bitwise trie and reusing interface for
complex key dictionaries (so using tuple instead
of UInt32/FixedString(16) as the key). A faster
bitwise trie implementation (like poptrie) is
desired to improve lookup performance and
memory consumption with large prefix tables.
2017-05-15 10:51:03 +04:00
alexey-milovidov
e7b7f6f73d Update MergeTreeData.cpp 2017-05-15 10:34:40 +04:00
Vitaliy Lyudvichenko
6262fc8650 Fix inccorect columns size in MergeTreeData after ALTER. [#CLICKHOUSE-2] 2017-05-15 10:34:40 +04:00
f1yegor
92b56c2c7d translate comments 2017-05-14 19:03:55 +04:00
f1yegor
c252863b2e translate comments 2017-05-14 19:03:55 +04:00
Marek Vavruša
95d926ec14 AggregateFunctionTopK: smaller initial table size
By default start with 2^4 elements
2017-05-13 03:58:05 +04:00
Marek Vavruša
74cc0849dc iostream_debug_helpers: fixed build 2017-05-13 03:58:05 +04:00
Alexey Milovidov
282a395464 Fixed test [#CLICKHOUSE-2]. 2017-05-13 00:03:01 +03:00
Alexey Milovidov
cfc4c987c5 Added optional length parameter to aggregate function groupArrayInsertAt [#CLICKHOUSE-3003]. 2017-05-12 23:57:24 +03:00
Alexey Milovidov
40595ce688 Whitespaces [#CLICKHOUSE-3003]. 2017-05-12 23:41:50 +03:00
Alexey Milovidov
1d090bd4e2 AggregateFunctionGroupArrayInsertAt: fixed error [#CLICKHOUSE-3003]. 2017-05-12 23:05:19 +03:00
Alexey Milovidov
3819216085 StorageBuffer: explicitly disable support for PREWHERE, because possibility of wrong query results [#CLICKHOUSE-2999]. 2017-05-12 17:02:24 +03:00
Alexey Milovidov
4b852584ce Whitespaces [#CLICKHOUSE-2]. 2017-05-12 17:01:02 +03:00
Vitaliy Lyudvichenko
021e37943e More clearer code and correct test. [#CLICKHOUSE-1993] 2017-05-12 16:44:11 +03:00
Alexey Milovidov
9ad1d5676a Miscellaneous [#CLICKHOUSE-2]. 2017-05-12 01:21:06 +03:00
Alexey Milovidov
8f0e833b52 Whitespaces [#CLICKHOUSE-2]. 2017-05-11 22:48:46 +03:00
Marek Vavruša
45bd332460 AggregateFunctionTopK: fix memory usage, performance
* allow separate table key / hash key, and use
  std::string / StringRef for generic variant as
  it has built-in storage and StringRef is supported
  by the hash table, this avoids infinitely
  growing arena with serialised keys
* use power-of-2 size for alpha vector for faster
  binning without using modulo
* use custom grower and allocator for SpaceSaving
  to start with smaller tables
* store computed hash in counter for faster
  reinsertion of smallest element
2017-05-11 18:52:49 +04:00
Marek Vavruša
bc878f9785 Common/HashTable: allow cell reinsertion
* fixes missing setHash on reinsert
* reuses hash when emplacing value
2017-05-11 18:52:49 +04:00
Vitaliy Lyudvichenko
0f1627691e Don't forget to ATTACH MATERIALIZED columns. [#CLICKHOUSE-1993] 2017-05-11 18:39:12 +04:00
Dmitry Luhtionov
a21a6caf4e Доюавленф функции FunctionMACNumToString и FunctionMACStringToNum 2017-05-10 08:16:06 -04:00
Alexey Milovidov
2a57cfdbc2 Aggregate function groupArrayInsertAt: development [#CLICKHOUSE-2]. 2017-05-10 04:42:15 -04:00
Alexey Milovidov
21c5ee0f1d Aggregate function groupArrayInsertAt: development [#CLICKHOUSE-2]. 2017-05-10 04:41:25 -04:00
Alexey Milovidov
19d0d47c8a Aggregate function groupArrayInsertAt: development [#CLICKHOUSE-2]. 2017-05-10 04:40:14 -04:00
Alexey Milovidov
e5e8667bc9 Addition to prev. revision [#CLICKHOUSE-2]. 2017-05-10 04:10:50 -04:00
Alexey Milovidov
a7b9a12759 Returned back Increment and CounterInFile, because they are still needed [#CLICKHOUSE-2]. 2017-05-10 04:08:32 -04:00
Alexey Milovidov
bb41d47096 Removed Increment and CounterInFile [#CLICKHOUSE-2]. 2017-05-10 02:50:37 -04:00
Alexey Milovidov
5ca7650c86 Removed Increment and CounterInFile [#CLICKHOUSE-2]. 2017-05-10 02:49:19 -04:00
Alexey Milovidov
acfe3d5028 Improved performance of inserting into StorageDistributed with very high number of shards (not tested) [#CLICKHOUSE-2]. 2017-05-10 02:39:37 -04:00
Alexey Milovidov
e2f8ec8f2d Addition to prev. revision [#CLICKHOUSE-2]. 2017-05-10 02:36:15 -04:00
Alexey Milovidov
21af887758 Added aggregate function 'groupArrayInsertAt' (for Graphite) [#CLICKHOUSE-2]. 2017-05-10 01:46:23 -04:00
Alexey Milovidov
b9a7917a8d Tiny modifications [#CLICKHOUSE-2]. 2017-05-10 01:43:27 -04:00
Alexey Milovidov
542eba7e17 Fixed translation errors [#CLICKHOUSE-3]. 2017-05-10 00:30:33 -04:00
Alexey Milovidov
27a324b469 Tiny modifications [#CLICKHOUSE-2]. 2017-05-10 00:29:36 -04:00
Alexey Milovidov
7bf7242ad3 Fixed translation errors; miscellaneous changes [#CLICKHOUSE-3]. 2017-05-10 00:00:19 -04:00
Alexey Milovidov
ff02af9804 Addition to prev. revision [#CLICKHOUSE-2]. 2017-05-09 22:45:21 -04:00
Alexey Milovidov
7fc3d90035 Renamed .inl file to .inl.h to avoid confusion [#CLICKHOUSE-2]. 2017-05-09 22:41:26 -04:00
Alexey Milovidov
8e5f92f025 Fixed translation errors, part 1 [#CLICKHOUSE-3]. 2017-05-09 15:07:35 -04:00
ivanzhukov
59942137de Output only specified metrics 2017-05-09 21:53:48 +03:00
ivanzhukov
7f9e234bd5 Support preconditions 2017-05-09 21:53:48 +03:00
ivanzhukov
70e2fb7000 Add filters for tests 2017-05-09 21:53:48 +03:00
ivanzhukov
100eba717f Print array of jsons for multiple tests run 2017-05-09 21:53:48 +03:00
ivanzhukov
54f9675b59 Add support for tests profiles 2017-05-09 21:53:48 +03:00
ivanzhukov
733c74fe8a Always store queries in a vector 2017-05-09 21:53:47 +03:00
ivanzhukov
3c6de6eee9 Use new IO functions interface 2017-05-09 21:53:47 +03:00
ivanzhukov
704a79ee6c Add support for skipping whitespaces 2017-05-09 21:53:47 +03:00
ivanzhukov
5fa4b5f15e Support query in a file 2017-05-09 21:53:47 +03:00
ivanzhukov
086ef6ed82 Support directory as an input 2017-05-09 21:53:47 +03:00
ivanzhukov
1c2b64168e Code style 2017-05-09 21:53:46 +03:00
ivanzhukov
0fb964ba79 Print all runs for one query first 2017-05-09 21:53:31 +03:00
ivanzhukov
52849e746e Check metrics for execType 2017-05-09 21:53:31 +03:00
ivanzhukov
f4c6219244 Use new connectionPool inerface 2017-05-09 21:53:31 +03:00
ivanzhukov
73fa7905f0 Use new RemoteBlockInputStream's interface 2017-05-09 21:53:31 +03:00
ivanzhukov
c6f35247bf Fix include 2017-05-09 21:53:29 +03:00
ivanzhukov
26606a1556 Dont print corrupted statistics 2017-05-09 21:52:58 +03:00
ivanzhukov
dca10863c7 Refactoring 2017-05-09 21:52:58 +03:00
ivanzhukov
70fb951831 Separate metrics output for queries 2017-05-09 21:52:58 +03:00
ivanzhukov
09ca5e0032 Construct and output info at the end 2017-05-09 21:52:58 +03:00
ivanzhukov
64a18f6b6e Rename read_{rows,bytes} to {rows,bytes}_read 2017-05-09 21:52:58 +03:00
ivanzhukov
3568946082 Add support for time criterions 2017-05-09 21:52:58 +03:00
ivanzhukov
c4c6960c75 Separate 'loop' queries execution from 'once' 2017-05-09 21:52:57 +03:00
ivanzhukov
1986ceb819 Execute queries without terminate conditions 2017-05-09 21:52:56 +03:00
ivanzhukov
4e5362b246 Replace raw pointers with Poco's AutoPtr 2017-05-09 21:52:42 +03:00
ivanzhukov
17c7b2a0cf Extract settings and construct queries from config 2017-05-09 21:52:40 +03:00
ivanzhukov
fd307bffb7 Add command line options support 2017-05-09 21:52:17 +03:00
f1yegor
46db454562 translate comments 2017-05-09 13:03:35 -04:00
ivanzhukov
39c3054d09 Add base file for PerformanceTest 2017-05-07 01:04:39 +03:00
ivanzhukov
842ebadc0e Add cmake rules for performance test launcher 2017-05-07 01:04:39 +03:00
Dmitry Bilunov
11ec4c627d IO/CompressedWriteBuffer: support new LZ4 library 2017-05-06 10:48:30 -04:00
Dmitry Bilunov
0c72259c3c mongodb: Avoid compiling DB::authenticate() function unless it is needed 2017-05-05 17:02:34 -07:00
proller
fac00792f9 Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
Alexey Milovidov
d3e6321967 AggregateFunctionTopK: minor modifications [#CLICKHOUSE-2]. 2017-05-05 16:36:02 -07:00
Alexey Milovidov
32a75147f5 Merge branch 'master' of github.com:yandex/ClickHouse 2017-05-05 16:35:08 -07:00
Alexey Milovidov
aa629d0f7e Minor modification [#CLICKHOUSE-2]. 2017-05-05 14:25:53 -07:00
Alexey Milovidov
9d4c814b12 Aggregate function topK: style modifications [#CLICKHOUSE-2]. 2017-05-05 14:17:04 -07:00
proller
6c34f27e3b Another freebsd fix, update freebsd build doc 2017-05-05 03:23:32 +03:00
proller
1474de179c CastTypeBlockInputStream: hotfix: sometimes columns in sample blocks and stream blocks does not match 2017-05-04 22:41:55 +03:00
Nikolai Kochetov
1604ce138a changed key storage format for complex key dictionaries 2017-05-04 21:14:23 +03:00
proller
9a937591e5 Try fix freebsd 11-STABLE OCbuild 2017-05-04 18:25:34 +03:00
Marek Vavruša
5f1e65b252 AggregateFunctions: implemented topK(n)
This implements a new function for approximate
computation of the most frequent entries using
Filtered Space Saving with a merge step adapted
from Parallel Space Saving paper.

It works better for cases where GROUP BY x
is impractical due to high cardinality of x,
such as top IP addresses or top search queries.
2017-05-03 23:09:52 -07:00
proller
0787bd66ff Merge: fail if cant convert columns (#753)
* Merge: fail if cant convert columns

* Merge: convert all different types, more tests

* clean

* clean

* clean
2017-05-03 21:08:59 -07:00
Vitaliy Lyudvichenko
d504c5454a Resolves #750. Allow to load more than 16 external dictionaries. [#CLICKHOUSE-3] 2017-05-03 21:04:58 -07:00
alexey-milovidov
99c360b6c7 Update Server.cpp 2017-05-03 21:02:55 -07:00
alexey-milovidov
85e59ae3ff Update Server.cpp 2017-05-03 21:02:55 -07:00
proller
90bbdaffda Remove old comment 2017-05-03 21:02:55 -07:00
proller
f02a605900 Better "Protocol not supported" message 2017-05-03 21:02:55 -07:00
Vitaliy Lyudvichenko
6d93d9cefb Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
f1yegor
5ffa35cf24 translate comments 2017-04-30 23:46:40 -07:00
Maxim Fridental
e9d9abf328 Fix escaping of columns starting with a number 2017-04-29 23:40:34 -07:00
alexey-milovidov
fb01ef0132 Update StorageMerge.cpp 2017-04-29 06:37:38 +03:00
alexey-milovidov
0e8c3b976f Update CastTypeBlockInputStream.cpp 2017-04-29 06:37:38 +03:00
proller
b2e2233a59 rename CastEnumBlockInputStream -> CastTypeBlockInputStream 2017-04-29 06:37:38 +03:00
proller
7a0854775b Merge: Cast types on read [#CLICKHOUSE-2957] 2017-04-29 06:37:38 +03:00
Alexey Milovidov
e0b141e3eb Do not remove temporary directory on fetch [#CLICKHOUSE-2894]. 2017-04-29 01:26:39 +03:00
proller
2a1eceef03 Try fix macos build 2017-04-29 00:18:18 +03:00
Vitaliy Lyudvichenko
42fcf148e2 Add column rows to system.parts table. [#CLICKHOUSE-2950] 2017-04-28 23:54:24 +03:00
proller
edcc18992b Try fix macos build (again) 2017-04-28 22:50:42 +03:00
proller
948d9c39cd Try fix macos build. Add more debug io helpers 2017-04-28 21:57:26 +03:00
Nikolai Kochetov
79564054a9 added RangeDictionaryBlockInputStream 2017-04-28 21:33:31 +03:00
proller
7c891eb841 Server: Special mode with empty listen_host : try listen v4 and v6 (#730)
* Server: Special mode with empty listen_host : try listen v4 and v6 without fatal error if protocol not supported (for docker and freebsd)

* fix build on freebsd/macos

* Requested change

* Update Server.cpp

* Update Server.cpp

* Fix deadlock when queue_log queue is full

* Add log error on query log fail

* Fix incudes, move code from daemon/OwnPatternFormatter.h

* Update SystemLog.h

* Update SystemLog.h

* Auto version update to [54230]

* Catch only "Protocol not supported" listen error

* Update Server.cpp
2017-04-28 00:51:09 +03:00
Alexey Milovidov
c77152e3ba Loosen dependency [#CLICKHOUSE-2828]. 2017-04-27 23:47:24 +03:00
artpaul
d269827dfd #215 convert to Enum with FunctionCast 2017-04-27 23:29:39 +03:00
Alexey Zatelepin
aeb83f9ef7 fix key columns indexing for RIGHT and FULL joins [#CLICKHOUSE-2979] 2017-04-27 23:15:45 +03:00
Nikolai Kochetov
9243439e9b added DictionaryBlockInputStream 2017-04-27 20:16:24 +03:00
alexey-milovidov
9b543dec5c Update SystemLog.h 2017-04-27 09:02:12 +03:00
alexey-milovidov
2f32c0e9d2 Update SystemLog.h 2017-04-27 09:02:12 +03:00
proller
8cdae06a2d Add log error on query log fail 2017-04-27 09:02:12 +03:00
proller
2ca3fcf7d3 Fix deadlock when queue_log queue is full 2017-04-27 09:02:12 +03:00
proller
bcb230ebc6 Fix incudes, move code from daemon/OwnPatternFormatter.h 2017-04-27 08:40:27 +03:00
proller
d00ae1a640 fix build on freebsd/macos 2017-04-26 18:16:36 +03:00
proller
cd4a5c040c More debug io helpers: some types from dbms (#725)
* release: import options from jenkins script

* correct chdir

* limit parallel build threads

* VERSION_POSTFIX

* add postfix

* support BUILD_TYPE

* Removed unused.

* Fixed error [#CLICKHOUSE-2960].

* Fix version incrementing

* Fix message

* Fix build without icu and readline

* More io helpers: some types from dbms

* Requested changes
2017-04-26 05:50:03 +03:00
artpaul
c19dada4a3 switch while to if 2017-04-25 20:17:13 +05:00
Nikolai Kochetov
bdf998d20f added StorageDictionary 2017-04-25 12:10:27 +03:00
Alexey Milovidov
5f32cf5d90 Review modifications [#CLICKHOUSE-2828]. 2017-04-25 08:10:29 +03:00
Alexey Milovidov
7f0aecfcf6 Review modifications [#CLICKHOUSE-2828]. 2017-04-25 08:08:26 +03:00