Commit Graph

828 Commits

Author SHA1 Message Date
artpaul
7eb7cc38f7 move impls of FunctionsString to cpp 2016-12-02 12:32:39 +05:00
artpaul
41fda59c95 move impls of FunctionsArray to cpp 2016-12-02 12:15:35 +05:00
Alexey Milovidov
820659b71c Fixed error in URL functions [#METR-2944]. 2016-11-21 05:39:37 +03:00
Alexey Milovidov
37d6ecc372 Allowed to sort one array by values of another array [#METR-23547]. 2016-11-20 09:49:24 +03:00
Alexey Milovidov
23257cd562 Added functions arraySort and arrayReverseSort [#METR-23547]. 2016-11-20 09:44:38 +03:00
Alexey Milovidov
7c53fd5867 Miscellaneous [#METR-2944]. 2016-11-20 08:48:07 +03:00
Alexey Milovidov
312ec5f817 Style [#METR-2944]. 2016-11-20 08:13:55 +03:00
Pavel Kartavyy
aac646ccfc update after review 2016-11-16 18:52:35 +03:00
Pavel Kartavyy
bdb7e9745b add hasColumnInTable function [#METR-23248] 2016-11-16 18:52:35 +03:00
alexey-milovidov
52390b0180 Merge pull request #150 from ludv1x/METR-23101
clickhouse-local application and File(...) storage
2016-11-14 04:03:03 +04:00
Vitaliy Lyudvichenko
107f7b34c7 Added requested PR changes, 2nd iteration. 2016-11-14 02:57:18 +03:00
artpaul
b5ad7c021b fix clang: remove unused variable 2016-11-12 21:03:44 +05: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
15b369bd08 More instrumentation [#METR-23272]. 2016-10-24 16:47:15 +03:00
Alexey Arno
a75cfb6df5 Merge branch 'master' into METR-19266 [#METR-19266] 2016-10-21 19:53:35 +03:00
Alexey Arno
c8cc8948d6 dbms: Server: fixes [#METR-19266] 2016-10-21 16:38:26 +03:00
Alexey Arno
ef2dd96ee4 dbms: Server: fixes [#METR-19266] 2016-10-21 16:14:41 +03:00
Alexey Milovidov
f373b500d4 Fixed error in 'firstSignificantSubdomain' function [#METR-20000]. 2016-10-20 08:21:49 +03:00
Alexey Arno
924402f33e dbms: Server: merged from master [#METR-19266] 2016-10-19 18:00:56 +03:00
Alexey Arno
e1099f47cb dbms: Server: fix [#METR-19266] 2016-10-18 22:31:07 +03:00
Alexey Arno
abe75277a3 dbms: Server: cleanup [#METR-19266] 2016-10-18 20:04:07 +03:00
alexey-milovidov
5ea36a550c Merge pull request #123 from yandex/METR-22935
dbms: Server: Bug fix. Now the functions toStartOfHour/toStartOfMinut…
2016-09-29 23:57:05 +04:00
alexey-milovidov
3296310a9d Merge pull request #116 from ludv1x/METR-22071
More datatypes for groupUniqArray() function [#METR-22071]
2016-09-29 23:53:18 +04:00
Alexey Arno
0ad504e4dd dbms: Server: Bug fix. Now the functions toStartOfHour/toStartOfMinute/toStartOfFiveMinute correctly take into account the time zone parameter. [#METR-22935] 2016-09-29 13:00:37 +03:00
Vitaliy Lyudvichenko
a3d72db2aa Added allocatesMemoryInArena() method for aggregate functions.
Fixed runningAccumulate, now it works properly for complex functions.
More accurate threads handling in Aggregator.
2016-09-28 16:28:55 +03:00
Vitaliy Lyudvichenko
80f037b12e Added arena parameter into merge() method of aggregation function states. [#METR-22071] 2016-09-26 15:42:40 +03:00
Alexey Milovidov
6b2755bf2a Non significant change [#METR-2944]. 2016-09-23 23:33:06 +03:00
Vitaliy Lyudvichenko
451a4b1d67 Added new Arena parameter to add() method of IAggregateFunction. [#METR-22071] 2016-09-21 20:13:32 +03:00
Alexey Arno
0c478b8fe6 dbms: Server: Bug fix [#METR-22842] 2016-09-21 17:26:17 +03:00
Alexey Arno
9ceac9ac31 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-20 18:59:47 +03:00
Alexey Arno
58fec71f0f dbms: Server: Do not pay attention to this commit. [#METR-19266] 2016-09-19 19:57:52 +03:00
Alexey Arno
dd300f6618 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-19 19:04:53 +03:00
Alexey Arno
c81eb1d730 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-19 12:40:17 +03:00
Alexey Arno
8718c95e1e dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-19 11:46:48 +03:00
Alexey Arno
85383ab7bf dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-19 11:20:10 +03:00
Alexey Milovidov
6dd008a034 Added 'runningDifference' function [#METR-22730]. 2016-09-17 01:00:30 +03:00
Alexey Arno
e0347308b9 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-16 19:11:36 +03:00
Alexey Arno
5a7b98d29a dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-16 00:27:34 +03:00
Alexey Arno
bd73b2d165 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-15 15:14:25 +03:00
Alexey Arno
59043c680e dbms: Server: Ongoing work. Do not pay attention. [#METR-19266] 2016-09-12 17:16:21 +03:00
Alexey Arno
91636a981f dbms: Server: unfinished work. Do not pay attention to this. [#METR-19266] 2016-09-12 01:03:26 +03:00
Alexey Arno
b7ca838dc0 dbms: Server: cleanups [#METR-19266] 2016-09-11 13:06:34 +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 Milovidov
3ed7b86e7b More convenient behaviour when user writes 'toDate(1111111111.)' (passes unix timestamp as float) [#METR-2944]. 2016-09-04 03:42:24 +03:00
Alexey Arno
b0834368c0 dbms: Added support for the construction CAST(NULL, Nullable(T)). This fixes the behavior of tables which have columns whose default value is NULL. [#METR-19266] 2016-08-30 19:14:05 +03:00
Alexey Arno
9528405fe4 dbms: Extended CAST to nullable types. Added ALTER TABLE ... MODIFY COLUMN ... for nullable types. A column with a nullable type can have a default value in CREATE TABLE. [#METR-19266] 2016-08-29 19:57:59 +03:00
Alexey Milovidov
8dd6acac59 Added comment [#METR-22482]. 2016-08-26 20:57:19 +03:00
Alexey Milovidov
6e91f49d4c Addition to prev. revision [#METR-22482]. 2016-08-26 00:47:45 +03:00
Alexey Milovidov
d9db19acea Function 'convertCharset': development [#METR-22482]. 2016-08-26 00:44:47 +03:00
Alexey Milovidov
e960efd5e6 Changed semantic of intDiv, intDivOrZero functions for floating point arguments [#METR-19446]. 2016-08-19 06:17:53 +03:00
Alexey Arno
e138621b7c dbms: improvements [#METR-19266] 2016-08-18 17:33:56 +03:00
Alexey Arno
f65e7b4a0f dbms: improvements [#METR-19266] 2016-08-18 17:25:02 +03:00
Alexey Arno
c4f348619d dbms: cleanup [#METR-19266] 2016-08-17 16:38:33 +03:00
Alexey Arno
74ccf71a2a dbms: cleanup [#METR-19266] 2016-08-17 14:54:21 +03:00
Alexey Milovidov
09563dc4da More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 10:47:03 +03:00
Alexey Milovidov
dc0f76bc87 More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 10:40:06 +03:00
Alexey Milovidov
d713c2971d More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 10:02:00 +03:00
Alexey Milovidov
cafd27c496 More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 09:55:47 +03:00
Alexey Milovidov
278d56ea4c Allow to parse Java-style floating point denormals 'NaN' and 'Infinity' [#METR-22428]. 2016-08-17 00:23:53 +03:00
Alexey Milovidov
63834bf441 Style [#METR-2944]. 2016-08-15 23:07:31 +03:00
serebrserg
191d8b9707 METR-22322: add functional test 2016-08-15 19:34:03 +03:00
Alexey Arno
44a135f656 dbms: better [#METR-19266] 2016-08-15 17:36:01 +03:00
serebrserg
c8bbb26802 METR-22322: array instead of vector 2016-08-15 15:41:06 +03:00
Alexey Arno
f4e77aaf97 dbms: Better code for functions processing. Code cleanup. [#METR-19266] 2016-08-15 14:14:29 +03:00
serebrserg
db5bae495b METR-22322: rename function, add comments 2016-08-14 15:18:11 +03:00
serebrserg
429b73422f METR-22322: add geo distance function 2016-08-12 19:51:08 +03:00
Alexey Arno
8ebbc141eb dbms: Code cleanup. [#METR-19266] 2016-08-12 17:57:39 +03:00
Alexey Arno
568fe119fb dbms: Got rid of useless display code for CASE and IS NULL/IS NOT NULL. Also simplified CASE implementation. [#METR-19266] 2016-08-12 17:06:58 +03:00
Alexey Arno
3fcf4347cd dbms: More comments. Cleanups. Moved a lot of FunctionsArray code into implementation file. [#METR-19266] 2016-08-11 19:47:28 +03:00
Alexey Arno
9896c8ce78 dbms: Merged from master [#METR-19266] 2016-08-11 17:15:27 +03:00
Alexey Arno
180b14eabf dbms: better [#METR-19266] 2016-08-11 16:50:47 +03:00
Alexey Arno
828012c077 dbms: better [#METR-19266] 2016-08-11 03:39:12 +03:00
Alexey Arno
87f330627e dbms: better [#METR-19266] 2016-08-11 03:17:30 +03:00
Alexey Arno
42cb1f690c dbms: improvements [#METR-19266] 2016-08-11 00:15:51 +03:00
Alexey Milovidov
225d6bf30a Fixed possible overflow [#METR-22187]. 2016-08-10 23:09:37 +03:00
Alexey Arno
f5d9d0ebc9 Merge branch 'master' into METR-19266 [#METR-19266] 2016-08-10 22:13:15 +03:00
Alexey Arno
e2b6e10ec1 dbms: Various fixes + more comments [#METR-19266] 2016-08-10 22:12:29 +03:00
Alexey Milovidov
65c34e8274 Addition to prev. revision [#METR-2807]. 2016-08-07 12:10:45 +03:00
Alexey Arno
531ff3d5ac dbms: Merged with master [#METR-19266] 2016-08-05 18:44:19 +03:00
Alexey Arno
38331e93e7 dbms: Cleanup + added function assumeNotNull [#METR-19266] 2016-08-05 15:52:09 +03:00
Alexey Arno
655d0cb5b4 dbms: Cleanup [#METR-19266] 2016-08-05 15:30:56 +03:00
Alexey Arno
a6ed503f49 dbms: Cleanup [#METR-19266] 2016-08-05 14:34:50 +03:00
Alexey Arno
a5cd138deb dbms: Cleanup [#METR-19266] 2016-08-05 14:31:55 +03:00
Alexey Milovidov
61b9996d9e Better [#METR-22173]. 2016-08-05 05:28:34 +03:00
Alexey Arno
91bfb1aee2 dbms: Cleanup [#METR-19266] 2016-08-05 02:32:18 +03:00
Alexey Arno
2888a7be26 dbms: Cleanup [#METR-19266] 2016-08-05 02:10:35 +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 Milovidov
8f36012d47 Added special exception to allow to convert string with serialized DateTime to Date [#METR-22296]. 2016-08-04 01:39:16 +03:00
Alexey Milovidov
441aaf6e1d Added toTOrZero conversion functions [#METR-22229]. 2016-08-02 08:32:09 +03:00
Alexey Milovidov
f4ac673379 Allowed to CAST Strings to Array, Tuple [#METR-22263]. 2016-08-02 06:30:34 +03:00
Alexey Milovidov
6f4fc79cde Better [#METR-2944]. 2016-07-31 06:53:16 +03:00
Alexey Milovidov
1700f4e132 Added support for complex typed arguments for function toString [#METR-22263]. 2016-07-30 07:39:51 +03:00
Alexey Milovidov
1c4293eb99 Fixed error with 'array' function [#METR-22188]. 2016-07-26 20:20:43 +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
022645e7ac dbms: better [#METR-19266] 2016-07-25 00:43:37 +03:00
Alexey Milovidov
9d1a720d90 Fixed error with assumed monotonicity of integer conversion functions [#METR-2944]. 2016-07-24 02:02:14 +03:00
Alexey Milovidov
55ed2904f4 Allowed for certain aggregate functions to have case insensitive names for compatibility [#METR-22087]. 2016-07-14 08:22:09 +03:00
Alexey Arno
3e479c375c dbms: simpler [#METR-19266] 2016-07-12 17:58:54 +03:00
Alexey Arno
2fe9d36f39 dbms: compilation fix [#METR-19266] 2016-07-11 13:29:42 +03:00
Alexey Arno
dcbe183d41 dbms: merged with master [#METR-19266] 2016-07-11 13:09:16 +03:00
Alexey Milovidov
003d63023b Fixed error [#METR-18149]. 2016-07-10 10:24:24 +03:00
Alexey Milovidov
b10177ed69 Additions [#METR-18149]. 2016-07-10 08:50:09 +03:00
Alexey Milovidov
402a4933e3 Fixed errors with tuples [#METR-18149]. 2016-07-10 07:09:59 +03:00
Alexey Milovidov
9208a72b5a Working out tuples [#METR-18149]. 2016-07-10 05:51:13 +03:00
Alexey Milovidov
e6e6953bf3 Miscellaneous modifications [#METR-2944]. 2016-07-10 05:33:50 +03:00
Alexey Milovidov
df7215487a Fixed error [#METR-18149]. 2016-07-10 05:14:23 +03:00
Alexey Milovidov
03ed8fc58e Addition to prev. revision [#METR-2944]. 2016-07-10 02:40:15 +03:00
Alexey Milovidov
3a6208c6d0 Translated few comments [#METR-2944]. 2016-07-10 02:37:29 +03:00
Alexey Milovidov
f08a5aba80 Improved performance of array function for non-constant arguments [#METR-22034]. 2016-07-09 09:33:44 +03:00
Alexey Milovidov
8af48d9dfc Partially fixed bad code [#METR-22034]. 2016-07-09 08:11:54 +03:00
Alexey Milovidov
e1181f2175 Added support for arbitary nested type of arrays for function has [#METR-18149]. 2016-07-09 07:39:57 +03:00
Alexey Milovidov
27360b8166 Added support for tuple arguments of function if [#METR-22033]. 2016-07-09 06:54:57 +03:00
Alexey Milovidov
777f6bd05c Added miscellaneous function 'rowNumberInAllBlocks' [#METR-21993]. 2016-07-09 00:46:18 +03:00
Alexey Arno
2201ad84ff dbms: merged with master [#METR-19266] 2016-07-08 19:52:26 +03:00
Alexey Milovidov
3b34b0a84c Addition to prev. revision [#METR-22008]. 2016-07-08 07:22:23 +03:00
Alexey Milovidov
ea0b6b3669 Implemented function arrayElement for generic case; partially removed bad code [#METR-22008]. 2016-07-08 07:16:30 +03:00
Alexey Arno
4ff528140a dbms: Server: Feature development. [#METR-19266] 2016-07-06 13:36:58 +03:00
Alexey Arno
f52403f623 dbms: Server: Feature development. [#METR-19266] 2016-07-06 12:47:55 +03:00
Alexey Milovidov
71ecca56d0 Fixed comment [#METR-2944]. 2016-06-24 01:28:15 +03:00
Alexey Milovidov
b8adf2c906 Updated comments [#METR-2944]. 2016-06-19 00:08:35 +03:00
Alexey Milovidov
3ecfca51ba Splitted dictionaries to separate translation units [#METR-21527]. 2016-06-08 00:07:44 +03:00
Vladimir Chebotarev
39c2c0f5a5 dbms, contrib: Clang 3.8 build fixes. [#METR-21516] 2016-05-31 14:06:27 +03:00
Alexey Milovidov
1d7506d0dc Fixed error with uninitialized memory [#METR-2944]. 2016-05-31 02:42:07 +03:00
Alexey Milovidov
e37087de66 Better [#METR-20000]. 2016-05-31 00:41:41 +03:00
Alexey Milovidov
c518abe882 Get rid of Poco::SharedPtr [#METR-21503]. 2016-05-28 20:31:50 +03:00
Alexey Milovidov
f1b253680f Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 19:30:15 +03:00
Alexey Milovidov
6d33959183 Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 19:28:52 +03:00
Alexey Milovidov
128f4a963c Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 19:25:09 +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
646d70a545 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 17:14:18 +03:00
Alexey Milovidov
47ff775a17 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:39:51 +03:00
Alexey Milovidov
4c7eb03b63 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:35:44 +03:00
Alexey Milovidov
6863e72f3d Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:15:36 +03:00
Alexey Milovidov
be394f2c84 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 10:48:40 +03:00
Alexey Milovidov
447b24cf98 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:39:01 +03:00
Alexey Milovidov
4b7f461e46 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:31:36 +03:00
Vladimir Chebotarev
c1181c7ed3 dbms: Moved toInteger<>() implementation to cpp. [#METR-XXXXX] 2016-05-24 22:01:17 +03:00
Vladimir Chebotarev
866c8929e2 dbms, contrib: GCC 6 build fixes [#METR-20000] 2016-05-23 03:41:26 +03:00
Alexey Milovidov
ab04e6f5be Added miscellaneous function blockNumber [#METR-21347]. 2016-05-17 21:25:47 +03:00
Alexey Arno
4847589a5d dbms: Server: Performance optimization. [#METR-19697] 2016-05-05 23:59:03 +03:00
Alexey Arno
ffef681bf4 Merge 2016-05-05 15:00:14 +03:00
Alexey Arno
13f9a75634 dbms: Server: Some cleanup. [#METR-19697] 2016-05-04 13:19:03 +03:00
Alexey Arno
286baa8611 Merge 2016-05-04 02:19:14 +03:00
Alexey Arno
223db6fe93 Merge 2016-04-25 16:11:37 +03:00
Alexey Arno
52b6eceb51 dbms: Server: simplified code [#METR-19697] 2016-04-22 13:21:52 +03:00
Alexey Arno
ed1b91143a dbms: merged branch METR-19697 into master [#METR-19697] 2016-04-21 16:10:56 +03:00
Alexey Arno
f2357d50b5 Merge 2016-04-18 17:31:32 +03:00
Alexey Milovidov
c43b34d3f0 Added function 'indexHint' [#METR-20940]. 2016-04-16 02:10:29 +03:00
Alexey Milovidov
f5359cbdeb Fixed error [#METR-20892]. 2016-04-15 05:53:53 +03:00
Alexey Milovidov
f7c09d58a5 Attempt to improve performance [#METR-20892]. 2016-04-15 03:33:21 +03:00