Persiyanov Dmitriy Andreevich
614af51fb7
test
2018-11-29 03:32:52 +03:00
alexey-milovidov
b8cb6c8f5e
Merge pull request #3687 from yandex/date-type-and-number-comparsion
...
Date type and number comparsion
2018-11-28 17:34:46 +03:00
Nikolai Kochetov
05ac77dbde
Added test with Date and numbers comparsion.
2018-11-28 15:10:01 +03:00
proller
dd2371e071
CLICKHOUSE-4137 DictionaryFactory, DictionarySourceFactory ( #3653 )
...
* Split ComplexKeyCacheDictionary to faster compile (part2)
* Dictionaries as lib WIP
* wip
* clean
* Fix build with old capnp
* fix
* wip
* fixes
* fix
* clean
* clean
* clean
* wip
* wip
* wip
* flat
* wip
* cache
* clean
* wip
* faster
* fix style
* fixes
* clean
* clean
* Split CacheDictionary.cpp for faster compile
* fix
* fix
* Less memory usage while compiling
* missing file
* format
* Update registerDictionaries.h
* clean
2018-11-28 14:37:12 +03:00
Nikolai Kochetov
6bd61d17c9
Disable Date and numeric types comparsion.
2018-11-28 14:11:10 +03:00
proller
1ea31e0491
Fix icu link #3631 ( #3671 )
2018-11-27 18:34:21 +03:00
alexey-milovidov
e00ce0bb57
Every function in its own file, part 7 ( #3666 )
...
* Every function in its own file, part 7 [#CLICKHOUSE-2]
* Every function in its own file, part 7 [#CLICKHOUSE-2]
* Every function in its own file, part 7 [#CLICKHOUSE-2]
* Every function in its own file, part 7 [#CLICKHOUSE-2]
* Every function in its own file, part 7 [#CLICKHOUSE-2]
* Fixed build #3666
2018-11-26 19:20:40 +03:00
Alexey Milovidov
5a0feee45e
Removed "conditional computations" feature, because it is not ready #2272
2018-11-26 04:39:04 +03:00
Alexey Milovidov
c77930fe30
Whitespaces [#CLICKHOUSE-2]
2018-11-26 03:56:50 +03:00
alexey-milovidov
0b2848b0f2
Merge pull request #3662 from yandex/fixed-error-in-lower-upper-utf8
...
Fixed error in lowerUTF8 and upperUTF8 functions
2018-11-26 02:24:41 +03:00
alexey-milovidov
5b1eaba276
Every function in its own file, part 6 ( #3661 )
...
* Every function in its own file, part 6 [#CLICKHOUSE-2]
* Every function in its own file, part 6 [#CLICKHOUSE-2]
* Every function in its own file, part 6 [#CLICKHOUSE-2]
2018-11-26 02:24:26 +03:00
Alexey Milovidov
4cb7f2896c
Fixed error in lowerUTF8 and upperUTF8 functions [#CLICKHOUSE-2]
2018-11-26 01:26:36 +03:00
Alexey Milovidov
68e0a687c8
Removed unused method [#CLICKHOUSE-2]
2018-11-25 04:24:03 +03:00
Alexey Milovidov
5a045ff11c
Fixed error in URL functions [#CLICKHOUSE-2]
2018-11-25 03:31:24 +03:00
Alexey Milovidov
b53c1ea913
Removed useless include [#CLICKHOUSE-2]
2018-11-25 03:16:14 +03:00
Alexey Milovidov
af9ad0f8ae
Fixed bad code [#CLICKHOUSE-2]
2018-11-25 03:15:43 +03:00
Alexey Milovidov
141e9799e4
Fixed error with "extractURLParameter" function (read after buffer); improved performance; added support for zero bytes in URLs; renamed Chars_t type [#CLICKHOUSE-2]
2018-11-25 03:08:50 +03:00
Alexey Milovidov
73e3a7b662
Fixed bad code; added generic implementation for "arrayReverse" function; added test [#CLICKHOUSE-3]
2018-11-24 06:14:54 +03:00
Alexey Milovidov
7d6fffff48
More style checks [#CLICKHOUSE-3]
2018-11-24 04:48:06 +03:00
Alexey Milovidov
e82241553a
Merge branch 'master' of github.com:yandex/ClickHouse
2018-11-24 04:20:37 +03:00
Alexey Milovidov
bbed8a8ca8
Fixed bad code [#CLICKHOUSE-3]
2018-11-24 04:20:27 +03:00
alexey-milovidov
bedca47bca
Merge pull request #3649 from yandex/low-cardinaliry-left-array-join
...
Low cardinaliry left array join
2018-11-24 04:16:38 +03:00
alexey-milovidov
905a4ffc04
Merge pull request #3651 from yandex/fix-functions-with-low-cardinality-argument-and-array-result
...
Fix functions with low cardinality argument and array result
2018-11-24 04:15:20 +03:00
proller
ad6ae4fdbe
Fix build on mac (caused by #3631 ) ( #3654 )
...
* Fix build on mac (caused by #3631 )
* fix
2018-11-24 04:15:00 +03:00
Alexey Milovidov
1e449b2e16
Added another compatibility alias #3638
2018-11-24 02:14:18 +03:00
Alexey Milovidov
954c974507
Added "POWER" alias to "pow" function; made some math functions case insensitive for compatibility #3638
2018-11-24 00:14:28 +03:00
Alexey Milovidov
af6f91e762
Added comment #3350
2018-11-23 22:47:15 +03:00
Alexey Milovidov
62e30de715
Whitespaces #3350
2018-11-23 21:54:23 +03:00
Alexey Milovidov
dbbacf4f87
Added more style checks [#CLICKHOUSE-3]
2018-11-23 21:52:00 +03:00
alexey-milovidov
af013285e9
Merge branch 'master' into base64_functions
2018-11-23 21:33:56 +03:00
Nikolai Kochetov
de16f36256
Fix functions with low cardinality argumant and array result.
2018-11-23 18:59:45 +03:00
Nikolai Kochetov
449ab47350
Disable low cardinality default implementation for emptyArrayToSingle function.
2018-11-23 16:29:14 +03:00
alexey-milovidov
12045a0e0e
Merge pull request #3641 from yandex/fix-array-mapped-functions-with-low-cardinality-lambda
...
Fix array mapped functions with low cardinality lambda
2018-11-23 00:40:16 +03:00
alexey-milovidov
2c2d75cceb
Don't allow exceptions without code ( #3645 )
...
* Don't allow exceptions without code #3633
* Don't allow exceptions without code #3633
2018-11-23 00:19:58 +03:00
Nikolai Kochetov
4721b16b51
Fix array mapped functions with low cardinality lambda argument.
2018-11-22 18:52:53 +03:00
proller
1d40c2c871
Better link and deps ( #3631 )
...
* try fix 1
* Better deps
* fix
* fix
* fix
* Update CMakeLists.txt
* Update CMakeLists.txt
* fix
* fix
* fix
* disable old
* Update find_odbc.cmake
2018-11-21 22:20:27 +03:00
Persiyanov Dmitriy Andreevich
b3e694e3eb
ugly version
2018-11-21 13:10:22 +03:00
alexey-milovidov
235dc66881
Merge pull request #3564 from amosbird/master
...
Implement dictGet[OrDefault]
2018-11-21 06:48:10 +03:00
alexey-milovidov
0d627c7230
Update FunctionsExternalDictionaries.h
2018-11-21 06:48:01 +03:00
Alexey Milovidov
2662594865
Attempt to fight back performance of firstSignificantSubdomain function #3601
2018-11-21 03:46:06 +03:00
alexey-milovidov
8590348dc6
Merge pull request #3601 from hatarist/patch-1
...
Update firstSignificantSubdomain function
2018-11-21 03:00:59 +03:00
Alexey Milovidov
78e72a1962
Little better #3624
2018-11-20 23:09:20 +03:00
Igor Hatarist
faa4cac4da
Update firstSignificantSubdomain function
...
Added gov, mil, edu 2nd level domains
2018-11-18 06:37:43 +03:00
Amos Bird
eec50adbeb
Implement dictGet[OrDefault]
2018-11-15 21:48:00 +08:00
Alexandr Krasheninnikov
177a00f09a
Merge https://github.com/yandex/ClickHouse into base64_functions
2018-11-14 12:32:42 +03:00
Alexandr Krasheninnikov
050abdf2b6
Auto detect of codec
2018-11-14 12:07:20 +03:00
Amos Bird
f76bfb00a3
Avoid materialization for dictGetTOrDefault
2018-11-12 00:35:13 +08:00
proller
5678d1ed98
Build fixes ( #3545 )
...
* StorageSystemContributors clean
* Fix
* ARM fixes
* Fix arm compile
* fix
* Fix macos?
* Fix includes
* fix
* fix
* Try fix apple build part 1
* Fix identation
* Fix static libc++ in clang
* fix arm build
* better
* fix
* fix
* better check-include
2018-11-10 23:09:07 +03:00
Alexandr Krasheninnikov
6ab45d081c
Arch-based compilation
2018-11-02 22:06:05 +03:00
alexey-milovidov
b1db9ec23c
Merge pull request #3436 from amosbird/master
...
Flexible fields assignment
2018-11-01 20:22:28 +03:00
alexey-milovidov
cce68f5b40
Merge pull request #3519 from yandex/better-behaviour-of-hash-functions
...
Fixed idiosyncrasy with hash functions introduced in #3451
2018-11-01 20:13:39 +03:00
proller
f86d1a7034
CONTRIB-254 Arcadia fixes ( #3475 )
...
* Macos: set ENABLE_EMBEDDED_COMPILER=0 by default (because contrib/llvm temporary broken under macos)
* \n
* arcadia fix
* fix arcadia link
* wip
* wip
* wip
* fix
* wip
* wip
* fix
* try use users from server dir
* Revert "try use users from server dir"
This reverts commit 79b2c6fd9c
.
* Fix logging
* fix
* Update ZooKeeperImpl.h
2018-11-01 20:07:20 +03:00
Alexey Milovidov
719efbe60a
Fixed idiosyncrasy introduced in #3451
2018-11-01 18:47:08 +03:00
alexey-milovidov
82933e9c31
Merge pull request #3451 from CurtizJ/CLICKHOUSE-3490
...
Support more hash functions for tuple, unify FunctionHash template. [CLICKHOUSE-3490]
2018-11-01 18:30:01 +03:00
alesapin
64b1108989
Merge branch 'master' of github.com:yandex/ClickHouse into fix_non_deterministic_compile
2018-10-25 20:01:22 +03:00
alesapin
a4dd489165
Do not build compiled functions
2018-10-25 19:52:28 +03:00
alesapin
3a9311d3ad
Now default block can have size more than one
2018-10-25 19:02:20 +03:00
alesapin
c3159af898
Enlarge constant default column if it's empty
2018-10-25 17:54:00 +03:00
chertus
19a69004f0
fix crash with non const scale in toDecimal()
2018-10-25 16:53:25 +03:00
CurtizJ
06e955e92a
fix combine hashes
2018-10-24 16:12:59 +03:00
Amos Bird
3cf2177268
Flexible fields assignment
...
Field f;
before:
f = Int64(-42);
after:
f = -42;
2018-10-24 08:47:33 +08:00
CurtizJ
68f2bea4ba
fix style
2018-10-23 21:07:20 +03:00
CurtizJ
e3dea84265
support more hash functions for tuples
2018-10-23 20:43:09 +03:00
alexey-milovidov
57e6dc3477
Merge pull request #3385 from VadimPE/CLICKHOUSE-1791
...
[CLICKHOUSE-1791] add modulo for Date and DateTime
2018-10-22 23:38:40 +03:00
alexey-milovidov
1c3c4c0890
Update FunctionsArithmetic.h
2018-10-22 23:35:28 +03:00
proller
abfe675097
Build fixes ( #3419 )
2018-10-18 22:28:05 +03:00
VadimPE
e331f15ffd
CLICKHOUSE-1791 add modulo for nonIntegral divisor
2018-10-15 16:24:01 +03:00
VadimPE
7b6f0f5372
CLICKHOUSE-1791 add modulo for date
2018-10-15 15:53:05 +03:00
Alexey Milovidov
f720a5bf95
Fixed typos in code #3373
2018-10-13 17:33:43 +03:00
chertus
688b5aa8e4
Conditional for UUID [CLICKHOUSE-4016]
2018-10-12 14:23:05 +03:00
Alexandr Krasheninnikov
468ca70683
Minor review fixes
2018-10-12 11:46:53 +03:00
Alexandr Krasheninnikov
92916d3b8d
Merge https://github.com/yandex/ClickHouse into base64_functions
2018-10-12 11:29:01 +03:00
Alexey Milovidov
f8e5a22e03
Fixed "timeSlot" and "timeSlots" functions [#CLICKHOUSE-4016]
2018-10-12 03:40:19 +03:00
Alexey Milovidov
218366e17f
Fixed error introduced in #3342
2018-10-12 00:31:36 +03:00
Alexandr Krasheninnikov
41281ad397
Make compilation on-demand
2018-10-11 19:25:17 +03:00
alexey-milovidov
5795b559c6
Merge pull request #3342 from 4ertus2/decimal
...
Confitional for Decimal (without arrays) [CLICKHOUSE-3765]
2018-10-10 23:00:17 +03:00
alexey-milovidov
297f9cec38
Merge pull request #3341 from yandex/fix-point-in-poligon
...
Fix point in poligon
2018-10-10 22:09:13 +03:00
chertus
aa9f17b8df
Merge branch 'master' into decimal
2018-10-10 21:39:57 +03:00
chertus
94c9a544f2
If for Decimal (basic support) [CLICKHOUSE-3765]
2018-10-10 21:37:54 +03:00
Nikolai Kochetov
935030a94a
Fixed precision issue. Repaced foat with auto.
2018-10-10 19:35:09 +03:00
Alexander Krasheninnikov
5ff30ebb3d
Initial implementation
2018-10-10 04:04:07 +03:00
alexey-milovidov
caaa7ff98e
Merge pull request #3331 from yandex/fix-point-in-poligon
...
Fix point in poligon
2018-10-09 23:41:35 +03:00
Nikolai Kochetov
1f348a09ca
Fix calcLinestringRotation angle. #3309
2018-10-09 22:38:37 +03:00
Alexey Milovidov
964a6e5771
Make function "concat" case insensitive for compatibility [#CLICKHOUSE-20]
2018-10-05 22:58:01 +03:00
Alexey Milovidov
9e1c51aca4
Added compatibility aliases for "length" and "lengthUTF8" [#CLICKHOUSE-20]
2018-10-05 22:52:42 +03:00
Nikolai Kochetov
97add69825
Rename WithDictionary to LowCardinality.
2018-09-28 13:44:59 +03:00
Nikolai Kochetov
5a211b1ab7
More comments.
2018-09-27 18:16:47 +03:00
Nikolai Kochetov
65c8a00e51
Fix low cardinality functions result cache if function can't be executed on default arguments.
2018-09-27 17:45:35 +03:00
alexey-milovidov
b6e53d22e1
Merge pull request #3200 from yandex/low-cardinality-function-result-cache
...
Added cache for low cardinality function result.
2018-09-26 18:12:48 +03:00
alexey-milovidov
2471332dfc
Update IFunction.h
2018-09-26 18:02:56 +03:00
chertus
b48402e871
intDiv, intDivOrZero for decimal [issue-3221]
2018-09-26 15:12:45 +03:00
alexey-milovidov
60000481e4
Merge pull request #3219 from topvisor/add_biz_to_insignificant_second_level_domains
...
Update firstSignificantSubdomain function
2018-09-26 14:54:43 +03:00
chertus
69dd660919
fix crash on decimal division by zero [issue-3221]
2018-09-26 14:25:50 +03:00
decaseal
963988ddf2
Update firstSignificantSubdomain function
...
Add "biz" domain to list of "insignificant" second-level domains
2018-09-26 12:39:04 +03:00
Alexey Milovidov
b11a84b895
Merge branch 'master' of github.com:yandex/ClickHouse into every_function_in_own_file_5
2018-09-26 03:36:20 +03:00
Alexey Milovidov
0e7caa05fa
Every function in its own file, part 5 [#CLICKHOUSE-2]
2018-09-26 03:32:38 +03:00
Alexey Milovidov
27b7654abc
Every function in its own file, part 5 [#CLICKHOUSE-2]
2018-09-26 03:31:40 +03:00
chertus
96ceca6c05
fix decimal to int, int to decimal convertion [issue-3177]
2018-09-25 19:03:50 +03:00
Nikolai Kochetov
d526859011
Added cache for low cardinality function result. [#CLICKHOUSE-3904]
2018-09-25 16:48:52 +03:00
alexey-milovidov
b1eb66c03e
Merge branch 'master' into low-cardinality-fixes
2018-09-21 13:43:37 +03:00
alexey-milovidov
4a54a1c310
Merge pull request #3138 from yandex/low-cardinality-group-by
...
Low cardinality group by
2018-09-21 13:38:20 +03:00
Nikolai Kochetov
ce8329d802
Fix test with names tuples.
2018-09-20 20:36:16 +03:00
Alexey Milovidov
3eb183f21e
Fixed build; better #3176
2018-09-20 17:46:31 +03:00
Nikolai Kochetov
d66527ec15
Fix functions with Array(LowCardinality) arguments. #3004
2018-09-20 16:16:30 +03:00
Nikolai Kochetov
5e4c5dd1c9
Fix functions on low cardinality with cons tesult.
2018-09-20 11:32:33 +03:00
Alexey Milovidov
2236435ed8
Added comment #2770
2018-09-19 23:23:33 +03:00
Alexey Milovidov
68a4ad0034
Added comment #2770
2018-09-19 23:22:58 +03:00
Alexey Milovidov
b396818632
Added comment #2770
2018-09-19 23:20:39 +03:00
Alexey Milovidov
44de6a0317
Improved performance 1.5..1.8 times #2770
2018-09-19 23:07:46 +03:00
Nikolai Kochetov
79e3ae2f75
Fix cast Null to LowCardinality(Nullable). #3066
2018-09-19 14:11:52 +03:00
Alexey Milovidov
2b74fd8a01
Style #2770
2018-09-18 22:44:15 +03:00
Alexey Milovidov
ead7baa805
Little better #2770
2018-09-18 22:41:42 +03:00
Alexey Milovidov
7b1da2cd73
Improved performance two times #2770
2018-09-18 22:29:29 +03:00
Alexey Milovidov
9ff5f28de4
Little better #2770
2018-09-18 21:58:05 +03:00
Alexey Milovidov
765b85e021
utils/check-style/check-style -n
2018-09-18 21:52:31 +03:00
Alexey Milovidov
dc7963a957
Merge branch 'alex-krash-function_format_date'
2018-09-18 21:51:14 +03:00
Alexey Milovidov
41bde049ab
Merge remote-tracking branch 'origin/master' into alex-krash-function_format_date
2018-09-18 21:39:02 +03:00
Alexey Milovidov
b8cbedee27
Merging #2770
2018-09-18 21:31:43 +03:00
Alexey Milovidov
ac73431451
Formatting; fixed error; fixed memory leak; miscellaneous #2770
2018-09-18 19:42:25 +03:00
Alexey Milovidov
a918461216
Merge branch 'master' of github.com:yandex/ClickHouse
2018-09-18 19:17:36 +03:00
alexey-milovidov
67d559f3ef
Merge pull request #3163 from Bloxy-info/fix-negative-cumsum
...
fix arrayCumSumNonNegative that it does not accumulative negative values
2018-09-18 19:15:15 +03:00
alexey-milovidov
00dbf64176
Update arrayCumSumNonNegative.cpp
2018-09-18 19:14:01 +03:00
Alexey Milovidov
65f074715b
Miscellaneous #3123
2018-09-18 19:12:23 +03:00
daoready
889d5139ef
fix arrayCumSumNonNegative that it does not accumulative negative values
2018-09-18 14:55:14 +03:00
Alexander Krasheninnikov
64533ff4df
Add support for Date, filled documentation
2018-09-18 03:32:24 +03:00
Alexandr Krasheninnikov
ff9ff462fc
Add tests
2018-09-17 20:02:12 +03:00
Alexandr Krasheninnikov
a4c616cbc9
Merge https://github.com/yandex/ClickHouse into function_format_date
2018-09-17 15:03:16 +03:00
Alexandr Krasheninnikov
e3d76c3778
Started to work
2018-09-17 15:03:06 +03:00
Alexey Milovidov
55bc0bb46b
Added function "toDayOfYear" [#CLICKHOUSE-3716]
2018-09-17 04:27:34 +03:00
Alexey Milovidov
4cf73d607c
Added functions "toISOWeek", "toISOYear", "toStartOfISOYear" [#CLICKHOUSE-3988]
2018-09-17 03:42:39 +03:00
Alexey Milovidov
cc393f130e
Minor modifications #3123
2018-09-14 22:23:03 +03:00
Alexey Milovidov
5dfc311075
Fixed build #3123
2018-09-14 22:15:11 +03:00
alexey-milovidov
a26e6935da
Merge pull request #3123 from Enmk/Issue_2093_Support_arbitrary_type_for_ranges_in_range_hashed_dictionary
...
Added support of int-based types: Int\UInt(8,16,32), Date, DateTime f…
2018-09-14 22:10:13 +03:00
alexey-milovidov
f64dbda13a
Update FunctionsExternalDictionaries.h
2018-09-14 22:04:53 +03:00
alexey-milovidov
f27a712b7e
Update FunctionsExternalDictionaries.h
2018-09-14 22:02:40 +03:00
alexey-milovidov
93a269d7af
Update FunctionsExternalDictionaries.h
2018-09-14 21:55:12 +03:00
alexey-milovidov
67d6ce4f41
Update FunctionsExternalDictionaries.h
2018-09-14 21:51:18 +03:00
chertus
57260bbd6a
math funcs for decimal (Float64 inside) [CLICKHOUSE-3765]
2018-09-14 17:40:51 +03:00
Nikolai Kochetov
3dc5cd3a3a
Merged with master.
2018-09-14 12:14:37 +03:00
Alexandr Krasheninnikov
b9e35c50a6
Merge github.com:yandex/ClickHouse into function_format_date
2018-09-14 11:42:32 +03:00
Nikolai Kochetov
787e814e4c
Low cardinality group by signle column. [#CLICKHOUSE-3903]
2018-09-14 11:03:02 +03:00
Vasily Nemkov
99560e06f8
Added support of int-based types: Int\UInt(8,16,32), Date, DateTime for range_hashed dictionary.
...
Fixes #2093
Added type checks for .range_min and .range_max
Allowed nullable range values in dictionary source
Added test for range_hashed dictionaries
2018-09-13 18:19:55 +03:00
Alexey Milovidov
8aa4f8f5df
Fixed error [#CLICKHOUSE-2]
2018-09-13 05:55:32 +03:00
Alexey Milovidov
655b79f1af
Every function in its own file, part 4 [#CLICKHOUSE-2]
2018-09-13 04:59:51 +03:00
Alexey Milovidov
2b08c072d8
Removed dependency #3009
2018-09-13 04:26:12 +03:00
Alexey Milovidov
f2879f819f
Fixed build #3009
2018-09-13 03:50:04 +03:00
alexey-milovidov
34f1998009
Merge pull request #3009 from yandex/astudnev-cum_sum_limit2
...
[FIX] Additional higher order functions to work with arrays
2018-09-13 03:17:41 +03:00
chertus
45ec7e63aa
add static asserts for decimal [CLICKHOUSE-3765]
2018-09-12 20:50:51 +03:00
chertus
1ecb9fb271
fix build
2018-09-10 17:26:47 +03:00
alexey-milovidov
31bb16e082
Update FunctionsRound.h
2018-09-10 17:13:03 +03:00