Alexey Milovidov
335a69d79c
Added type inference for lambdas [#CLICKHOUSE-11].
2017-01-14 10:19:47 +03:00
Vitaliy Lyudvichenko
c56d3724e4
Speedup accurate integer comparisons. Simplified code. [#CLICKHOUSE-29] [#CLICKHOUSE-194]
2017-01-13 23:01:24 +03:00
Vitaliy Lyudvichenko
a1dcd24a76
New behavior for least() and greatest() function with (Int64, UInt64) arguments. [#CLICKHOUSE-29]
2017-01-13 21:17:50 +03:00
alexey-milovidov
9808a5ab9e
Merge pull request #323 from ludv1x/accurate-compare
...
Accurate numbers comparison
2017-01-12 23:31:07 +04:00
Vitaliy Lyudvichenko
9dd3bc3b60
Removed old code. [#CLICKHOUSE-194]
2017-01-12 18:21:29 +03:00
Vitaliy Lyudvichenko
3e53e3268a
Add test for accurate numbers comparisons. [#CLICKHOUSE-194]
2017-01-12 18:21:24 +03:00
Vitaliy Lyudvichenko
7d86246b46
Add safe_convervsion case optimization. Fixed MIN_INT64 comparison. Fixed NaN comparisons between floats. [#CLICKHOUSE-194]
2017-01-12 18:21:17 +03:00
Vitaliy Lyudvichenko
b264b853a5
Added accurate numbers comparison. [#CLICKHOUSE-194]
2017-01-12 18:20:45 +03:00
Alexey Milovidov
38c9ad9761
Fixed error [#METR-2944].
2017-01-12 04:29:32 +03:00
Alexey Milovidov
d89ee33ce2
Squashed commit of the following:
...
commit c567d4e1fe
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 20:35:01 2017 +0300
Style [#METR-2944].
commit 26bf3e1228
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 20:33:11 2017 +0300
Miscellaneous [#METR-2944].
commit eb946f4c6f
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 20:30:19 2017 +0300
Miscellaneous [#METR-2944].
commit 78c867a147
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 20:11:41 2017 +0300
Miscellaneous [#METR-2944].
commit 6604c5c83c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:56:15 2017 +0300
Miscellaneous [#METR-2944].
commit 23fbf05c1d
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:47:52 2017 +0300
Miscellaneous [#METR-2944].
commit 98772faf11
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:46:05 2017 +0300
Miscellaneous [#METR-2944].
commit 3dc636ab9f
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:39:46 2017 +0300
Miscellaneous [#METR-2944].
commit 3e16aee954
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:38:03 2017 +0300
Miscellaneous [#METR-2944].
commit ae7e7e90eb
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date: Fri Jan 6 19:34:15 2017 +0300
Miscellaneous [#METR-2944].
2017-01-06 20:41:19 +03:00
Alexey Milovidov
a1a6ddd01e
Reworking ExpressionAnalyzer (preparations) [#METR-20307].
2017-01-05 19:34:05 +03:00
Alexey Milovidov
51df4e19e2
Reworking ExpressionAnalyzer (preparations) [#METR-20307].
2017-01-05 10:25:23 +03:00
Alexey Milovidov
cf295ee681
Style [#METR-2944].
2017-01-04 07:00:37 +03:00
Alexey Milovidov
d6735c2a23
Function "sleep": do not sleep during query analyze [#METR-21574].
2017-01-04 06:37:59 +03:00
Alexey Milovidov
af5e2c9953
Less const_casts [#METR-2944].
2017-01-03 04:49:19 +03:00
Alexey Milovidov
604bd6c5a3
Less const_casts [#METR-2944].
2017-01-03 04:42:17 +03:00
Alexey Milovidov
ca37f28b5f
Renamed methods Block::rows and Block::rowsInFirstColumn [#METR-2944].
2017-01-02 23:45:27 +03:00
Alexey Milovidov
2b4f3b5d34
Renamed method (less confusion) [#METR-2944].
2017-01-02 23:12:12 +03:00
Alexey Milovidov
baf29f5c48
NULLs support: fixed totally wrong code [#METR-19266].
2016-12-30 08:13:14 +03:00
Alexey Milovidov
cefec8be5a
Great simplification [#METR-2944].
2016-12-30 04:53:21 +03:00
Alexey Milovidov
025bfd414f
Allowed to create tuples with NULLs [#METR-19266].
2016-12-30 03:55:59 +03:00
Alexey Milovidov
b4e18e2222
Cut dependendy (code must depend on Functions only via FunctionFactory) [#METR-2944].
2016-12-30 03:15:50 +03:00
Alexey Milovidov
3f678a3042
Functions: little better [#METR-2944].
2016-12-29 22:38:10 +03:00
Alexey Milovidov
cbaf9d79eb
Added function 'toStartOfDay'; fixed tiny error [#METR-23983].
2016-12-28 15:10:29 +03:00
Alexey Milovidov
ad6507f9df
Preparation [#METR-23490].
2016-12-27 09:36:53 +03:00
proller
4bc003c4c1
Porting to freebsd: initial, compile ok, most tests ok.
2016-12-24 01:03:10 +00:00
artpaul
4025dbe7af
style
2016-12-15 23:59:07 +05: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
31dbff77c4
Little better [#METR-23792].
2016-12-11 14:15:24 +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
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
artpaul
396ccccfce
fix extraction of TLD from fqdn
2016-12-10 03:49:21 +05:00
artpaul
228b43bc95
calculate size of 'https' at compile time
2016-12-10 00:33:52 +05:00
artpaul
dfb466d156
host extraction functionality was moved to UrlUtils
2016-12-10 00:31:16 +05:00
artpaul
544143f5c9
url's scheme extraction was fixed according to rfc3986.
2016-12-09 22:38:15 +05:00
artpaul
2616453263
#214 fix offsets assigments
2016-12-03 02:18:29 +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
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