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
Alexey Milovidov
6df5d556e5
Changed namespace [#DEVTOOLS-3381].
2017-06-21 11:35:38 +03:00
Alexey Milovidov
604de2bfeb
Better [#DEVTOOLS-3381].
2017-06-21 04:24:05 +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
45c76803a9
Moved table functions to separate library; fixed errors; improved testability [#CLICKHOUSE-31].
2017-06-10 12:04:31 +03:00
Alexey Milovidov
9c5ddce06d
Get rid of .hpp files [#CLICKHOUSE-2].
2017-06-06 20:18:32 +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
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
b01a65f922
Remove missing allocator_stress from cmake
2017-04-11 16:25:27 +03:00
Alexey Milovidov
756df579b2
ArrayCache: development [#CLICKHOUSE-2].
2017-04-11 05:52:22 +03:00
Alexey Milovidov
ba108daf9d
ArrayCache: development [#CLICKHOUSE-2].
2017-04-10 03:24:58 +03:00
Alexey Milovidov
f418ed37cf
ArrayCache: development [#CLICKHOUSE-2].
2017-04-10 02:10:05 +03:00
Alexey Milovidov
5f8d99cbe9
ArrayCache: development [#CLICKHOUSE-2].
2017-04-09 10:02:13 +03:00
Alexey Milovidov
5ededd6b51
ArrayCache: development [#CLICKHOUSE-2].
2017-04-09 09:39:26 +03:00
Alexey Milovidov
2d0421e801
ArrayCache: development [#CLICKHOUSE-2].
2017-04-09 09:29:26 +03:00
Alexey Milovidov
310736cd7e
Moved headers and sources to same place [#CLICKHOUSE-3].
2017-04-01 12:22:42 +03:00
Alexey Milovidov
137ad95929
Changed tabs to spaces in code [#CLICKHOUSE-3].
2017-04-01 11:35:09 +03:00
Alexey Milovidov
4f44445ff0
Removed all trailing whitespaces [#CLICKHOUSE-2]. find . -name '*.h' -or -name '*.cpp' -or -name '*.cmake' -or -name 'CMakeLists.txt' -or -name '*.html' -or -name '*.xml' | grep -v contrib | xargs sed -i -r -e 's/\s+$//'
2017-03-31 19:00:30 +03:00
Alexey Milovidov
14c8003081
Normalized formatting [#CLICKHOUSE-3].
...
Apply in a loop:
find dbms -name '*.h' -or -name '*.cpp' | xargs grep -l -P '^(\t*) ' | xargs sed -i -r -e 's/^(\t*) /\1\t/'
2017-03-26 04:28:07 +03:00
Alexey Milovidov
93890423f1
Fixed zero-width spaces [#CLICKHOUSE-3].
...
find dbms -name '*.h' -or -name '*.cpp' | xargs grep -l $'\xe2\x80\x8b' | xargs sed -i 's/'$'\xe2\x80\x8b''//g'
2017-03-26 04:20:25 +03:00
f1yegor
bc0d9a2cae
translate comments
2017-03-25 21:12:56 +01:00
Alexey Milovidov
5546f7f75b
Normalized formatting [#CLICKHOUSE-3].
2017-03-09 07:26:17 +03:00
Alexey Zatelepin
4ecfd44015
[#CLICKHOUSE-2115] PR changes:
...
* do not insert produced value into the cache if the cache has been reset.
* less logging
* cosmetic fixes
2017-01-31 22:45:10 +04:00
Alexey Zatelepin
0fdcdd7bdb
Introduce LRUCache::getOrSet(), use it to avoid mark cache stampede [#CLICKHOUSE-2115]
2017-01-31 22:45:10 +04:00
proller
f8d1573946
Various arm64 compile fixes on utils ( #394 )
2017-01-25 23:17:13 +04:00
proller
4bc003c4c1
Porting to freebsd: initial, compile ok, most tests ok.
2016-12-24 01:03:10 +00:00
Vladimir Chebotarev
8e1a6aaf3e
cmake: Boost, OpenSSL into find_package(). [#METR-23701]
2016-12-06 16:20:32 +03:00
Vladimir Chebotarev
cdaece7dfa
: More specific usage of static libraries. [#METR-21516]
2016-11-09 21:49:01 +03:00
Vladimir Chebotarev
e2ceb63c54
libcommon, libre2, tools: Fixed build under OS X Sierra. [#METR-21516]
2016-11-03 15:41:13 +03:00
Vladimir Smirnov
d36f52502e
Make it compilable on OS X
...
It's still hackish and dirty, but server and client compies.
Server starts, but throwes meaningless exception on any query.
Client seems to be working fine.
Linux compilation might (but shouldn't) be broken (not tested).
2016-11-01 17:59:21 +01:00
Alexey Milovidov
687a6d1496
Addition to prev. revision [#METR-2944].
2016-10-25 09:57:12 +03:00
Alexey Milovidov
d71d53fc1a
Fixed error [#METR-22876].
2016-09-26 13:15:33 +03:00
Alexey Milovidov
6b2755bf2a
Non significant change [#METR-2944].
2016-09-23 23:33:06 +03:00
Yuri Dyachenko
065b02494a
add -Wold-style-cast
2016-08-26 22:55:11 +03:00
Alexey Milovidov
6c861fe798
Style [#METR-2807].
2016-08-07 12:09:18 +03:00
Alexey Milovidov
9a07830dbb
Removed useless code (experimental) [#METR-2944].
2016-08-02 04:46:05 +03:00
Alexey Arno
b1079964da
dbms: Server: Fixes. Fix for PODArray::swap(). [#METR-18844]
2016-07-08 18:30:57 +03:00
Alexey Arno
7d4691c271
dbms: Server: Fixes. Fix for PODArray::swap(). [#METR-18844]
2016-07-08 17:53:00 +03:00
Alexey Arno
9725ce95d0
dbms: Server: Fixes. Fix for PODArray::swap() in progress. [#METR-18844]
2016-07-08 01:49:38 +03:00
Alexey Arno
aa41a18fc5
dbms: Server: in PODArray, fixed move constructor, move operator, and swap method when using AllocatorWithStackMemory. [#METR-18844]
2016-07-07 19:56:49 +03:00
Alexey Arno
99a437c0d5
dbms: Server: in PODArray, fixed move constructor, move operator, and swap method when using AllocatorWithStackMemory. [#METR-18844]
2016-07-07 19:45:27 +03:00
Alexey Milovidov
960ff124f2
Using std::shared_ptr for data types [#METR-21503].
2016-05-28 13:36:32 +03:00
Alexey Milovidov
4c7eb03b63
Using std::shared_ptr for data types [#METR-21503].
2016-05-28 13:35:44 +03:00
Alexey Milovidov
86a77fbb6e
Using std::shared_ptr for data types [#METR-21503].
2016-05-28 13:29:17 +03:00
Alexey Milovidov
6863e72f3d
Using std::shared_ptr for data types [#METR-21503].
2016-05-28 13:15:36 +03:00
Vladimir Chebotarev
866c8929e2
dbms, contrib: GCC 6 build fixes [#METR-20000]
2016-05-23 03:41:26 +03:00
Alexey Milovidov
b335dfacba
Fixing warnings on clang [#METR-2807].
2016-03-07 09:18:06 +03:00
Alexey Milovidov
df1d66e51a
Removed sensitive data.
2016-02-08 00:58:58 +03:00
Alexey Milovidov
43c73cf7ee
dbms: added support for CSV format [#METR-19957].
2016-02-07 11:42:21 +03:00
Alexey Milovidov
563e410b72
Moved threadpool library to contrib [#METR-17973].
2016-02-05 08:07:39 +03:00
Alexey Milovidov
5ffd2eeb76
dbms: added test [#METR-19278].
2015-12-27 15:32:39 +03:00
Alexey Milovidov
42480c31ef
dbms: preparation [#METR-16212].
2015-12-13 11:51:28 +03:00
Alexey Milovidov
57e8a8fdbb
dbms: added t-digest algorithm [#METR-19024].
2015-11-21 15:47:41 +03:00
Alexey Milovidov
408a2e4751
Fixed errors in gcc-5 [#METR-18843].
2015-11-16 07:56:31 +03:00
Alexey Milovidov
af37192e0c
dbms: fixed errors on gcc-5 [#METR-18843].
2015-11-16 07:15:53 +03:00
Alexey Milovidov
2870fbb655
dbms: moved file [#METR-18778].
2015-11-15 12:06:53 +03:00
Alexey Arno
497b9ba3c8
Merge
2015-10-24 01:43:06 +03:00
Alexey Milovidov
3a5032fd4a
Moved files [#METR-17973].
2015-10-05 03:52:29 +03:00
Alexey Milovidov
4a061b97cb
Moved file [#METR-17973].
2015-10-05 03:44:40 +03:00
Alexey Milovidov
c1bb394e8d
dbms: caching DNS requests for authentification [#METR-18213].
2015-09-27 05:18:00 +03:00
Alexey Milovidov
bc17c73ee4
SipHash: allowed not to call update for empty strings (less than 0.3% performance degradation on all test data) [#METR-16781].
2015-06-10 22:56:57 +03:00
Alexey Arno
ac6a365ea1
Greatly simplfied code. [#METR-15652]
2015-05-07 15:28:09 +03:00
Alexey Arno
44066984cf
Merge
2015-05-07 13:31:50 +03:00
Alexey Milovidov
df8e3fa9ec
dbms: added old modifications to tests [#METR-2944].
2015-03-05 09:00:04 +03:00
Alexey Milovidov
5070e7642d
dbms: added SmallSet and SmallMap [#METR-2944].
2015-02-21 03:28:53 +03:00
Alexey Milovidov
86e9e77eae
Fixed errors in clang (part 5, final) [#METR-2807].
2015-01-22 04:13:13 +03:00
Alexey Milovidov
43c75bb37b
dbms: more scalable aggregator: development [#METR-2944].
2014-12-31 00:11:57 +03:00
Alexey Milovidov
ef160102f6
dbms: more scalable aggregator: development [#METR-2944].
2014-12-27 09:29:20 +03:00
Alexey Milovidov
5b6ce478cf
dbms: more scalable aggregator: development [#METR-2944].
2014-12-27 09:04:55 +03:00
Alexey Milovidov
3caccf278e
dbms: aggregator: experiments [#METR-2944].
2014-12-27 00:13:58 +03:00
Alexey Milovidov
50032e1da5
dbms: more scalable aggregator: experiments [#METR-2944].
2014-12-26 23:42:35 +03:00
Alexey Milovidov
1221f2ba53
Fixed build [#METR-2944].
2014-12-24 23:54:02 +03:00
Alexey Milovidov
2061b6af03
int_hashes_perf: changed /dev/urandom to /dev/random data [#METR-2944],
2014-07-29 23:24:54 +04:00
Alexey Milovidov
f474645a0d
dbms: modified test [#METR-2944].
2014-07-29 04:54:15 +04:00
Alexey Milovidov
119f3377a8
dbms: modified hash function for ints [#METR-2944].
2014-05-21 06:19:44 +04:00
Alexey Milovidov
8b5be77c11
dbms: updated test [#METR-2944].
2014-05-19 11:17:15 +04:00
Alexey Milovidov
c99921fc14
dbms: tiny improvement [#METR-2944].
2014-05-19 08:54:54 +04:00
Alexey Milovidov
734acc10c2
dbms: experiments with hash tables: removed code of unsuccessful method of parallel aggregation [#METR-2944].
2014-05-03 20:35:18 +04:00
Alexey Milovidov
2b13e02d3c
dbms: fixed error [#METR-2944].
2014-05-03 20:03:49 +04:00
Alexey Milovidov
2dc708e70c
dbms: experiments with hash tables [#METR-2944].
2014-05-03 05:45:34 +04:00
Alexey Milovidov
04cb4d878b
dbms: experiments with hash tables [#METR-2944].
2014-05-03 04:08:35 +04:00
Alexey Milovidov
4aa1b5963b
dbms: continue [#METR-2944].
2014-05-02 19:48:03 +04:00
Alexey Milovidov
b394bc5a61
dbms: experiments with hash tables [#METR-2944].
2014-05-02 16:49:39 +04:00
Alexey Milovidov
8232983714
dbms: unified hash tables: development [#METR-2944].
2014-04-28 05:48:24 +04:00
Alexey Milovidov
b7092a7ab1
Merge
2014-04-28 00:47:28 +04:00
Pavel Kartavyy
e060784ecc
fixed build
2014-03-26 18:45:50 +04:00
Pavel Kartavyy
4042069b3e
fixed build
2014-03-26 18:08:00 +04:00
Alexey Milovidov
c55f193711
dbms: development [#METR-2944].
2014-03-17 06:06:26 +04:00
Alexey Milovidov
315a3c200a
dbms: development [#METR-2944].
2014-03-17 06:01:03 +04:00
Michael Kolupaev
df2e012943
clickhouse: added LRUCache and changed UncompressedCache to use it; added a test, fixed another test. [#METR-9633]
2014-02-11 11:05:02 +00:00
Alexey Milovidov
08e6150fe9
SipHash: more handy [#CONV-2944].
2013-08-28 17:13:43 +00:00
Alexey Milovidov
fe0dd1d0b2
dbms: improvement [#CONV-2944].
2013-06-21 20:34:19 +00:00
Alexey Milovidov
f8c17efe81
dbms: modified test [#CONV-2944].
2013-02-01 18:56:09 +00:00
Alexey Milovidov
70385e1229
Reverted experimental modification [#CONV-2944].
2013-01-21 06:43:38 +00:00
Alexey Milovidov
39abfc625a
dbms: improved performance [#CONV-2944].
2013-01-21 06:10:30 +00:00
Alexey Milovidov
af42c9a5cc
dbms: tiny modification of AutoArray; updated test for AutoArray [#CONV-2944].
2013-01-09 12:06:21 +00:00
Alexey Milovidov
f34cc1e38d
dbms: updated test [#CONV-2944].
2013-01-09 11:27:29 +00:00
Alexey Milovidov
f800b5b769
dbms: using special array for Row and instead of std::vector<AggregateFunctionPlainPtrs> (experimental) [#CONV-2944].
2013-01-07 00:57:43 +00:00
Alexey Milovidov
2eee93e1d5
dbms: improved performance of aggregation by many fields; fixed error in function concat [#CONV-2944].
2012-10-07 06:30:10 +00:00
Alexey Milovidov
e0f951245a
dbms: development
2010-06-04 18:25:25 +00:00