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