Commit Graph

405 Commits

Author SHA1 Message Date
artpaul
722e4dab6d merge with master 2016-12-15 23:19:12 +05:00
artpaul
eb80837355 use find_first_symbols 2016-12-15 22:55:12 +05:00
artpaul
d3657d311b fix decodeUrl; decode all values; add more tests 2016-12-15 22:12:41 +05:00
alexey-milovidov
a3886babed Revert "Issue 219" 2016-12-15 18:19:16 +04:00
artpaul
92a7dc6908 style 2016-12-15 17:33:50 +05:00
artpaul
785a98e624 move all url's functions to FunctionsURL 2016-12-15 17:05:05 +05:00
artpaul
fb900881da resolve conflicts 2016-12-12 11:15:01 +05:00
artpaul
529f75c8b4 - use std::experimental::string_view
- rename unquoteUrl to decodeURLComponent
- fix code-style
2016-12-12 11:09:00 +05:00
Alexey Milovidov
70b01f0a53 Do not include ClickHouseRevision.h in header files [#METR-2944]. 2016-12-12 08:14:46 +03:00
Alexey Milovidov
d77b4f12fb Added UUID functions [#METR-23792]. 2016-12-11 13:57:34 +03:00
artpaul
99cec8b165 implement unquoteUrl 2016-12-11 02:04:58 +05:00
Alexey Milovidov
02cb56653a Merging [#METR-19266]. 2016-12-10 09:22:03 +03:00
Alexey Milovidov
2aa02d0547 Merging [#METR-19266]. 2016-12-10 09:12:21 +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
Vladimir Chebotarev
bcc5500f91 cmake: More options. [#METR-23701] 2016-12-05 15:43:14 +03:00
artpaul
a2b4b85ed5 show type of argument in case of type missmatching 2016-12-02 13:59:23 +05:00
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
23257cd562 Added functions arraySort and arrayReverseSort [#METR-23547]. 2016-11-20 09:44:38 +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 Arno
55bb0f00b7 dbms: Server: fixes [#METR-19266] 2016-10-21 17:15:25 +03:00
Alexey Arno
ef2dd96ee4 dbms: Server: fixes [#METR-19266] 2016-10-21 16:14:41 +03:00
Alexey Arno
6c40d9b51e dbms: Server: fixes [#METR-19266] 2016-10-19 21:18:02 +03:00
Alexey Arno
924402f33e dbms: Server: merged from master [#METR-19266] 2016-10-19 18:00:56 +03:00
Alexey Arno
a4f2f74b8e dbms: Server: changes to make the code a tad more readable [#METR-19266] 2016-10-18 15:36:36 +03:00
Alexey Arno
a1da591237 dbms: Server: Fixed display of arrays . [#METR-19266] 2016-09-21 14:00:04 +03:00
Alexey Arno
bd53eb8054 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-21 11:24:48 +03:00
Alexey Arno
bad88a8062 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-20 19:59:14 +03:00
Alexey Arno
045169a065 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-20 16:51:45 +03:00
Alexey Arno
a38fef4c60 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-20 10:27:45 +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
89bc411ab1 dbms: Server: Bug fix. [#METR-19266] 2016-09-19 17:50:56 +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
94187aff43 Merge branch 'METR-19266' of github.com:yandex/ClickHouse into METR-19266 [#METR-19266] 2016-09-19 11:46:54 +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
365be3c026 Fixed warning with gcc 6 [#METR-2944]. 2016-09-19 09:24:18 +03:00
Alexey Milovidov
6dd008a034 Added 'runningDifference' function [#METR-22730]. 2016-09-17 01:00:30 +03:00
Alexey Arno
16f8f33051 dbms: Server: a little better [#METR-19266] 2016-09-16 22:55:29 +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
11484598e3 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-16 00:55:07 +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
59043c680e dbms: Server: Ongoing work. Do not pay attention. [#METR-19266] 2016-09-12 17:16:21 +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
b85dc1bc0f convertCharset: development [#METR-22482]. 2016-08-26 05:24:17 +03:00
Alexey Milovidov
d9db19acea Function 'convertCharset': development [#METR-22482]. 2016-08-26 00:44:47 +03:00
Alexey Arno
f65e7b4a0f dbms: improvements [#METR-19266] 2016-08-18 17:25:02 +03:00
Alexey Arno
8b9742431e dbms: cleanup [#METR-19266] 2016-08-17 19:31:00 +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
e387d94275 More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 10:51:39 +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
1d6e77fd9b More verbose error message when conversion function cannot parse value from string [#METR-22408]. 2016-08-17 10:41:44 +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
d13190a2db Fixed error with 'visibleWidth' function when applied to Array(Enum...) or Tuple(Enum...) [#METR-22432]. 2016-08-17 09:25:01 +03:00
Alexey Arno
821f1e6482 dbms: cleanup [#METR-19266] 2016-08-17 01:40:05 +03:00
Alexey Arno
be2a305366 dbms: cleanup [#METR-19266] 2016-08-16 16:31:42 +03:00
Alexey Arno
8340f8fd07 dbms: better [#METR-19266] 2016-08-15 20:10:30 +03:00
Alexey Arno
44a135f656 dbms: better [#METR-19266] 2016-08-15 17:36:01 +03:00
Alexey Arno
04c9975c84 dbms: fix [#METR-19266] 2016-08-15 17:07:23 +03:00
Alexey Arno
a9310a5568 dbms: fix [#METR-19266] 2016-08-15 16:30:37 +03:00
Alexey Arno
e19cd2e464 dbms: fix [#METR-19266] 2016-08-15 15:42:12 +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
96855a06b8 dbms: Code cleanup. [#METR-19266] 2016-08-12 18:29:45 +03:00
Alexey Arno
c74ee4e478 dbms: Code cleanup [#METR-19266] 2016-08-12 18:22:28 +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
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
6bd84296d1 dbms: performance boost for multiIf [#METR-19266] 2016-08-11 00:39:20 +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
531ff3d5ac dbms: Merged with master [#METR-19266] 2016-08-05 18:44:19 +03:00
Alexey Arno
989b3d87fd dbms: Cleanup [#METR-19266] 2016-08-05 17:00:56 +03:00
Alexey Arno
06428778c3 dbms: Cleanup [#METR-19266] 2016-08-05 15:56:32 +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
a5cd138deb dbms: Cleanup [#METR-19266] 2016-08-05 14:31:55 +03:00
Alexey Arno
65b262a15c dbms: Cleanup [#METR-19266] 2016-08-05 13:56:39 +03:00
Alexey Arno
1802f8d299 dbms: Cleanup [#METR-19266] 2016-08-05 13:32:41 +03:00
Alexey Arno
98b5fde211 dbms: Cleanup [#METR-19266] 2016-08-05 13:04:00 +03:00
Alexey Arno
e6fee12355 dbms: Cleanup [#METR-19266] 2016-08-05 12:53:14 +03:00
Alexey Arno
d73a6efa42 dbms: Cleanup [#METR-19266] 2016-08-05 12:35:37 +03:00
Alexey Arno
f6ab219176 dbms: Cleanup [#METR-19266] 2016-08-05 12:19:32 +03:00
Alexey Arno
a1218c3134 dbms: Cleanup [#METR-19266] 2016-08-05 10:57:02 +03:00
Alexey Arno
e38d29346e dbms: Cleanup [#METR-19266] 2016-08-05 10:49:56 +03:00
Alexey Arno
91bfb1aee2 dbms: Cleanup [#METR-19266] 2016-08-05 02:32:18 +03:00
Alexey Arno
0bcda15bb5 dbms: Cleanup [#METR-19266] 2016-08-05 02:11:54 +03:00
Alexey Arno
2888a7be26 dbms: Cleanup [#METR-19266] 2016-08-05 02:10:35 +03:00
Alexey Arno
a3edb7ea86 dbms: Cleanup [#METR-19266] 2016-08-05 00:43:56 +03:00
Alexey Arno
79a0e6ecd3 dbms: Cleanup [#METR-19266] 2016-08-05 00:30:16 +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
441aaf6e1d Added toTOrZero conversion functions [#METR-22229]. 2016-08-02 08:32:09 +03:00
Alexey Arno
18340adbe8 dbms: better [#METR-19266] 2016-07-26 15:58:51 +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
1055c10621 dbms: fixes [#METR-19266] 2016-07-25 00:34:09 +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
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
777f6bd05c Added miscellaneous function 'rowNumberInAllBlocks' [#METR-21993]. 2016-07-09 00:46:18 +03:00
Alexey Arno
c8209db82a dbms: Server: Feature development. [#METR-19266] 2016-07-06 14:24:15 +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
9ab3d219ad Allowed to show values of type AggregateFunction in Pretty formats [#METR-2944]. 2016-06-22 00:43:43 +03:00
Vladimir Chebotarev
39c2c0f5a5 dbms, contrib: Clang 3.8 build fixes. [#METR-21516] 2016-05-31 14:06:27 +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
4c7eb03b63 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:35:44 +03:00
Alexey Milovidov
bf71e2ed90 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 11:11:52 +03:00
Alexey Milovidov
be394f2c84 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 10:48:40 +03:00
Alexey Milovidov
9a5d580f77 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:53:51 +03:00
Alexey Milovidov
588ae3a790 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:52:51 +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
Alexey Milovidov
ab04e6f5be Added miscellaneous function blockNumber [#METR-21347]. 2016-05-17 21:25:47 +03:00
Alexey Arno
286baa8611 Merge 2016-05-04 02:19:14 +03:00
Alexey Arno
af3a9e10de dbms: Server: Small cosmetic fix in routine that dumps argument types. [#METR-19697] 2016-04-25 18:49:33 +03:00
Alexey Arno
223db6fe93 Merge 2016-04-25 16:11:37 +03:00
Alexey Arno
451256e31c dbms: Server: Bug fix in multiIf: if we passed toFixedString to all the branch parameters, a discrepancy between the awaited return type and the actual return type led to a failure. [#METR-19697] 2016-04-22 18:19:02 +03:00
Alexey Arno
52b6eceb51 dbms: Server: simplified code [#METR-19697] 2016-04-22 13:21:52 +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
f7c09d58a5 Attempt to improve performance [#METR-20892]. 2016-04-15 03:33:21 +03:00
Alexey Milovidov
f538e81c98 Added 'uptime' function [#METR-20819]. 2016-04-09 10:47:08 +03:00
Alexey Milovidov
4c0b0e9c80 dbms: fixed error with function positionCaseInsensitiveUTF8 [#METR-20054]. 2016-02-23 06:20:48 +03:00
Alexey Milovidov
8b3afeb60d Squashed commit of the following:
commit f968e7e7f0d84c89fd26dea1d541bd9f6041d7c8
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Tue Feb 16 06:11:29 2016 +0300

    Addition [#METR-2944].

commit 7524981fa7c4f22929dd5009444a0ae28500f620
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Tue Feb 16 06:08:43 2016 +0300

    Fixed error (incomplete) [#METR-2944].

commit 2f1e7bf9f46cd9ce958ade9041c00ce067940fd2
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Tue Feb 16 05:37:43 2016 +0300

    Improving performance of row formats [#METR-2944].

commit 9848910f235863c9571ef1ebe0d87d4929ee283c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Tue Feb 16 00:37:12 2016 +0300

    Improving performance of text formats [#METR-2944].

commit 3aedc7fd784af962e64ffdd10ec23ac53827d8e2
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Tue Feb 16 00:18:00 2016 +0300

    Improving performance of row formats [#METR-2944].

commit cb5932c2b0385604477e69c8262dc31a4bb4b23b
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Mon Feb 15 00:53:27 2016 +0300

    Fixed error.

commit 42863fd4eddeef594e846c598b92877b6ff86fa6
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sun Feb 14 23:13:46 2016 +0300

    Improving performance of row formats [#METR-2944].

commit 71c6fb19a85a79297433ceb486fdb97e551d964f
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sun Feb 14 16:58:56 2016 +0300

    Improving performance of row formats [#METR-2944].
2016-02-16 19:39:39 +03:00
Alexey Milovidov
df1d66e51a Removed sensitive data. 2016-02-08 00:58:58 +03:00
Alexey Milovidov
477c7245d4 dbms: added function regionToTopContinent [#METR-19807]. 2016-02-01 23:18:13 +03:00
Alexey Milovidov
b7ef4a3e7b dbms: fixed function visibleWidth for enums [#METR-19265]. 2016-02-01 20:30:46 +03:00
Alexey Milovidov
c062fc1ce0 dbms: cutting dependency [#METR-2944]. 2016-01-12 05:21:15 +03:00
Andrey Mironov
2a6992689f dbms: add value to name map for enums; fix visibleWidth for enums [#METR-19265] 2015-12-30 15:12:18 +03:00
Andrey Mironov
a75cb3a528 dbms: change underlying type of Enums to signed ints [#METR-19265] 2015-12-28 20:06:15 +03:00
Andrey Mironov
49236beee8 dbms: CAST(expression AS type) [#METR-19265] 2015-12-25 15:06:16 +03:00
Andrey Mironov
3c0c39e38a dbms: add basic support for types Enum8/16. [#METR-19265] 2015-12-21 16:15:21 +03:00
Alexey Milovidov
1e4def963d dbms: added function 'arrayReduce' [#METR-19264]. 2015-12-13 13:43:49 +03:00
Andrey Mironov
386d560d39 dbms: refactor DoubleConverter [#METR-17328] 2015-11-30 20:55:42 +03:00
Alexey Milovidov
d9bc972a59 dbms: allowed to use index if column is wrapped by piecewise-monotonic functions: initial implementation [#METR-19052]. 2015-11-29 11:06:29 +03:00
Andrey Mironov
6c8c0e03cb dbms: slightly refactor most dictionaries, add dictHas function for all dictionaries supporting dictGet*OrDefault. [#METR-17328], [#METR-18520] 2015-11-19 16:15:02 +03:00
Andrey Mironov
32614f5206 dbms: dictGetOrDefault for all types, explicit StringRef(string) [#METR-18520] 2015-11-10 12:29:30 +03:00
Andrey Mironov
f8e5fed856 dbms: dictGetStringOrDefault, other functions on the way [#METR-18520] 2015-11-06 17:54:04 +03:00
Alexey Milovidov
a552f7b723 dbms: added function arrayStringConcat [#METR-18022]. 2015-10-19 21:49:52 +03:00
Andrey Mironov
797b947425 dbms: add concatAssumeInjective [#METR-18261] 2015-10-14 15:50:21 +03:00
Alexey Milovidov
4a061b97cb Moved file [#METR-17973]. 2015-10-05 03:44:40 +03:00
Andrey Mironov
2efae5a5b9 dbms: positionCaseInsensitiveUTF8 and some fixes (out of bounds access etc.) for positionCaseInsensitive. [#METR-16752] 2015-09-23 20:00:01 +03:00
Andrey Mironov
02064e1029 dbms: positionCaseInsensitive function (no tests attached yet) [#METR-16752] 2015-09-22 16:43:41 +03:00