Commit Graph

1538 Commits

Author SHA1 Message Date
Alexey Milovidov
bed7b531a1 INTERVAL operators: development [#CLICKHOUSE-3393]. 2017-10-30 08:39:30 +03:00
Alexey Milovidov
5c8c3bdde0 Fixed build on Mac OS X [#CLICKHOUSE-2]. 2017-10-29 08:52:41 +03:00
Alexey Milovidov
7ecc63fe71 Functions for interval arithmetic on DateTime and Date: development [#CLICKHOUSE-2]. 2017-10-29 07:18:48 +03:00
Alexey Milovidov
4236bcbfa2 Fixed year 2038 problem. Added support for timezones with fractional offset from UTC. [#CLICKHOUSE-2099] [#CLICKHOUSE-3392]. 2017-10-29 03:51:40 +03:00
Alexey Milovidov
6ca1b84929 Added function getSizeOfEnumType [#CLICKHOUSE-2]. 2017-10-27 23:39:49 +03:00
Vitaliy Lyudvichenko
cd5d1d5009 Fixed segfault in compare operators with Nullable types. #1416 [#CLICKHOUSE-3] 2017-10-27 23:03:12 +03:00
Nikolai Kochetov
3757c9682e style fixes [#CLICKHOUSE-3305] 2017-10-26 21:49:23 +03:00
Alexey Milovidov
a27981b4ef Get rid of double whitespaces [#CLICKHOUSE-2]. 2017-10-26 21:36:23 +03:00
Nikolai Kochetov
092567af39 changed CatBoost model evaluate signature [#CLICKHOUSE-3305] 2017-10-26 17:10:51 +03:00
proller
4ffbca2d8c Fix warnings (#1406)
* Log query id in executeQuery; Better type mismatch error; change format in report tool

* Better log query_id

* fix message

* Use c++11 thread_local instaed of gcc's __thread

* lock mutex before notifying waiting thread in sync insertion into distributed [#CLICKHOUSE-3379]

* Cmake: fix build without downloaded submodules (#1379)

* fix

* ZooKeeper: fixed stack smashing with tryGet()

The tryGet() operation creates a 1MB buffer on stack. This may or
may not work depending on the default stack size for threads,
whether the stack protector is enabled or not, recursion depth,
and the actual value size.

This is probably going to slow down some ZK operations, but I don't
see how else this could work reliably with the existing API.

* increased timeout for test_insertion_sync_fails_with_timeout

* Update CHANGELOG_RU.md

* Update ZooKeeper.cpp

* Fix warnings

* Fixes

* Dont strip debug info from  asan, tsan and other builds except releases

* Fix asan error causd by test 00144

* Fix empty log message (#CLICKHOUSE-3378)
2017-10-25 21:39:10 +03:00
proller
2d2a4afa3f Fix stripping debug info from huge .o (-g0) 2017-10-24 16:30:44 +03:00
Nikolai Kochetov
74a4c7508a merged with master 2017-10-20 19:18:09 +03:00
Nikolai Kochetov
e23e15dba8 fix arguments count in FunctionModelEvaluate [#CLICKHOUSE-3305] 2017-10-20 19:13:29 +03:00
Nikolai Kochetov
48de8de6e0 added registerFunctionsExternalModels [#CLICKHOUSE-3305] 2017-10-20 19:13:28 +03:00
Nikolai Kochetov
fdf258f8ed added ExternalModels to Context [#CLICKHOUSE-3305]
fix build [#CLICKHOUSE-3305]

fix build [#CLICKHOUSE-3305]

fix build [#CLICKHOUSE-3305]

fix build [#CLICKHOUSE-3305]

fix build [#CLICKHOUSE-3305]
2017-10-20 19:13:25 +03:00
Nikolai Kochetov
bb4547140b added ExternalModels, applyModel [#CLICKHOUSE-3305] 2017-10-20 19:13:21 +03:00
Marek Vavruša
70543200be dbms: Fix build with clang after Poco update
In the current version of Poco, unsigned long no longer aliases to
UInt64 with LP64. The size_t aliases to unsigned long with clang,
so all the uses of size_t instead of UInt64 when interacting with
Poco interfaces are gone. I replaced uses with UInt64 where it makes
sense, and added an overloaded function for readVarUInt() to support size_t.
2017-10-13 18:26:24 -07:00
alexey-milovidov
9ccdb5420b Merge branch 'master' into upstream-add-kafka 2017-10-13 23:52:42 +03:00
proller
fd85fffa0d Fix compile CallPointInPolygon on clang4 (Thanks to @vavrusa) (#1333)
* Fix compile with boost 1.65.1+ and clang 3.8 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222439 )

* Fix compile CallPointInPolygon on clang4 (Thanks to @vavrusa)
2017-10-13 00:22:04 +03:00
proller
3de5e465d0 Split GatherUtils.cpp for faster compile (#1312)
* Split GatherUtils.cpp for faster compile

* remove GatherUtils.cpp
2017-10-12 22:58:39 +03:00
Marek Vavruša
cbf9aaca95 dbms: fixed minor mistakes with build
* Use std::abs instead of abs() to properly support floats
2017-10-10 08:32:42 -07:00
proller
5250650f65 Fixes (#1286)
* Revert "Simplification [#CLICKHOUSE-2]."

This reverts commit 98ad6a5db3.

* Fix error: comparison of unsigned expression < 0 is always false

* Fix float division by zero

* Fix float division by zero

* Disable PointInPolygon function if compiling with old clang

* Fix warning:
dbms/src/Functions/FunctionsCoding.h:336:21: error: comparison of constant -1 with expression of type 'const char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
            if (num != -1)

* Fix
2017-09-26 23:29:34 +03:00
Nikolai Kochetov
1592691e47 fixed defalut Nullable implementation for Const(Nullable) columns 2017-09-26 20:34:48 +03:00
Nikolai Kochetov
c8ffca746e fixed defalut Nullable implementation for Const(Nullable) columns [#CLICKHOUSE-3339] 2017-09-26 20:34:48 +03:00
Nikolai Kochetov
c8dc25815f fixed pointinPolygon test, clang build 2017-09-26 19:07:00 +03:00
proller
ed848a7186 Fix warning on arm 2017-09-24 16:59:18 +03:00
KochetovNicolai
6096227cb2 Point in polygon (#1269)
* added FunctionPointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid with holes [#CLICKHOUSE-3201]

* added arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed shifted grid for PointInPolygonWithGrid, added test [CLICKHOUSE-3201]

* expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fix expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added pool to PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* fixed test [#CLICKHOUSE-3201]

* unified signature for PointInPolygon [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* supported Float64 for pointInPolygon [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fixed check for numeric tuple in PointInPolygon function [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* added profile events polygons pool [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* Update FunctionsGeo.cpp

* made grid_size argument of PointInPolygon; style fixes [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* renamed pointInPolygon functions [#CLICKHOUSE-3201]
2017-09-24 02:47:43 +03:00
KochetovNicolai
e0efb7e8c1 Point in polygon (#1264)
* added FunctionPointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for PointInPolygonWithGrid with holes [#CLICKHOUSE-3201]

* added arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added test for arbitrary orientation for polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed shifted grid for PointInPolygonWithGrid, added test [CLICKHOUSE-3201]

* expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fix expand box for complex polygons in PointInPolygonWithGrid [#CLICKHOUSE-3201]

* added pool to PointInPolygonWithGrid [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* changed FunctionPointInPolygonWithGrid signature [#CLICKHOUSE-3201]

* fixed test [#CLICKHOUSE-3201]

* unified signature for PointInPolygon [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* supported Float64 for pointInPolygon [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fix build [#CLICKHOUSE-3201]

* fixed check for numeric tuple in PointInPolygon function [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* added profile events polygons pool [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* fixed build [#CLICKHOUSE-3201]

* Update FunctionsGeo.cpp
2017-09-20 05:30:44 +03:00
Alexey Milovidov
565902fc4d Added comment; fixed test [#CLICKHOUSE-2]. 2017-09-17 20:58:30 +03:00
Alexey Milovidov
a5e8c5e8f5 Better [#CLICKHOUSE-2]. 2017-09-17 01:24:48 +03:00
Alexey Milovidov
b80788a2f4 Better implementation of "roundToExp2" function [#CLICKHOUSE-2]. 2017-09-17 01:12:24 +03:00
Alexey Milovidov
5224345c03 Added function aliases for 'trunc' [#CLICKHOUSE-2]. 2017-09-17 01:11:20 +03:00
Alexey Milovidov
c2595934f1 FunctionsRound: continue [#CLICKHOUSE-2]. 2017-09-16 23:17:19 +03:00
Alexey Milovidov
d48725f9a7 FunctionsRound: continue [#CLICKHOUSE-2]. 2017-09-16 22:33:49 +03:00
Alexey Milovidov
84d61b501c FunctionsRound: continue [#CLICKHOUSE-2]. 2017-09-16 22:31:20 +03:00
Alexey Milovidov
ad13a8c79d Fixed half of bad code [#CLICKHOUSE-2]. 2017-09-16 21:36:16 +03:00
Alexey Milovidov
0002507598 Added function "trunc"; simplifications [#CLICKHOUSE-2]. 2017-09-16 19:47:05 +03:00
Alexey Milovidov
25f2f032d1 Added function "trunc"; simplifications [#CLICKHOUSE-2]. 2017-09-16 19:38:27 +03:00
Alexey Milovidov
86c46ad1bd Unification [#CLICKHOUSE-2]. 2017-09-15 15:16:12 +03:00
Nikolai Kochetov
2bb487c333 fixed string concat wih first array argument in block 2017-09-13 22:33:47 +03:00
Alexey Milovidov
dc4976f562 Implemented some suggestions from clang-tidy (part 8) [#CLICKHOUSE-3301]. 2017-09-08 07:58:57 +03:00
Alexey Milovidov
8b313ab99e Fixed warnings found by cppcheck [#CLICKHOUSE-3300]. 2017-09-08 00:04:48 +03:00
Alexey Milovidov
0dcee75180 Supporessed useless false positive errors found by cppcheck [#CLICKHOUSE-3300]. 2017-09-07 22:13:37 +03:00
Vadim Skipin
4017622ffb CLICKHOUSE-3289: Do not use Application singleton 2017-09-07 20:55:33 +03:00
Alexey Milovidov
b370551e67 Fixed redundant code in IPv4NumToStringClassC function and removed copy-paste [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
ff8940ddbe Fixed bad code [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
60263d943e IPv6StringToNum: fixed missing overflow check [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
24ac5a68e1 More uniform style [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
ee469f7a98 Fixed redundant code [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
3b6dd67178 Fixed nullptr dereference [#CLICKHOUSE-3281]. 2017-09-06 06:24:39 +03:00
Alexey Milovidov
b37790d27e Minor modifications [#CLICKHOUSE-3201]. 2017-09-04 23:21:55 +03:00
Vladimir Chebotarev
e39fb48377 functions: pointInPolygon(). [#CLICKHOUSE-3201] 2017-09-04 17:26:28 +03:00
alexey-milovidov
223ebc0b0d Merge pull request #1187 from yandex/array-functions-concat-slice-push-pop
Fix array functions for generic array type
2017-09-01 21:11:09 +03:00
Nikolai Kochetov
20766debb0 fix arrasSlice for gereric arrays [#CLICKHOUSE-2090] 2017-09-01 21:01:06 +03:00
Nikolai Kochetov
32ed1b0b41 fix arrasSlice for gereric arrays [#CLICKHOUSE-2090] 2017-09-01 20:41:43 +03:00
alexey-milovidov
897a9ad6b2 Merge pull request #1146 from yandex/array-functions-concat-slice-push-pop
Array functions concat slice push pop
2017-09-01 20:30:51 +03:00
proller
1a8e22c37f Allow compile on 32bit systems (#1175)
* Trying compile under 32bit..

* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* clnag-format of Split ComplexKeyCacheDictionary

* wip

* Requested changes

* wip

* wip

* Fix boost 1.64 and gcc7+ compile errors

* More fixes

* wip

* Fix arm build

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* clean

* fix

* wip

* wip

* clean

* clean

* wip

* wip

* Update MergeTreeSettings.h

* Requested changes

* Requested changes

* Requested changes

* Requested changes
2017-09-01 20:21:03 +03:00
Nikolai Kochetov
463c05b33d fixed build [#CLICKHOUSE-2090] 2017-09-01 20:16:48 +03:00
Nikolai Kochetov
a88bb9375a removed useless code from GatherUtils [#CLICKHOUSE-2090] 2017-09-01 20:14:47 +03:00
Nikolai Kochetov
df09912864 reformated GatherUtils.cpp [#CLICKHOUSE-2090] 2017-09-01 20:07:58 +03:00
Nikolai Kochetov
b4f7e0e15c restored identation in FunctionsArray.cpp [#CLICKHOUSE-2090] 2017-09-01 19:57:01 +03:00
Nikolai Kochetov
a46780e4a5 renamed concatGeneric to concatGenericArray [#CLICKHOUSE-2090] 2017-09-01 19:45:05 +03:00
Nikolai Kochetov
3370ba270f fix build [#CLICKHOUSE-2090] 2017-09-01 17:55:43 +03:00
Nikolai Kochetov
862460f293 changed & to && in GatherUtils.cpp [#CLICKHOUSE-2090] 2017-09-01 17:47:42 +03:00
Nikolai Kochetov
b392788e86 fix build [#CLICKHOUSE-2090] 2017-09-01 17:35:37 +03:00
Nikolai Kochetov
5b4759acd9 changed sibstring behaviour for offset < -string_lenght [#CLICKHOUSE-2090] 2017-09-01 17:32:12 +03:00
Nikolai Kochetov
f1c01118b5 fixed writeSlice for const GenericArraySlice and NumericArraySink [#CLICKHOUSE-2090] 2017-09-01 16:55:05 +03:00
Nikolai Kochetov
6956e12770 added comments to writeSlice functions [#CLICKHOUSE-2090] 2017-09-01 16:03:54 +03:00
Nikolai Kochetov
1da43b683c fixed comment [#CLICKHOUSE-2090] 2017-09-01 15:23:06 +03:00
Nikolai Kochetov
7885c5c032 renamed TypeListNumber to TypeListNumbers [#CLICKHOUSE-2090] 2017-09-01 15:09:08 +03:00
Nikolai Kochetov
7891596579 unified TypeList [#CLICKHOUSE-2090] 2017-09-01 15:05:19 +03:00
Nikolai Kochetov
c695f10c66 hanged & to && in GatherUtils [#CLICKHOUSE-2090] 2017-09-01 14:32:31 +03:00
Nikolai Kochetov
c0b05f2ca9 hanged & to && in GatherUtils [#CLICKHOUSE-2090] 2017-09-01 14:02:26 +03:00
alexey-milovidov
1b8100ae86 Update FunctionsArray.cpp 2017-08-31 20:00:51 +03:00
alexey-milovidov
c6f87d9543 Update GatherUtils.h 2017-08-31 19:24:46 +03:00
Nikolai Kochetov
24e135fbe6 supported arraySlice with 2 arguments, added comments [#CLICKHOUSE-2090] 2017-08-25 16:54:08 +03:00
Nikolai Kochetov
1ec04d1024 supported || for arrayConcat [#CLICKHOUSE-2090] 2017-08-25 16:05:26 +03:00
Nikolai Kochetov
239f4f2d36 merged with master 2017-08-25 15:05:18 +03:00
Nikolai Kochetov
0f4e7f1833 fixed array slice with offset <= -(array length) [#CLICKHOUSE-2090] 2017-08-25 14:29:49 +03:00
Nikolai Kochetov
d213efa974 fixed slice for nullable index [#CLICKHOUSE-2090] 2017-08-24 22:19:37 +03:00
Nikolai Kochetov
d8529e1846 unused type alias [#CLICKHOUSE-2090] 2017-08-24 21:16:25 +03:00
Nikolai Kochetov
09a307b94f removed debug stderr output [#CLICKHOUSE-2090] 2017-08-24 19:46:41 +03:00
Nikolai Kochetov
e6fd55ff42 added arrayPushBack arrayPushFront arrayPopBack arrayPopFront function [#CLICKHOUSE-2090] 2017-08-24 19:46:40 +03:00
Nikolai Kochetov
096d34bb7f added arraySlice function [#CLICKHOUSE-2090] 2017-08-24 19:46:34 +03:00
Nikolai Kochetov
c1479a5594 updated GatherUtils [#CLICKHOUSE-2090] 2017-08-24 19:46:15 +03:00
Nikolai Kochetov
c3fe8bb026 added FunctionArrayConcat [#CLICKHOUSE-2090] 2017-08-24 19:45:13 +03:00
Alexey Milovidov
304ccf29b2 Fixed error; added test [#CLICKHOUSE-2]. 2017-08-18 22:02:50 +03:00
Alexey Milovidov
5d835e88de Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-18 21:45:10 +03:00
Alexey Milovidov
434a7d8f38 Fixed function "substring" with out-of-bound negative offset argument [#CLICKHOUSE-2]. 2017-08-18 21:45:02 +03:00
Vadim Skipin
5f4e833925 Cleanup function factories:
* Switch to std::function to allow more complex creator logic
* Cleanup headers
2017-08-18 21:15:57 +03:00
Alexey Milovidov
f918e22438 Miscellaneous [#CLICKHOUSE-2]. 2017-08-18 19:36:02 +03:00
Alexey Milovidov
c629799500 Fixed insufficient arguments checking [#CLICKHOUSE-3102]. 2017-08-16 17:21:24 +03:00
Alexey Milovidov
2ddf462563 Fixed regression [#CLICKHOUSE-2]. 2017-08-16 00:52:52 +03:00
Alexey Milovidov
986c6c729d Fixed incompatibility [#CLICKHOUSE-2]. 2017-08-14 07:23:38 +03:00
Alexey Milovidov
0ef64e5dfe Fixed error [#CLICKHOUSE-2]. 2017-08-14 02:58:04 +03:00
Alexey Milovidov
1e1dc8828a Miscellaneous [#CLICKHOUSE-2]. 2017-08-13 00:02:45 +03:00
Alexey Milovidov
ce4349b6cd Fixed error when huge sets for IN, JOIN, DISTINCT cannot be created with exception message "Cannot mremap... Bad address" [#CLICKHOUSE-2]. 2017-08-11 02:25:51 +03:00
alexey-milovidov
a122cd613a Update FunctionsExternalDictionaries.h 2017-08-10 06:29:06 +03:00
proller
6ca798a357 Fix infinite loop in dictGetHierarchy if id chain looped 2017-08-10 06:29:06 +03:00
proller
ac178bde1f Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM (#1083)
* Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM

* Fix lib find order

* Allow define non-contrib cityhash farmhash metrohash

* Fix message

* Cmake: fixes

* clean

* Update CMakeLists.txt
2017-08-09 23:52:55 +03:00
Alexey Milovidov
6edb14ba6b Fixed garbage [#CLICKHOUSE-2]. 2017-08-09 04:35:12 +03:00
Alexey Milovidov
1fc8548018 Fixing garbage (incomplete) [#CLICKHOUSE-2]. 2017-08-09 04:35:12 +03:00
Alexey Milovidov
ff54c93a22 Miscellaneous [#CLICKHOUSE-2]. 2017-08-07 04:37:52 +03:00
Alexey Milovidov
f386788278 Using GatherUtils for function if on arguments of type Array(String) [#CLICKHOUSE-2]. 2017-08-05 07:13:23 +03:00
Alexey Milovidov
5ddc354989 Using GatherUtils for function if on arguments of type Array(String) [#CLICKHOUSE-2]. 2017-08-05 07:13:23 +03:00
Alexey Milovidov
19ff0db9f1 Using GatherUtils for if on numeric arrays [#CLICKHOUSE-2]. 2017-08-05 06:30:54 +03:00
Alexey Milovidov
6648d6dee4 Using GatherUtils for if on numeric arrays [#CLICKHOUSE-2]. 2017-08-05 06:30:54 +03:00
Alexey Milovidov
49bdf266b0 Fixed function if of FixedString arguments [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
Alexey Milovidov
03662e3d77 Fixed function if of FixedString arguments [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
Alexey Milovidov
dadf5ac400 Fixed function if of FixedString arguments [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
Alexey Milovidov
0bb8b32cb9 Fixed function if of FixedString arguments [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
Alexey Milovidov
767d025fb3 Fixed function if of FixedString arguments [#CLICKHOUSE-3202]. 2017-08-05 05:25:59 +03:00
proller
d6833a0d55 Cmake: remove global include_directories (#1055)
* Fix .h compile

* Cmake: remove global include_directories

* boost include hide

* fix cctz

* add \n
2017-08-03 15:44:39 +03:00
proller
8f6c2d4e47 Fix .h compile 2017-08-01 18:02:16 +03:00
Alexey Milovidov
a6cb383c4f Fixed build with gcc-7.1 [#CLICKHOUSE-2]. 2017-08-01 04:25:03 +03:00
Alexey Milovidov
6578fb2645 Fixed error [#CLICKHOUSE-3191]. 2017-08-01 00:39:24 +03:00
Alexey Milovidov
306070d2cc Fixed error in one of prev. revisions [#CLICKHOUSE-3150]. 2017-07-30 22:47:32 +03:00
proller
460d66c68d Split FunctionsArray.cpp register (#1043)
* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* gcc7 fixes

* clnag-format of Split ComplexKeyCacheDictionary

* Requested changes

* Fix boost 1.64 and gcc7+ compile errors

* More fixes

* Fix arm build

* Fix nothrow

* Better arm detection

* Split FunctionsArray.cpp register
2017-07-30 15:31:58 +03:00
proller
700d4e0904 Fix boost 1.64 and gcc7+ compile errors (#1040)
* PerformanceTest: use getMultiple*FromConfig, fix debug helpers

* Missing file

* clnag-format of Split ComplexKeyCacheDictionary

* Requested changes

* Fix boost 1.64 and gcc7+ compile errors

* More fixes
2017-07-28 23:41:51 +03:00
Alexey Milovidov
3502d36d7d Fixed build [#CLICKHOUSE-2]. 2017-07-28 02:23:13 +03:00
proller
ff7f3af238 Split FunctionsArithmetic.cpp to generated functions 2017-07-26 21:32:35 +03:00
Alexey Milovidov
3dcb2e6aed Fixed test [#CLICKHOUSE-2]. 2017-07-26 04:21:19 +03:00
Alexey Milovidov
d20c411b0d Fixed linkage [#CLICKHOUSE-2]. 2017-07-25 21:19:22 +03:00
Vitaliy Lyudvichenko
03e5bf9471 Add support of parameters in aggregate function constructors. [#CLICKHOUSE-3084] 2017-07-25 20:04:10 +03:00
Guillaume Tassery
03bbe9938a Function for generate an uuid v4 (#1008)
* Fix compilation error when include FunctionsRandom.h twice

* Implement function for generate UUID V4

* remove isDeterministicInScopeOfQuery for generateUUIDV4

* Uniformize RandX Implementation

* rename generateUUIDV4 into generateUUIDv4

* Modify random function for making it more generic
2017-07-25 20:00:38 +03:00
Alexey Milovidov
f153d5f5db Additions to prev. revision [#CLICKHOUSE-2]. 2017-07-25 01:53:44 +03:00
Alexey Milovidov
b4c610a8e7 Fixed errors [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
188ee349bd Fixed errors [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
a6df2e7151 Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
487278e2f5 Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
3144cbc9c1 Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
94768fe9bf Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
52b5bae62f Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
30ff4a78a6 Added support for non-constant and negative offset and size for substring function (continued) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
14de659c99 Added support for non-constant offset and size for substring function [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
0c8e082954 Using GatherUtils (experimental) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
1557fa2e8d Removed "dispatchFor" templates, because gcc 6 cannot compile them (only clang is capable) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
ffbd2f46f9 GatherUtils (experimental) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
9540a2da90 GatherUtils (experimental) [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
bfdc108a08 Cleaning old code [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
Alexey Milovidov
ee81d53bd5 Functions simplification [#CLICKHOUSE-2]. 2017-07-25 01:44:13 +03:00
alexey-milovidov
bbe70e8cfa Update FunctionsStringSearch.cpp 2017-07-24 20:36:16 +03:00
Alexey Milovidov
efaa44bea8 Attempt to improve performance [#CLICKHOUSE-3]. 2017-07-23 09:53:28 +03:00
Alexey Milovidov
a76061e1a9 Fixed MAC address related functions; added test [#CLICKHOUSE-3]. 2017-07-23 09:13:57 +03:00
Alexey Milovidov
31d8ba3b34 Fixed error after merge [#CLICKHOUSE-3150]. 2017-07-21 23:20:22 +03:00
Nikolai Kochetov
5477e7c1f9 added date and time to number functions [#CLICKHOUSE-3132] 2017-07-21 20:51:08 +03:00
Alexey Milovidov
3a0bf8e642 Fixed error after merge [#CLICKHOUSE-3150]. 2017-07-21 09:55:33 +03:00
Alexey Milovidov
e1cc8289b2 Fixed error after merge [#CLICKHOUSE-3150]. 2017-07-21 09:46:50 +03:00
alexey-milovidov
d4d266fa18 ColumnConst unification (#1011)
* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* Fixed error in ColumnArray::replicateGeneric [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].

* ColumnConst: unification (incomplete) [#CLICKHOUSE-3150].
2017-07-21 09:35:58 +03:00
Vladimir Chebotarev
7254478fde functions: Remote mode for hasColumnInTable. [#CHEBOTAREV-9] 2017-07-20 17:08:42 +03:00
Alexey Milovidov
bfc099ea5f Miscellaneous [#CLICKHOUSE-2]. 2017-07-17 01:41:15 +03:00
Alexey Milovidov
5c3ca0c16e Inverted dependency in DataTypeFactory [#CLICKHOUSE-3149]. 2017-07-16 07:11:11 +03:00
Alexey Milovidov
9406b6a5aa Get rid of ASTSet, because it is not really an AST and it lead to bugs [#CLICKHOUSE-3148]. 2017-07-15 06:48:36 +03:00
alexey-milovidov
37985d3cb8 Merge pull request #981 from yandex/reduce-memory-consumprion-during-reading-column-string-from-native-block
Reduce memory consumprion during reading column string from native block
2017-07-14 00:01:50 +03:00
Nikolai Kochetov
75be0b81d8 removed typeid_cast from IColumn.h 2017-07-13 23:58:19 +03:00
Maxim Fridental
82b53b712a findClusterIndex: fix virtual method, improve formatting 2017-07-13 22:39:37 +03:00
Maxim Fridental
ff4df27cad Improve implementation of findClusterIndex and findClusterValue, add test 2017-07-13 22:39:37 +03:00
Nikolai Kochetov
985e449bd3 added IDataType::updateAvgValueSizeHints; renamed PODArray::allocated_size to PODArray::allocated_bytes; renamed renamed IColumn::allocatedSize to IColumn::allocatedBytes; removed IColumn.h from IDataType.h 2017-07-13 19:49:09 +03:00
Alexey Milovidov
33c6e0b804 Removing dependency on functions from client: preparation [#CLICKHOUSE-2]. 2017-07-12 03:42:50 +03:00
Vitaliy Lyudvichenko
b843ea5b3f Resolves #964. Fixed input_format_skip_unknown_fields for negative numbers. [#CLICKHOUSE-3] 2017-07-11 21:36:51 +03:00
Alexey Milovidov
86eb4d2d06 Renamed Singleton to avoid conflicts with Arcadia* codebase [#DEVTOOLS-3343].
* - "Arcadia" is the name of Yandex's monorepo.
2017-07-10 07:34:14 +03:00
alexey-milovidov
b64b243a73 Merge pull request #945 from YiuRULE/master
Implement natively uuid type in Clickhouse
2017-07-10 07:00:45 +03:00
alexey-milovidov
894d09f797 Update IFunction.h 2017-07-09 17:13:51 +03:00
Marek Vavruša
ff73394124 PKCondition: infer index use with pk subexpression
By default only constraints explicitly matching
primary key expression (or expression wrapped in
a monotonic function) are eligible for part and
range selection. So for example, if index is:

(toStartOfHour(dt), UserID)

Then a query such as this resorts to full scan:

SELECT count() FROM t WHERE dt = now()

Intuitively, only parts with toStartOfHour(now())
could be selected, but it is less trivial to prove.
The primary key currently can be wrapped in a chain
of monotonic functions, so following would work:

toStartOfHour(dt) = toStartOfHour(now()) AND dt = now()

It must be however explicitly stated, if we wanted
to infer that we’d have to know the inverse function,
and prove that the inverse function is monotonic
on given interval. This is not practical as
there is no inverse function that for example undos
rounding, it isn’t strictly monotonic.

There are however functions that don’t transform
output range and preserve monotonicity on the
complete input range, such as rounding or casts
to a same or wider numeric type. This eliminates
the need to find inverse function, as no check for monotonicity over arbitrary interval is needed,
and thus makes this optimisation possible.
2017-07-09 17:13:51 +03:00
Vitaliy Lyudvichenko
7150e9447a Fixed multiIf in case of empty arguments. [#CLICKHOUSE-3119] 2017-07-07 17:42:37 +03:00
Guillaume Tassery
2ec96fe822 Make UUID as a strong type 2017-07-06 16:50:29 +02:00
Guillaume Tassery
cba9815981 Change Uuid to UUID datatype and make UInt128 a generic type 2017-07-04 12:42:53 +02:00
Guillaume Tassery
d6ab06437a Remove mention of UUID type for dictonnary 2017-07-03 18:08:32 +02:00
Alexey Milovidov
5a015a1475 Misc fixes after merge [#CLICKHOUSE-3]. 2017-07-03 17:17:46 +03:00
Alexey Milovidov
a38bf1cbb3 Fixed bad code after merge [#CLICKHOUSE-3]. 2017-07-03 17:16:20 +03:00
Alexey Milovidov
320b1e635b Fixed build after merge [#CLICKHOUSE-3]. 2017-07-03 17:14:44 +03:00
Alexey Milovidov
43daa720a4 Fixed build after merge [#CLICKHOUSE-3]. 2017-07-03 17:09:32 +03:00
Maxim Fridental
e30c9242bc Implement functions findClusterIndex and findClusterValue. 2017-07-03 17:01:21 +03:00
Guillaume Tassery
525851ec68 sync master 2017-06-30 22:21:42 +02:00
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 Zatelepin
87fbfe0950 correct comparisons for strings with null bytes [#CLICKHOUSE-3070] 2017-06-22 23:10:43 +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
Георгий Кондратьев
47161f8425 Specify all link dependencies [#DEVTOOLS-3381]
Tested with:

export LDFLAGS="-Wl,--no-undefined"
cmake -DUSE_STATIC_LIBRARIES=OFF -DBUILD_SHARED_LIBS=ON
2017-06-20 00:53:12 +03:00
Alexey Milovidov
3ec14e0481 Fixed error [#CLICKHOUSE-4]. 2017-06-14 22:31:05 +03:00
Alexey Milovidov
49e8473456 Fixed error [#CLICKHOUSE-2]. 2017-06-13 08:55:04 +03:00
Alexey Milovidov
8ba0ed9aeb Less dependencies [#CLICKHOUSE-2]. 2017-06-13 08:15:12 +03:00
Alexey Milovidov
a73790f17d Less dependencies [#CLICKHOUSE-2]. 2017-06-13 08:14:24 +03:00
Alexey Milovidov
a782f81f8f Moved common code from Functions; fixed build after merge [#CLICKHOUSE-2]. 2017-06-13 07:45:30 +03:00
Alexey Milovidov
77aa0ed3d2 Fixed build [#CLICKHOUSE-31]. 2017-06-13 07:33:07 +03:00
Alexey Milovidov
74bd90701e Removed useless code [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
3ddea6b260 Removed useless code [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
1c219c5a7b Addition to prev. revision [#CLICKHOUSE-31]. 2017-06-13 07:14:23 +03:00
Alexey Milovidov
782fe332b1 Miscellaneous [#CLICKHOUSE-31]. 2017-06-13 07:13:54 +03:00
Alexey Milovidov
7f87bb07da Fixed linkage [#CLICKHOUSE-2]. 2017-06-12 03:26:22 +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
7c6f647559 Removed questionable code [#CLICKHOUSE-2]. 2017-06-07 04:52:11 +03:00
Alexey Milovidov
d5a83f6cef Removed questionable code [#CLICKHOUSE-2]. 2017-06-07 04:49:23 +03:00
Alexey Milovidov
9c5ddce06d Get rid of .hpp files [#CLICKHOUSE-2]. 2017-06-06 20:18:32 +03:00
Alexey Milovidov
5bd9342c0b Merge branch 'master' of github.com:yandex/ClickHouse 2017-06-01 21:13:42 +03:00
Alexey Milovidov
862a304db2 Small refinements [#CLICKHOUSE-2]. 2017-06-01 16:41:58 +03:00
f1yegor
0bf5182020 translate comments: etc 2017-05-28 16:32:59 +02:00
f1yegor
0882092c20 translate comments: functions 2017-05-27 17:45:25 +02:00
Alexey Milovidov
e05547f4f8 Little better [#CLICKHOUSE-3039]. 2017-05-25 22:52:05 +03:00
Alexey Zatelepin
1c903df8d7 move AccurateComparison.h [#CLICKHOUSE-3002] 2017-05-25 05:34:26 +04:00
Alexey Zatelepin
e9f8f99e06 Correct index comparisons in case constants cannot be precisely casted [#CLICKHOUSE-3002] 2017-05-25 05:34:26 +04:00
Alexey Milovidov
571af20a4f Added function defaultValueForArgumentType [#CLICKHOUSE-3013]. 2017-05-22 01:27:41 +03:00
Dmitry Luhtionov
4cc10af7b7 Add MACStringToOUI function 2017-05-16 10:32:49 +04:00
orantius
da83036326 Add age 55 for function roundAge. [#CLICKHOUSE-3001] 2017-05-15 22:42:39 +04:00
Marek Vavruša
9520234365 Dictionaries/TrieDictionary: IP prefix dictionary
This commit implements a basic IP prefix dictionary
that allows storing IPv4/IPv6 prefixes and
matching them against a single IP address on query
time. This allows for doing IP -> ASN matching and
other similar things on query time.

The implementation is basic for start, using a
simple bitwise trie and reusing interface for
complex key dictionaries (so using tuple instead
of UInt32/FixedString(16) as the key). A faster
bitwise trie implementation (like poptrie) is
desired to improve lookup performance and
memory consumption with large prefix tables.
2017-05-15 10:51:03 +04:00
f1yegor
c252863b2e translate comments 2017-05-14 19:03:55 +04:00
Alexey Milovidov
4b852584ce Whitespaces [#CLICKHOUSE-2]. 2017-05-12 17:01:02 +03:00
Dmitry Luhtionov
a21a6caf4e Доюавленф функции FunctionMACNumToString и FunctionMACStringToNum 2017-05-10 08:16:06 -04:00
proller
fac00792f9 Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
Alexey Milovidov
b007f6ba18 Analyzers: added type inference for higher order functions [#CLICKHOUSE-11]. 2017-04-24 07:31:03 +03:00
proller
8cf716fa29 Functions as separate lib 2017-04-21 21:30:16 +03:00
Alexey Milovidov
53364dcc8d Fixed totally wrong code; implemented function emptyArrayToSingle for generic case [#CLICKHOUSE-2963]. 2017-04-19 08:08:22 +03:00
Alexey Milovidov
ed3c0125cd Added support for Nullable types in higher order functions [#CLICKHOUSE-4]. 2017-04-19 06:35:11 +03:00
alexey-milovidov
35abae95c8 Allow to disable ICU (#711)
* Allow to disable ICU [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].
2017-04-19 04:06:29 +03:00
alexey-milovidov
c9c8c8ec50 Better option to disable mysqlclient (#710)
* Better support for disabling libmysqlclient [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].
2017-04-19 03:25:57 +03:00
artpaul
0ba72436db #214 fix conversion from fixed-string to string 2017-04-19 03:17:44 +03:00
Alexey Milovidov
f76680d47e Fixed function toStringCutToZero with argument of type String [#CLICKHOUSE-2958]. 2017-04-17 20:49:11 +03:00
Vitaliy Lyudvichenko
dcb5371844 Fixed CAST(NULL AS Nullable(...)). [#CLICKHOUSE-2754] 2017-04-17 14:44:16 +03:00
proller
72ccc69212 Debian: simpler package (#662)
* Allow use external re2 with re2_st=re2

* fix

* remove dupe

* use re2_st in FunctionsStringSearch.h

* fix

* move files from tools/etc to debian

* dont generate control

* version

* ok.

* wip

* Cmake: dont touch CMAKE_INSTALL_PREFIX

* wip

* works!

* clean

* okay

* like old

* wip

* wip

* okay

* clickhouse-server-base-dbg

* clean

* clickhouse-server-dbg

* Debian: Remove daemons

* Update rules

* add source/format

* control clean

* add watch

* clean

* clean

* temp fix build

* clean

* docs

* fake make_control

* fix

* testme

* testme

* add metrika package

* fake metrika files
2017-04-10 20:43:30 +03:00
Alexey Milovidov
a0b9bf5e97 Moved code to cpp [#CLICKHOUSE-2]. 2017-04-08 04:32:05 +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
cc43f989bc Preparation [#CLICKHOUSE-4]. 2017-03-29 14:33:07 +03:00
Alexey Milovidov
8b2f769f12 Fixed error after translated comments [#CLICKHOUSE-3]. 2017-03-26 05:07:15 +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
Alexey Milovidov
edd405ef29 Merge branch 'docs/translate' of https://github.com/f1yegor/ClickHouse into f1yegor-docs/translate 2017-03-26 04:17:58 +03:00
Alexey Milovidov
e6ba252507 Hierarchical dictionaries performance: continued [#CLICKHOUSE-2144]. 2017-03-26 03:42:01 +03:00
f1yegor
bc0d9a2cae translate comments 2017-03-25 21:12:56 +01:00
Alexey Milovidov
f5434cd2ae Separated functions for embedded and external dictionaries [#CLICKHOUSE-2144]. 2017-03-25 21:11:09 +03:00
Alexey Milovidov
910c542994 Added more bitwise functions [#CLICKHOUSE-2884]. 2017-03-20 22:16:02 +03:00
proller
930ac5b2ce move ClickHouseRevision to dbms 2017-03-16 13:51:41 +04:00
proller
28ed324702 add cmake option USE_VECTORIZED_MATH_FUNCTIONS, reorganize auto configs 2017-03-16 13:51:41 +04: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
a380fa88da Fixed debug build [#CLICKHOUSE-2]. 2017-03-12 14:09:25 +03:00
Alexey Milovidov
8912e5ea2b DataTypeNull: move code to cpp [#CLICKHOUSE-2]. 2017-03-12 13:38:46 +03:00
alexey-milovidov
6d5bfc8c6f Refactoring of numeric DataTypes (#581)
* Better code [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].
2017-03-12 14:13:45 +04:00
Alexey Milovidov
93bb49cecd Using ICU instead of iconv. Improved performance of 'convertCharset' function [#CLICKHOUSE-2879]. 2017-03-11 07:36:14 +03:00
Alexey Milovidov
61add0f252 Fixed error [#CLICKHOUSE-2877]. 2017-03-11 04:18:13 +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
proller
81594df4d6 split FunctionsString.h (#571)
* split FunctionsString.h

* wip

* wip

* format

* wip
2017-03-10 21:53:32 +04:00
proller
a2d78e674f split FunctionsStringSearch.h (#572)
* split FunctionsStringSearch.h

* wip

* includes

* format
2017-03-10 21:52:36 +04:00
proller
3284133169 better split FunctionsMiscellaneous.cpp 2017-03-10 16:13:32 +03:00
Alexey Milovidov
abe0fca1a4 Better coalesce [#CLICKHOUSE-2789]. 2017-03-09 23:39:20 +03:00
Alexey Milovidov
ee0f0a8818 Fixed ifNull function [#CLICKHOUSE-4]. 2017-03-09 22:39:51 +03:00
Alexey Milovidov
82ae603426 Added function toNullable [#CLICKHOUSE-4]. 2017-03-09 22:31:16 +03:00
Alexey Milovidov
8da4e576a9 Make function ifNull to allow to return non-Nullable result [#CLICKHOUSE-2789]. 2017-03-09 21:58:44 +03: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
f9a5902e76 Support for NULLs in function if: continued [#CLICKHOUSE-2873]. 2017-03-09 06:34:09 +03:00
proller
b3ea06ac12 Split FunctionsMiscellaneous.h (#564)
* Move funcs from .h to FunctionsMiscellaneous.cpp

* Move funcs from .h to FunctionsMiscellaneous.cpp - templates

* format

* clean includes

* newlines

* cmath
2017-03-07 22:57:15 +04:00
Alexey Milovidov
8eeeea200a Better [#CLICKHOUSE-2872]. 2017-03-07 04:35:36 +03:00
serebrserg
42ce089aa6 add pointInEllipses function 2017-03-01 12:23:49 +03:00
Vitaliy Lyudvichenko
3ee4e6b79b Banned Null(AggregateFunction(...)) type in arrayReduce. Fix test. [#CLICKHOUSE-2845] 2017-02-18 22:25:19 +03:00
Vitaliy Lyudvichenko
8bcb1fe970 Add support of AggregateFunction constants in VALUES and Set. [#CLICKHOUSE-2845] 2017-02-18 00:36:31 +04:00
Vitaliy Lyudvichenko
97c4211409 Add support of scalars with AggregateFunction() type. [#CLICKHOUSE-2845]
Fixed segfaults for arrayReduce. [#CLICKHOUSE-2787]
2017-02-18 00:36:31 +04:00
Vitaliy Lyudvichenko
76916739e2 Fixed arrayReduce. Refactoring of ObjectPool. [#CLICKHOUSE-2787] 2017-02-07 23:43:31 +04:00
Alexey Milovidov
812fd4fe87 Added function 'timezone' for introspection [#CLICKHOUSE-2765]. 2017-01-22 14:07:45 +03:00
Alexey Milovidov
641faac912 More correct time zones support; removed support for non-constant time zone argument [#CLICKHOUSE-2765]. 2017-01-22 11:57:34 +03:00
alexey-milovidov
ed5b521110 Less dependencies 2 (#378)
* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].

* Less dependencies [#CLICKHOUSE-2].
2017-01-21 08:24:28 +04:00
Alexey Milovidov
7a971df887 Fixed error in function multiIf [#CLICKHOUSE-2763]. 2017-01-20 04:41:30 +03:00
Alexey Milovidov
904ac284da Fixed error with multiIf function [#CLICKHOUSE-2763]. 2017-01-20 04:18:57 +03:00
proller
db0fce346a Freebsd clang3.8 compile fixes (#352)
* Freebsd clang3.8 compile fixes

* clean
2017-01-18 01:00:23 +04:00
proller
2fe033d00e Fix compiling in freebsd/clang 2017-01-17 18:03:32 +00:00
Alexey Milovidov
58e5dad1a1 Squashed commit of the following:
commit e712f469a5
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:59:13 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2a00282308
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:58:30 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 9e06f407c8
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:55:14 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 9581620f1e
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:54:22 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2a8564c68c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:47:34 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit cf60632d78
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:40:09 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit ee3d1dc6e0
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:22:49 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 65592ef711
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:18:17 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 37972c2573
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:17:06 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit dd909d1499
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:16:28 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 3cf43266ca
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:15:42 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 6731a3df96
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:13:35 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 1b5727e0d5
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:11:18 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit bbcf726a55
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:09:04 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit c03b477d5e
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:06:30 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2986e2fb04
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:05:44 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 5d6cdef13d
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:04:53 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit f2b819b25c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:01:47 2017 +0300

    Less dependencies [#CLICKHOUSE-2]
2017-01-14 12:00:19 +03:00
Alexey Milovidov
0f03a7bbdc Fixed error with checking number of arguments of functions [#METR-24078]. 2017-01-11 05:47:43 +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
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
a4a77d8bc0 Function visibleWidth: fixed error [#METR-2944]. 2016-12-30 03:19:44 +03:00
Alexey Milovidov
6e1ec28840 Addition to prev. revision [#METR-2944]. 2016-12-30 03:19:05 +03:00
Alexey Milovidov
8ff20e1ecc Fixed test [#METR-2944]. 2016-12-29 23:41:49 +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
989d542f66 Fixed error (tnx. artpaul) [#METR-23793]. 2016-12-15 23:33:35 +03:00
Alexey Milovidov
1311b93c9c Fixed error (tnx. artpaul) [#METR-23793]. 2016-12-15 23:29:42 +03:00
Alexey Milovidov
b113a7a473 Tiny modifications [#METR-23793]. 2016-12-15 22:35:32 +03:00
artpaul
0b0dc43e9b fix 2016-12-15 23:56:31 +05:00
artpaul
945f879765 fix 2016-12-15 23:21:38 +05:00
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
Alexey Milovidov
6ceb83dc7d dbms: added function formatReadableSize [#METR-16184]. 2015-09-20 05:03:12 +03:00
Alexey Milovidov
e5677bea4d dbms: added function randConstant for testing purposes [#METR-17536]. 2015-09-07 20:56:56 +03:00
Alexey Arno
277fab46b9 Merge 2015-09-02 16:05:17 +03:00
Andrey Mironov
8b890f1c06 dbms: add functions bitTestAny, bitTestAll (non-vectorized) and tests [#METR-17245] 2015-08-20 16:58:09 +03:00
Andrey Mironov
b4b33364e9 dbms: add function bitTest(val, pos), pos starts from 0 [#METR-17245] 2015-08-19 19:11:48 +03:00
Alexey Milovidov
5c2b5ffb10 dbms: added function emptyArrayToSingle [#METR-17474]. 2015-07-26 13:40:32 +03:00
Alexey Milovidov
b5b40a9a7a dbms: added function arrayUniq [#METR-17429]. 2015-07-23 14:11:10 +03:00
Andrey Mironov
58408dc8a3 dbms: add function metroHash64 2015-07-20 17:59:29 +03:00
Andrey Mironov
f1bc759807 dbms: add farmHash64 [#METR-17328] 2015-07-17 18:56:34 +03:00
Alexey Milovidov
c0e029bb1b dbms: renamed ColumnWithNameAndType to ColumnWithTypeAndName for clarification [#METR-2944]. 2015-07-17 04:27:35 +03:00
Alexey Milovidov
230bbe3296 dbms: addition to prev. revision [#METR-17281]. 2015-07-16 23:33:05 +03:00
Alexey Milovidov
234367b038 dbms: added function identity [#METR-17251]. 2015-07-14 00:27:08 +03:00
Alexey Milovidov
2af61829fe dbms: added least and greatest functions [#METR-17233]. 2015-07-10 05:57:32 +03:00
Alexey Arno
2f56341f00 dbms: Server: Support for multiple time zones: development [#METR-15618] 2015-07-01 20:32:04 +03:00
Alexey Milovidov
001ffdfa18 dbms: fixed error with higher order functions [#METR-16894]. 2015-06-19 05:34:47 +03:00
Andrey Mironov
ea4f4420ba dbms: replace old lower/upper(UTF8) with vectorized ones [#METR-14764] 2015-06-10 15:47:27 +03:00
Alexey Milovidov
417ab909b8 dbms: added functions for manipulation of aggregation states [#METR-16677]. 2015-06-06 03:28:37 +03:00
Alexey Arno
ce1e437c09 dbms: Server: Added function toStartOfFiveMinute. [#METR-14495] 2015-06-03 17:27:03 +03:00
Alexey Arno
59e894426a dbms: Server: Added version function. [#METR-16386] 2015-06-03 16:11:59 +03:00
Alexey Milovidov
1cf67bdede dbms: addition to prev. revision [#METR-15987]. 2015-06-03 06:32:37 +03:00
Alexey Milovidov
c341bd2c60 dbms: function 'transform': added support for non-const argument with default value [#METR-15987]. 2015-06-03 06:29:28 +03:00
Andrey Mironov
b06bdb0edf dbms: add SSE variants of lower/upper and UTF8 equivalents [#METR-14764] 2015-05-28 15:33:07 +03:00
Alexey Arno
b4c1d6481f Feature implementation. [#METR-15210] 2015-05-13 02:11:15 +03:00
Alexey Arno
e981b66ef8 Feature implementation. [#METR-15210] 2015-05-08 18:15:52 +03:00
Alexey Milovidov
d371b7c843 dbms: function 'transform': development [#METR-15987]. 2015-04-28 07:47:27 +03:00
Alexey Milovidov
5e230a6b2d dbms: function 'transform': development [#METR-15987]. 2015-04-28 06:38:41 +03:00
Alexey Milovidov
ee1b7bc617 dbms: fixed build [#METR-2944]. 2015-04-16 09:39:46 +03:00
Andrey Mironov
bedd5e7c26 dbms: add function URLHash plus tests [#METR-15826] 2015-04-15 18:00:28 +03:00
Andrey Mironov
e267ba87f0 dbms: rename isNan to isNaN [#METR-15731] 2015-04-03 17:52:33 +03:00
Andrey Mironov
4ed57ac566 dbms: add functions isFinite, isInfinite, isNan [#METR-METR-15731] 2015-04-03 16:30:51 +03:00
Andrey Mironov
17da36aba2 dbms: allow using Date and DateTime with dictionaries. [#METR-13298] 2015-03-20 18:45:36 +03:00
Alexey Milovidov
577a7d102d dbms: fixed leaks [#METR-15352]. 2015-03-05 08:42:42 +03:00
Andrey Mironov
cee209db3e Merge 2015-02-04 14:01:06 +03:00
Alexey Milovidov
e4ae80fd2d Removed Yandex Catalog categories (not used; but empty columns in tables are left) [#METR-14873]. 2015-02-03 00:22:07 +03:00
Andrey Mironov
e982b5c92d dbms: add all integral and floating point types to IDictionary. [#METR-13298] 2015-01-28 18:02:05 +03:00
Andrey Mironov
f4e7d2d4f5 dbms: add dictGetHierarchy and dictIsIn. [#METR-13298] 2015-01-28 16:20:20 +03:00
Andrey Mironov
92664ed612 dbms: sparse array implementation of FlatDictionary. [#METR-13298] 2015-01-22 17:32:38 +03:00
Alexey Milovidov
86e9e77eae Fixed errors in clang (part 5, final) [#METR-2807]. 2015-01-22 04:13:13 +03:00
Andrey Mironov
300b7342e7 dbms: dummy types and functions for external dictionaries. [#METR-13298] 2015-01-21 14:39:48 +03:00
Andrey Mironov
d98d920d05 dbms: add function IPv4NumToStringClassC [#METR-14266] 2014-12-24 17:45:44 +03:00
Andrey Mironov
072fc96127 dbms: obliterate writeFloatText precision parameter -.-
reimplement floatWidth using double-conversion
2014-12-10 14:11:41 +03:00
Andrey Mironov
3332ed9682 dbms: add pathFull function. [#METR-13679] 2014-12-05 16:32:22 +03:00
Andrey Mironov
c6134124f6 dbms: remove square function, alter tests. [#METR-13613] 2014-12-02 20:25:10 +03:00
Andrey Mironov
ea9472312e dbms: implement range(n) function, add tests. [#METR-13613] 2014-12-02 20:25:10 +03:00
Andrey Mironov
af55445da3 dbms: implement abs(). [#METR-13613] 2014-12-02 20:25:09 +03:00
Andrey Mironov
8062844eed dbms: add math functions without SSE. [#METR-13613] 2014-12-02 20:25:09 +03:00
Alexey Milovidov
be73e48c46 dbms: fixed error when writing tuple of date or datetime elements in pretty formats (tnx. hertz) [#METR-2944]. 2014-11-23 07:00:18 +03:00
Andrey Mironov
811565b5b1 dbms: implement appendTrailingCharIfAbsent, refactor concat. [#METR-13772] 2014-11-21 20:42:51 +03:00
Andrey Mironov
813742e5d7 dbms: add intDivOrZero function. [#METR-13159] 2014-11-21 17:28:39 +03:00
Alexey Milovidov
c5635ce6d9 dbms: added function regionToPopulation; clickhouse-server, ███████████, ███████████, ███████████ needs to be released before regions_hierarchy.txt change [#METR-13326]. 2014-11-20 03:05:14 +03:00
Andrey Mironov
85e511fdab dbms: refactor IFunction descendants' registration in FunctionFactory 2014-11-12 21:04:49 +03:00
Andrey Mironov
a5905c608a dbms: IPv6StringToNum. [#METR-13151] 2014-10-29 15:49:33 +03:00
Andrey Mironov
ee34ca31d8 dbms: add MD5, SHA1, SHA224, SHA256, IPv6NumToString. [#METR-13151] 2014-10-29 15:49:33 +03:00
Andrey Mironov
96d8c7484a dbms: add arrayFirst, arrayFirstIndex functions. [#METR-13151] 2014-10-28 18:49:33 +03:00
Andrey Mironov
484073a95c dbms: add emptyArrayType family of functions. #[METR-13151] 2014-10-28 16:43:51 +03:00
Andrey Mironov
0d35ea0bf4 dbms: implement firstSignificantSubdomain, cutToFirstSignificantSubdomain. [#METR-13151] 2014-10-27 18:17:07 +03:00
Andrey Mironov
0a4e3f1280 add function currentDatabase(), allow string-expressions in place of database name 2014-09-24 15:53:41 +04:00
Alexey Milovidov
41d2b30992 dbms: added function regionToDistrict [#METR-12826]. 2014-09-19 22:51:24 +04:00
Andrey Mironov
f8e5ae8a02 implement today(), yesterday() [#METR-12575] 2014-09-04 15:48:07 +04:00
Alexey Milovidov
3defedab21 dbms: changed std::function to function ptr (tnx. hertz) [#METR-2944]. 2014-08-22 19:48:48 +04:00
Alexey Milovidov
2b188ba6e0 dbms: improved build time [#METR-2944]. 2014-08-22 04:57:20 +04:00
Alexey Milovidov
6a3f204705 dbms: little better [#METR-2944]. 2014-08-18 04:07:05 +04:00
Michael Kolupaev
5bbb6dc090 some grammar fixes. [#METR-2807] 2014-08-12 13:35:15 +04:00
Alexey Milovidov
8038d2ab66 dbms: added function bar [#METR-12249]. 2014-08-09 05:51:03 +04:00
Michael Kolupaev
9c7ac77624 renamed anyHash64 to cityHash64, made them identical in unary case. [#METR-11774] 2014-07-04 13:43:00 +04:00
Michael Kolupaev
da7d837497 added function anyHash64. [#METR-11774] 2014-07-03 15:24:29 +04:00
Alexey Milovidov
3ea4fb0fa0 Improvement [#METR-2807]. 2014-07-01 05:03:16 +04:00
Alexey Milovidov
108a7850a5 dbms: improved performance on short queries [#METR-11571]. 2014-06-26 04:58:14 +04:00
Alexey Milovidov
a4fc77a8cb dbms: removed useless code, fixed error [#METR-10719]. 2014-05-16 05:25:20 +04:00
Alexey Milovidov
f0792f0deb dbms: improved performance of aggregation and aggregate function uniq [#METR-2944]. 2014-05-10 09:17:08 +04:00
Alexey Milovidov
b821e1420d Fixed style [#METR-10931]. 2014-04-23 02:52:00 +04:00
Alexey Milovidov
4903752cd0 dbms: added support for 'point of view' argument of functions working with dictionaries [#METR-10713]. 2014-04-04 22:08:01 +04:00
Sergey Fedorov
f0aae9604a dbms: Global in function, sexternal tables transfers to remote servers [METR-10071] 2014-03-27 16:06:45 +04:00
Michael Kolupaev
8351446de2 clickhouse: updated logical_functions_performance test. [#METR-9599] 2014-02-20 12:19:27 +04:00
Michael Kolupaev
c7b86469c4 fixed 2014-02-20 12:19:27 +04:00
Michael Kolupaev
3c03d7c372 clickhouse: added a program to measure logical functions performance. [#METR-9599] 2014-02-20 12:19:27 +04:00
Michael Kolupaev
25a33cdeed reverted accidentally committed changes. [#METR-8818] 2014-02-17 10:32:21 +00:00
Michael Kolupaev
228b2f6f8a clickhouse: client with string query_id now works with old-versioned server (probably for real this time). [#METR-8818] 2014-02-17 10:27:18 +00:00
Alexey Milovidov
4a0ea10e01 dbms: whitespaces [#METR-2944]. 2014-02-16 19:23:19 +00:00
Sergey Fedorov
a1b0a7c454 functions: URLPathHierarchy implementation [METR-9922] 2014-02-11 19:18:38 +00:00
Sergey Fedorov
0e8477312f functions: replaceRegexpOne and replaceRegexpAll implementation [METR-9582] 2014-01-27 16:01:53 +00:00
Sergey Fedorov
6c2507870e functions: replaceOne replaceAll implementation, few code-style changes [METR-9750] 2014-01-27 13:49:06 +00:00
Sergey Fedorov
c12f36b900 functions: replace implementation [METR-9582] 2014-01-23 14:26:12 +00:00
Sergey Fedorov
1d874c5f95 functions: Relative Date-time functions + regionToContinent support [METR-9582] 2014-01-22 12:27:55 +00:00
Alexey Milovidov
9c4043de67 Removed 'tr1' [#METR-2807]. 2014-01-08 16:33:28 +00:00
Sergey Fedorov
32e0d8397e [dmbs and libs] Function toFirstDayOfQuarter in DateLUT and FunctonsDateTime [METR-9400] 2013-12-20 14:12:20 +00:00
Sergey Fedorov
d930aa4f0c dbms: Rename all binary operations from bitwise* to bit* (e.g. bitwiseAnd -> bitAnd) [METR-9508] 2013-12-17 16:06:52 +00:00
Sergey Fedorov
be3f3beb3d dbms: Two new binary operations: FunctionBitwiseShiftLeft and FunctionBitwiseShiftRight, and one new function - FunctionHostName [METR-9508] 2013-12-17 13:49:21 +00:00
Alexey Milovidov
c640065f37 dbms: don't zero-fill columns with numbers [#METR-8582]. 2013-12-08 02:29:40 +00:00
Michael Kolupaev
49a129c829 ClickHouse: added toFixedString function. [#METR-9091] 2013-12-03 10:19:57 +00:00
Alexey Milovidov
3c1ec5bc34 dbms: allowed to return tuples as query result [#METR-8970]. 2013-10-26 19:00:13 +00:00
Alexey Milovidov
b26038210d dbms: added sipHash64 function [#CONV-9017]. 2013-10-21 14:35:12 +00:00
Michael Kolupaev
0703a2d85b ClickHouse: added function arrayEnumerate. [#CONV-8821] 2013-10-21 11:36:44 +00:00
Michael Kolupaev
61213cd547 ClickHouse: Added function arrayEnumerateUniq. [#CONV-8821] 2013-10-11 11:43:50 +00:00
Michael Kolupaev
dc3d84ac93 ClickHouse: type upscaling for if(). [#CONV-8764] 2013-10-08 12:30:43 +00:00
Alexey Milovidov
2d48435ecd dbms: fixed error with high order functions and constants [#CONV-8757]. 2013-09-18 20:06:49 +00:00
Pavel Kartavyy
e2e6032020 ClickHouse: Added function extractURLParameterNames(URL) [#CONV-8285] 2013-08-02 13:55:43 +00:00
Pavel Kartavyy
fa761bd984 ClickHouse: Added extractAll(regexp, s) function [#CONV-8285] 2013-08-02 13:09:42 +00:00
Evgeniy Gatov
b1ed7de82f dbms: added "toStringCutToZero" function [#CONV-8237]. 2013-08-01 20:22:22 +00:00
Michael Kolupaev
041dc5249d clickhouse: added function arraySum [#CONV-7444]. 2013-06-21 12:11:35 +00:00
Michael Kolupaev
2d620a3aa1 clickhouse: added oveloads for higher order array functions [#CONV-7444]. 2013-06-20 12:27:33 +00:00
Vyacheslav Alipov
ced71b0f9b ExtractString[NOT TESTED] and ExtractRaw [#CONV-7793] 2013-06-11 16:09:53 +00:00
Vyacheslav Alipov
e9c1b4e490 functions extracting numbers from VisitParams [#CONV-7793] 2013-06-10 15:19:37 +00:00
Vyacheslav Alipov
fd22381a2d added regionToName function [#CONV-7735] 2013-06-05 13:40:14 +00:00
Michael Kolupaev
fb7078fd81 clickhouse: added function replicate [#CONV-7444]. 2013-06-04 14:59:05 +00:00
Michael Kolupaev
0ecebb645d Expression replacement: development [#CONV-7444]. 2013-05-27 14:02:55 +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
0fddbe3f88 clickhouse: added functions for site categories [#CONV-7180]. 2013-04-17 11:37:34 +00:00
Michael Kolupaev
f933440e9c clickhouse: added function cutURLParameter [#CONV-6788]. 2013-03-18 10:27:45 +00:00
Michael Kolupaev
56f918a0a3 clickhouse: added function bitmaskToArray [#CONV-6788]. 2013-03-07 13:15:22 +00:00
Michael Kolupaev
64f4d743d2 clickhouse: added function unhex [#CONV-6788]. 2013-03-07 12:43:54 +00:00
Michael Kolupaev
e3b48d5324 clickhouse: added function hex [#CONV-6788]. 2013-03-07 12:01:41 +00:00
Michael Kolupaev
8f8c97e858 clickhouse: added functions regionHierarchy, OSHierarchy, SEHierarchy [#CONV-6788]. 2013-03-06 12:03:52 +00:00
Michael Kolupaev
e8766d7e90 clickhouse: added URLHierarchy function [#CONV-6788]. 2013-03-06 11:22:17 +00:00
Michael Kolupaev
a1707b1e6c clickhouse: added function extractURLParameters [#CONV-6788]. 2013-03-05 13:30:23 +00:00
Michael Kolupaev
eb5ebc7996 clickhouse: added function extractURLParameter [#CONV-6788]. 2013-03-05 12:12:47 +00:00
Michael Kolupaev
24ffa945bc clickhouse: added function IPv4StringToNum [#CONV-6788]. 2013-03-05 10:29:26 +00:00
Michael Kolupaev
49ae9d23e2 clickhouse: added function FunctionIPv4NumToString [#CONV-6788]. 2013-03-05 09:32:12 +00:00
Michael Kolupaev
7cc555a855 clickhouse: added sleep function [#CONV-6788]. 2013-03-04 10:38:44 +00:00
Michael Kolupaev
ea816297c2 clickhouse: added function extract [#CONV-6788]. 2013-02-28 13:01:07 +00:00
Alexey Milovidov
37fab48907 Tiny modifications [#CONV-2807]. 2013-01-13 23:21:22 +00:00
Alexey Milovidov
7b3f533ecd Using own Field class instead of boost::variant (experimental) [#CONV-2944]. 2013-01-05 20:03:19 +00:00
Michael Kolupaev
90b3c76c17 clickhouse: fixed and added bitmaskToList [#CONV-6318]. 2012-12-26 16:26:24 +00:00
Michael Kolupaev
c875f55dcb clickhouse: added countEqual function [#CONV-6318]. 2012-12-26 15:40:37 +00:00
Michael Kolupaev
cd9a27b433 clickhouse: added reinterpret functions [#CONV-6318]. 2012-12-26 14:31:03 +00:00
Alexey Milovidov
6e57b0d52c dbms: fixed typo [#CONV-2944]. 2012-12-24 17:23:30 +00:00
Michael Kolupaev
1b82540fa3 clickhouse: added rounding functions [#CONV-6318]. 2012-12-24 08:15:18 +00:00
Alexey Milovidov
44014d8530 dbms: added functions based on dictionaries [#CONV-2944]. 2012-12-21 19:48:47 +00:00
Alexey Milovidov
429968c078 dbms: enabled new functions [#CONV-2944]. 2012-12-20 20:10:25 +00:00
Michael Kolupaev
1383bfd005 clickhouse: added bitwise and and or functions [#CONV-6318]. 2012-12-20 13:41:55 +00:00
Alexey Milovidov
3f92ee5229 dbms: prepared to use functions with dictionaries [#CONV-2944]. 2012-12-18 20:06:36 +00:00
Alexey Milovidov
46de8ec014 dbms: added function 'indexOf' [#CONV-2944]. 2012-12-15 20:01:46 +00:00
Alexey Milovidov
494b212f3a dbms: removed VarUInt and VarInt data types [#CONV-2944]. 2012-12-14 20:24:26 +00:00
Alexey Milovidov
12afcb64ed Better diagnostics [#CONV-2807]. 2012-11-08 18:30:49 +00:00
Alexey Milovidov
bc5c289bb1 dbms: added functions 'arrayElement' and 'has' [#CONV-2944]. 2012-11-02 19:10:43 +00:00
Alexey Milovidov
7f501078b9 dbms: development (conditional operator) [#CONV-2944]. 2012-09-24 02:12:59 +00:00
Alexey Milovidov
7efe870cf9 dbms: development (string splitting functions) [#CONV-2944]. 2012-09-23 05:28:59 +00:00
Alexey Milovidov
93703e86ec dbms: development (array functions) [#CONV-2944]. 2012-09-23 00:04:17 +00:00
Alexey Milovidov
5501a05fc6 dbms: development [#CONV-2944]. 2012-09-17 04:31:25 +00:00
Alexey Milovidov
fb444475c4 dbms: development [#CONV-2944]. 2012-09-03 04:45:46 +00:00
Alexey Milovidov
0652f9da96 dbms: development [#CONV-2944]. 2012-08-31 20:38:05 +00:00
Alexey Milovidov
44aa02f806 dbms: development [#CONV-2944]. 2012-08-27 05:13:14 +00:00
Alexey Milovidov
464f4844b7 dbms: development [#CONV-2944]. 2012-08-26 06:48:39 +00:00
Alexey Milovidov
3118d7ae1f dbms: development [#CONV-2944]. 2012-08-26 02:08:18 +00:00
Alexey Milovidov
0af519aa4d dbms: development [#CONV-2944]. 2012-08-23 18:43:57 +00:00
Alexey Milovidov
024aa82cae dbms: added debug functions [#CONV-2944]. 2012-08-03 19:40:08 +00:00
Alexey Milovidov
061a75785b dbms: development [#CONV-2944]. 2012-08-02 17:33:31 +00:00
Alexey Milovidov
cbc10f858e dbms: development [#CONV-2944]. 2012-07-16 03:42:36 +00:00
Alexey Milovidov
dc79f25feb dbms: development [#CONV-2944]. 2012-07-15 23:13:08 +00:00
Alexey Milovidov
732593399d dbms: development [#CONV-2944]. 2012-07-15 21:43:04 +00:00
Alexey Milovidov
d9a68ccf2a dbms: development [#CONV-2944]. 2012-03-09 03:06:09 +00:00
Alexey Milovidov
5c8b01da3a dbms: development [#CONV-2944]. 2011-09-24 20:32:41 +00:00
Alexey Milovidov
f3c427ae63 dbms: development [#CONV-2944]. 2011-08-12 20:39:42 +00:00
Alexey Milovidov
cd7e317362 dbms: development [#CONV-2944]. 2011-08-09 17:24:17 +00:00
Alexey Milovidov
54808431ec dbms: development [#CONV-2944]. 2011-08-09 15:57:33 +00:00