Commit Graph

224 Commits

Author SHA1 Message Date
Guillaume Tassery
1231952fca Implement UUID type and toUuid function 2017-06-30 22:01:27 +02: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
Alexey Milovidov
3c33f1841f Little better [#CLICKHOUSE-2]. 2017-06-23 09:45:48 +03:00
Alexey Zatelepin
87fbfe0950 correct comparisons for strings with null bytes [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +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 Zatelepin
b03c87be39 fix nulls sorting when limit is greater than rows count [#CLICKHOUSE-3061] 2017-06-09 09:13:20 +03:00
Alexey Milovidov
9c5ddce06d Get rid of .hpp files [#CLICKHOUSE-2]. 2017-06-06 20:18:32 +03:00
Alexey Milovidov
1cdb2a2797 Fixed error [#CLICKHOUSE-4]. 2017-04-19 06:11:26 +03:00
Alexey Milovidov
95dd78cea4 Merge branch 'master' of github.com:yandex/ClickHouse 2017-04-18 06:03:47 +03:00
Alexey Milovidov
22e8b8029b Implemented ColumnArray::replicate for Nullable, Tuple and for generic case [#CLICKHOUSE-4]. 2017-04-18 06:03:39 +03:00
Alexey Milovidov
f51b3992f3 Little better [#CLICKHOUSE-4]. 2017-04-17 23:19:09 +03:00
Vitaliy Lyudvichenko
82af2278fc Avoid code duplication near MergeTreeBlockInputStream. [#CLICKHOUSE-2]
Add preferred_block_size_bytes for non-uniform reader. [#CLICKHOUSE-2902]

Make enums test more deterministic. [#CLICKHOUSE-2]

Refactored MergeTree readers.

Tabs -> spaces.

Move include/DB/ -> src/.
2017-04-15 06:48:24 +03:00
Alexey Milovidov
bd544bbe3a Fixed error with NULLs [#CLICKHOUSE-4]. 2017-04-06 22:51:44 +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
cc43f989bc Preparation [#CLICKHOUSE-4]. 2017-03-29 14:33:07 +03:00
Alexey Milovidov
a8f6a3127d Implemented limited support for NULLs in IN operator [#CLICKHOUSE-4]. 2017-03-28 06:00:33 +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
9d5ea2163c Fixed error with FixedString filtering [#CLICKHOUSE-2898]. 2017-03-21 21:37:35 +03:00
Alexey Milovidov
8184846ee0 Added support for NULLS FIRST and LAST in ORDER BY (continued) [#CLICKHOUSE-2882]. 2017-03-12 16:16:48 +03:00
Alexey Milovidov
65beb6f961 Added support for NULLS FIRST and LAST in ORDER BY (continued) [#CLICKHOUSE-2882]. 2017-03-12 16:03:07 +03:00
Alexey Milovidov
a564fa1872 Added support for NULLS FIRST and LAST in ORDER BY (continued) [#CLICKHOUSE-2882]. 2017-03-12 16:01:19 +03:00
Alexey Milovidov
7532a1d564 Added support for NULLS FIRST and LAST in ORDER BY [#CLICKHOUSE-2882]. 2017-03-12 15:56:59 +03:00
Alexey Milovidov
ef3e44e1bc Comments [#CLICKHOUSE-2881]. 2017-03-12 07:18:17 +03:00
Alexey Milovidov
3c38ba1f1c Improved performance of ColumnFixedString::filter [#CLICKHOUSE-2877]. 2017-03-11 07:41:28 +03:00
Alexey Milovidov
a3584e5a57 Fixed error [#CLICKHOUSE-2877]. 2017-03-11 04:29:45 +03:00
Alexey Milovidov
f15efc4e63 Fixed error [#CLICKHOUSE-2877]. 2017-03-11 04:25:27 +03:00
Alexey Milovidov
5441fd6ac6 Fixed error [#CLICKHOUSE-2877]. 2017-03-11 04:20:14 +03:00
Alexey Milovidov
4871ff8ef5 Moved code to cpp [#CLICKHOUSE-2877]. 2017-03-11 04:12:51 +03:00
Alexey Milovidov
2d6d90a2cc ColumnFixedString: better 'replicate' method [#CLICKHOUSE-2877]. 2017-03-11 04:12:14 +03:00
Alexey Milovidov
93a930859e Fixed error [#CLICKHOUSE-2877]. 2017-03-11 03:52:20 +03:00
Alexey Milovidov
e8d2a5ece8 Moved code to .cpp [#CLICKHOUSE-2877]. 2017-03-11 03:38:30 +03:00
proller
b6e01cd47e Fix isolated usage of all .h files, move some code to .cpp (#578)
* split ColumnAggregateFunction.h

* format

* Allow use re2_st without cmake

* use std type in find_first_symbols.h

* fix ArrayEvaluator.h

* include fixes

* split ColumnConstAggregateFunction.h

* fix StorageMaterializedView.h

* split AddingDefaultBlockOutputStream.h

* move CSVRowInputStream::updateDiagnosticInfo to .cpp

* split ParserEnumElement.h

* format

* split DB/Parsers/ParserUseQuery.h

* clean
2017-03-11 04:27:59 +04:00
Alexey Milovidov
caebb93995 Merge remote-tracking branch 'origin/master' into if-support-nulls
Conflicts:
	dbms/include/DB/Columns/ColumnArray.h
	dbms/include/DB/Columns/ColumnString.h
	dbms/include/DB/Functions/FunctionsMiscellaneous.h
2017-03-09 07:39:45 +03:00
Alexey Milovidov
9c928a5b67 Fixed error [#CLICKHOUSE-2789]. 2017-03-09 06:57:51 +03:00
Alexey Milovidov
f9a5902e76 Support for NULLs in function if: continued [#CLICKHOUSE-2873]. 2017-03-09 06:34:09 +03:00
Alexey Milovidov
8314262f25 If for Nullable: continued [#CLICKHOUSE-2873]. 2017-03-07 23:52:09 +03:00
Alexey Milovidov
fe24bb25a0 If for Nullable types: additions [#CLICKHOUSE-2873]. 2017-03-07 23:42:01 +03:00
Alexey Milovidov
0a8d89e4ba More safe [#CLICKHOUSE-4]. 2017-03-07 00:36:33 +03:00
Vitaliy Lyudvichenko
8bcb1fe970 Add support of AggregateFunction constants in VALUES and Set. [#CLICKHOUSE-2845] 2017-02-18 00:36:31 +04:00
Alexey Milovidov
0673f75265 Fixed absolutely incorrect code; added test [#CLICKHOUSE-2755]. 2017-02-10 13:20:06 +03:00
Vitaliy Lyudvichenko
6500a84dd0 Fix overestimation of AggregateFunction columns size during remote aggregation. [#CLICKHOUSE-2745] 2017-01-31 23:28:37 +04:00
Alexey Milovidov
ecc6d2a7b9 Moved a function to header for inlining [#CLICKHOUSE-2]. 2017-01-30 08:22:49 +03:00
proller
8b4b1534e3 Cmake: Test on having sse (#405)
* Cmake: Test on having sse

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* fix

* fix

* fix

* fix

* fix
2017-01-27 23:55:33 +04:00
Alexey Milovidov
4d1ac56ba9 Fixed rare memory leak [#CLICKHOUSE-2761]. 2017-01-20 08:25:25 +03:00
Alexey Milovidov
459db30c29 Preparations [#CLICKHOUSE-2761]. 2017-01-20 08:00:04 +03:00
Alexey Milovidov
ffed6b1d5e Added one more column to system.parts [#CLICKHOUSE-2757]. 2017-01-17 23:54:32 +03:00
Alexey Milovidov
9f48890a8e NULLs: added missing method [#CLICKHOUSE-4]. 2017-01-17 23:47:37 +03:00
Alexey Milovidov
3af6d65c2b Miscellaneous [#METR-2944]. 2017-01-04 09:51:01 +03:00
Alexey Milovidov
8074f2de59 Implemented TODO [#METR-19266]. 2017-01-04 07:30:18 +03:00
Alexey Milovidov
baf29f5c48 NULLs support: fixed totally wrong code [#METR-19266]. 2016-12-30 08:13:14 +03:00
Alexey Milovidov
e3849124f1 Fixed wrong code [#METR-19266]. 2016-12-30 03:31:38 +03:00
Alexey Milovidov
e97ecb6cf7 Merge branch 'master' into METR-19266
Conflicts:
	dbms/CMakeLists.txt
	dbms/include/DB/Functions/FunctionsArray.h
	dbms/include/DB/Functions/FunctionsString.h
	dbms/include/DB/Parsers/ExpressionListParsers.h
	dbms/include/DB/Storages/MergeTree/MergeTreeBlockInputStream.h
	dbms/include/DB/Storages/MergeTree/MergeTreeReader.h
	dbms/include/DB/Storages/MergeTree/MergeTreeThreadBlockInputStream.h
	dbms/include/DB/Storages/MergeTree/MergedBlockOutputStream.h
	dbms/src/Core/ErrorCodes.cpp
	dbms/src/Parsers/ASTFunction.cpp
	dbms/src/Storages/MergeTree/MergeTreeData.cpp
	dbms/src/Storages/MergeTree/MergeTreeDataPart.cpp
	dbms/src/Storages/MergeTree/MergeTreeReader.cpp
	dbms/src/Storages/StorageLog.cpp
2016-12-10 07:51:36 +03:00
Alexey Milovidov
8236fd2076 Addition to prev. revision [#METR-2944]. 2016-11-20 15:46:32 +03:00
Alexey Milovidov
9018906e1a Better [#METR-2944]. 2016-11-20 15:43:20 +03:00
Alexey Arno
d64529ca15 dbms: Server: fixes + tests update [#METR-19266] 2016-10-20 15:58:18 +03:00
Alexey Arno
ef7eb14979 dbms: Server: Adding nullable types support for arrays. Ongoing. [#METR-19266] 2016-09-11 10:40:47 +03:00
Alexey Arno
e822631310 dbms: cleanup [#METR-19266] 2016-08-18 18:58:46 +03:00
Alexey Arno
fd2225e1fb dbms: cleanup [#METR-19266] 2016-08-17 20:20:21 +03:00
Alexey Arno
8b9742431e dbms: cleanup [#METR-19266] 2016-08-17 19:31:00 +03:00
Alexey Arno
821f1e6482 dbms: cleanup [#METR-19266] 2016-08-17 01:40:05 +03:00
Alexey Arno
4ae075c7b9 dbms: temporarily rolled back change that removes isNumeric()/behavesAsNumber() because it introduces bugs [#METR-19266] 2016-08-17 01:32:42 +03:00
Alexey Arno
be2a305366 dbms: cleanup [#METR-19266] 2016-08-16 16:31:42 +03:00
Alexey Arno
a13f32265e dbms: cleanup [#METR-19266] 2016-08-16 15:53:22 +03:00
Alexey Arno
519240dd9a dbms: cleanup [#METR-19266] 2016-08-16 15:34:54 +03:00
Alexey Arno
0efc990f67 dbms: cleanup [#METR-19266] 2016-08-16 15:25:45 +03:00
Alexey Arno
fa700f986f dbms: cleanup [#METR-19266] 2016-08-16 15:10:12 +03:00
Alexey Arno
fe79074884 dbms: cleanup [#METR-19266] 2016-08-16 14:26:17 +03:00
Alexey Arno
f4e77aaf97 dbms: Better code for functions processing. Code cleanup. [#METR-19266] 2016-08-15 14:14:29 +03:00
Alexey Arno
c74ee4e478 dbms: Code cleanup [#METR-19266] 2016-08-12 18:22:28 +03:00
Alexey Arno
180b14eabf dbms: better [#METR-19266] 2016-08-11 16:50:47 +03:00
Alexey Arno
42cb1f690c dbms: improvements [#METR-19266] 2016-08-11 00:15:51 +03:00
Alexey Arno
e2b6e10ec1 dbms: Various fixes + more comments [#METR-19266] 2016-08-10 22:12:29 +03:00
Alexey Arno
2906783686 dbms: Cleanup [#METR-19266] 2016-08-05 18:05:08 +03:00
Alexey Arno
2e15882f5d dbms: Cleanup [#METR-19266] 2016-08-05 02:33:07 +03:00
Alexey Arno
8c02bc44c5 dbms: Added support for nullable parameters (conditions and/or branches) in the function multiIf [#METR-19266] 2016-08-04 18:06:27 +03:00
Alexey Arno
2514b2a04c dbms: simplifications, improvements, post-testing fixes. Unfinished, so do not pay attention to this commit. [#METR-19266] 2016-07-25 21:26:45 +03:00
Alexey Arno
dcbe183d41 dbms: merged with master [#METR-19266] 2016-07-11 13:09:16 +03:00
Alexey Milovidov
9d2e8a4636 Fixed test [#METR-18149]. 2016-07-10 10:36:37 +03:00
Alexey Milovidov
003d63023b Fixed error [#METR-18149]. 2016-07-10 10:24:24 +03:00
Alexey Milovidov
402a4933e3 Fixed errors with tuples [#METR-18149]. 2016-07-10 07:09:59 +03:00
Alexey Arno
7429d4e96c dbms: Server: Feature development. [#METR-19266] 2016-07-07 13:33:12 +03:00
Alexey Arno
582b8fb555 dbms: Server: Feature development. [#METR-19266] 2016-07-05 19:23:37 +03:00
Alexey Milovidov
4c73eea3a8 Fixed error with ARRAY JOIN of arrays of strings [#METR-21863]. 2016-06-28 22:43:32 +03:00
Alexey Milovidov
c518abe882 Get rid of Poco::SharedPtr [#METR-21503]. 2016-05-28 20:31:50 +03:00
Alexey Milovidov
8c4abcdd43 Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 18:42:22 +03:00
Alexey Milovidov
4b7f461e46 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:31:36 +03:00
Alexey Milovidov
f7c09d58a5 Attempt to improve performance [#METR-20892]. 2016-04-15 03:33:21 +03:00
Alexey Milovidov
8efb3e5ade Initial implementation of XML output format [#METR-20026]. 2016-02-14 05:37:42 +03:00
Alexey Milovidov
e513e9808b dbms: porting to aarch64 [#METR-19609]. 2016-01-14 00:05:11 +03:00
Alexey Milovidov
ab1b725779 dbms: less dependencies [#METR-2944]. 2016-01-13 03:32:59 +03:00
Alexey Milovidov
13c7d0983a dbms: cutting dependency [#METR-2944].. 2016-01-12 00:46:36 +03:00
Andrey Mironov
0dc042536c dbms: refactor ColumnConstTuple materialization [#METR-19265] 2015-12-25 15:06:17 +03:00
Andrey Mironov
c483485eaf dbms: create a separate type for Tuple in Field [#METR-19265] 2015-12-25 15:06:17 +03:00
Alexey Milovidov
8addc4b7c7 dbms: little better [#METR-19371]. 2015-12-11 04:21:53 +03:00
Alexey Milovidov
8eb820bc74 dbms: fixed error (for real) [#METR-19371]. 2015-12-11 04:08:19 +03:00
Alexey Milovidov
7fa1a57165 dbms: fixed excessive memory allocation when splitting single-level block in Aggregator [#METR-17000]. 2015-12-05 10:01:18 +03:00
Alexey Milovidov
eb4034f7f2 dbms: better [#METR-2944]. 2015-11-29 20:06:30 +03:00
Alexey Milovidov
659cf5a940 dbms: improved performance of ColumnArray::filter [#METR-19022]. 2015-11-21 06:19:43 +03:00
Alexey Milovidov
f6cce1f55d dbms: fixed error with -State functions and WITH TOTALS [#METR-18727]. 2015-11-11 04:28:34 +03:00
Alexey Milovidov
bbdfd33f47 dbms: fixed error with arrays; added test [#METR-17110]. 2015-07-06 23:25:50 +03:00
Alexey Milovidov
0296dc2b88 dbms: fixing error with function replicate of arrays of consts [#METR-17110]. 2015-07-06 22:24:51 +03:00
Alexey Milovidov
d23de31335 dbms: improved performance for very long arrays [#METR-17061]. 2015-06-29 10:41:23 +03:00
Alexey Milovidov
b308d79f5e dbms: improved performance of query parsing and analyzing with very long arrays [#METR-17061]. 2015-06-29 07:54:52 +03:00
Alexey Milovidov
aade03d427 dbms: fixed error [#METR-2944]. 2014-08-17 09:12:46 +04:00
Alexey Milovidov
35cdf28110 dbms: improved performance of filtering [#METR-2944]. 2014-08-17 03:18:37 +04:00
Alexey Milovidov
108a7850a5 dbms: improved performance on short queries [#METR-11571]. 2014-06-26 04:58:14 +04:00
Michael Kolupaev
d2010d7876 ClickHouse: fixed FixedString. [#METR-9372] 2013-12-03 10:01:04 +00:00
Alexey Milovidov
c611212c3f dbms: preparation [#CONV-2944]. 2013-09-15 05:51:43 +00:00
Alexey Milovidov
28c9579a5f Separated ColumnString from ColumnArray and ColumnFixedString from ColumnFixedArray; removed ColumnFixedArray [#CONV-2944]. 2013-05-05 15:25:25 +00:00
Michael Kolupaev
0f94ab34bf Merge 2013-03-27 10:07:23 +00:00
Michael Kolupaev
a46833bbeb clickhouse: fixed build [#CONV-6788]. 2013-03-06 13:56:11 +00:00
Michael Kolupaev
efed69fcc6 clickhouse: fixed bas_cast in ColumnConstArray (added nested type information) [#CONV-6788]. 2013-03-06 13:44:40 +00:00
Alexey Milovidov
7b3f533ecd Using own Field class instead of boost::variant (experimental) [#CONV-2944]. 2013-01-05 20:03:19 +00:00
Alexey Milovidov
b312f42808 dbms: reverted previous modification [#CONV-2944]. 2012-12-16 00:23:41 +00:00
Alexey Milovidov
62a8ecc749 dbms: probably improved performance of inserting, merging and sorting [#CONV-2944]. 2012-12-15 23:10:14 +00:00
Alexey Milovidov
5501a05fc6 dbms: development [#CONV-2944]. 2012-09-17 04:31:25 +00:00
Alexey Milovidov
4a80aaab00 dbms: development [#CONV-2944]. 2012-08-27 05:16:34 +00:00
Alexey Milovidov
eefd3b34d9 dbms: development [#CONV-2944]. 2012-08-26 11:14:52 +00:00
Alexey Milovidov
464f4844b7 dbms: development [#CONV-2944]. 2012-08-26 06:48:39 +00:00
Alexey Milovidov
bf568aa887 dbms: development [#CONV-2944]. 2011-11-06 06:22:52 +00:00