Alexey Milovidov
1e3b9af66f
Added clarifications
2019-12-09 20:25:16 +03:00
Nikolai Kochetov
fd62c09a8b
Update FunctionCapture and FunctionExpression.
2019-12-09 17:36:47 +03:00
Nikolai Kochetov
18bfa684a2
Rename IFunction.h to IFunctionImpl.h in functions implementations.
2019-12-09 16:12:54 +03:00
Alexey Milovidov
9399b39070
Fixes
2019-12-09 04:09:03 +03:00
Alexey Milovidov
41a6eedadc
Added comment
2019-12-09 04:02:09 +03:00
Alexey Milovidov
fb908eae0a
Fixed comments
2019-12-09 03:02:50 +03:00
Alexey Milovidov
b977aa3cdf
Fixed error
2019-12-09 02:59:25 +03:00
Alexey Milovidov
c738d92411
Maybe better memory layout
2019-12-09 02:55:56 +03:00
Alexey Milovidov
171bb14614
Addition to prev. revision
2019-12-09 02:41:34 +03:00
Alexey Milovidov
1835087291
Added function geoDistance and returned the old behaviour of greatCircleDistance
2019-12-09 02:40:53 +03:00
Alexey Milovidov
109542c445
Small improvements
2019-12-09 02:09:05 +03:00
Alexey Milovidov
09df6a0c00
Small improvements
2019-12-09 02:02:44 +03:00
Alexey Milovidov
f7320e50b7
Renamed variables
2019-12-09 02:00:34 +03:00
Alexey Milovidov
a04ed4883d
Added comments
2019-12-09 01:44:17 +03:00
Alexey Milovidov
19f05c4594
Removed too strict type check
2019-12-09 01:09:32 +03:00
Alexey Milovidov
3d71cb0596
Make the code of greatCircleDistance less wrong
2019-12-09 00:59:41 +03:00
Nikolai Kochetov
a73eb4292b
Functions refactor part 1.
2019-12-09 00:06:37 +03:00
alexey-milovidov
21a7a53491
Update FunctionsJSON.h
2019-12-08 23:48:34 +03:00
tyrionhuang
6cf7ac045b
fix BitmapAnd error, like issue #5479 : bitmapHasAny in scalar subquery causes segment fault
2019-12-08 23:10:37 +08:00
Oleg Matrokhin
8ea7cab7e4
simplify expression
2019-12-08 18:07:06 +03:00
tyrionhuang
213e2dd700
fix BitmapAnd error, like issue #5479 : bitmapHasAny in scalar subquery causes segment fault
2019-12-08 22:44:17 +08:00
Oleg Matrokhin
2cab90b9f4
fmt
2019-12-08 17:36:31 +03:00
Sergei Shtykov
b4839c52db
The most working of all the previous versions.
2019-12-08 10:56:07 +03:00
Oleg Matrokhin
10cf9e5b9f
implement new function
2019-12-08 03:18:24 +03:00
alexey-milovidov
113ddb2588
Update FunctionsHashing.h
2019-12-06 22:21:22 +03:00
alexey-milovidov
1c1351d644
Update FunctionsHashing.h
2019-12-06 22:19:19 +03:00
alexey-milovidov
e0aa12717b
Update FunctionsHashing.h
2019-12-06 22:18:47 +03:00
millb
b13cd85613
Applied the required changes
2019-12-06 22:08:21 +03:00
Mikhail Korotov
3528555174
Update FunctionsHashing.h
2019-12-06 19:33:37 +03:00
Mikhail Korotov
5a1ad17736
Update FunctionsHashing.h
2019-12-06 19:30:46 +03:00
millb
c801845185
Applied the required changes
2019-12-06 19:27:45 +03:00
millb
e3426e39e8
Fixed bugs
2019-12-06 18:43:50 +03:00
millb
41008c9cca
Merge branch 'master' into hashes_from_values_of_UUID_type
2019-12-06 18:22:06 +03:00
millb
56c7e53bdc
Changes applied
2019-12-06 18:21:58 +03:00
Vitaly Baranov
3e6619c076
Move IntervalKind-related functions to a separate file.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
55a05e5643
Add functions currentQuota() and currentQuotaKey().
2019-12-05 21:03:57 +03:00
alexey-milovidov
aadf7c689c
Merge pull request #7993 from ClickHouse/merge-great-circle-distance
...
Merging #7307
2019-12-03 15:23:38 +03:00
alexey-milovidov
f09c29a2b6
Merge pull request #7992 from ClickHouse/excitoon-favorites-s3auth
...
Merging #7623
2019-12-03 15:21:12 +03:00
Alexey Milovidov
40b0f12755
Removed tons of garbage from "greatCircleDistance" function. But algorithm is still unclear.
2019-12-03 05:25:23 +03:00
alexey-milovidov
0c904f1484
Merge pull request #7721 from 4ertus2/decimal
...
Basic GatherUtils support for Decimals
2019-12-03 05:15:38 +03:00
alexey-milovidov
0734d4695b
Merge pull request #7724 from 4ertus2/some
...
Missing array functions for Decimals
2019-12-03 05:14:33 +03:00
Alexey Milovidov
2474cdfa09
Removed tons of garbage from "greatCircleDistance" function. But algorithm is still unclear.
2019-12-03 04:55:46 +03:00
alexey-milovidov
f5e88f8cd5
Merge pull request #7307 from ClickHouse/new-branch-for-new-geodist
...
Speed up greatCircleDistance function with test
2019-12-03 04:34:35 +03:00
alexey-milovidov
dbc95e27be
Update greatCircleDistance.cpp
2019-12-03 04:33:36 +03:00
Alexey Milovidov
8fa05a212b
Fixed bug in #7623
2019-12-03 04:22:25 +03:00
alexey-milovidov
edede563c9
Merge pull request #7747 from hczhcz/patch-1113
...
Fix empty array handling in arraySplit
2019-12-03 04:00:31 +03:00
Vasily Nemkov
70512f8289
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-11-30 21:49:15 +03:00
millb
3cfda0a9dd
Merge branch 'master' into hashes_from_values_of_UUID_type
2019-11-27 15:52:06 +03:00
stavrolia
4087d91563
Fix
2019-11-27 03:42:46 +03:00
Sergei Shtykov
768df77d72
Fixation of intermediate result.
2019-11-27 01:12:38 +03:00
Sergei Shtykov
b3bdb9126e
Fixed function name and code markup.
2019-11-26 23:32:27 +03:00
akonyaev
6834dd5fd0
Add exception for illegal types for conversion functions with -OrZero or -OrNull postfixes.
...
Add docs for conversion functions with -OrZero and -OrNull postfixes.
2019-11-21 18:53:14 +03:00
akonyaev
78f13839ac
Add exception for illegal types for conversion functions with -OrZero or -OrNull postfixes.
...
Add docs for conversion functions with -OrZero and -OrNull postfixes.
2019-11-21 18:46:25 +03:00
Vasily Nemkov
66d64e7100
PR-comment fixes: factored out std::is_same_v to a constexpt variable.
2019-11-21 01:05:09 +03:00
Vasily Nemkov
fa90406f25
Fixed bug in converting DateTime64 to string on large scale values
2019-11-21 01:04:18 +03:00
Vasily Nemkov
6dfe36479e
Fixed type-support traits, put all of those to IDataType.h:
...
* IsDataTypeDateOrDateTime
* IsDataTypeDecimal
* IsDataTypeNumber
2019-11-21 01:02:49 +03:00
Alexander Kuzmenkov
7084d090e8
Remove trailing space in modulo.cpp
2019-11-18 15:19:45 +03:00
alexey-milovidov
b598ae1e3e
Merge pull request #7750 from amosbird/moduleopt
...
const modulo optimization
2019-11-17 23:25:49 +03:00
alexey-milovidov
2fa5e4891f
Update modulo.cpp
2019-11-17 23:25:27 +03:00
BayoNet
3993d98377
Fixed code markup
2019-11-16 09:36:00 +03:00
Sergey Shtykov
6ce54dacce
Started to work but not as I pladded. Now it return the same string for each row.
2019-11-15 19:06:08 +03:00
BayoNet
5866d5b72c
update.
2019-11-15 17:30:29 +03:00
Nikolai Kochetov
2b5cb7d6b9
Small refactoring.
2019-11-15 17:19:54 +03:00
Nikolai Kochetov
6f0c287e41
Small refactoring.
2019-11-15 17:18:59 +03:00
Nikolai Kochetov
618ecf4f60
use notEquals function in arrayIntersect
2019-11-15 16:58:43 +03:00
BayoNet
fd54f25f1d
update
2019-11-15 16:44:19 +03:00
BayoNet
2b40692a65
Merge branch 'feature/randomASKII-function' of github.com:BayoNet/ClickHouse into feature/randomASKII-function
2019-11-15 16:30:18 +03:00
BayoNet
d226749576
Added randomASKII function by copying from the currentDatabase Function
2019-11-15 16:28:26 +03:00
Nikolai Kochetov
9c3fa44932
Do not check overflow for floats in arrayIntersect.
2019-11-15 16:01:57 +03:00
Amos Bird
29c2785ca5
const modulo optimization
2019-11-15 13:56:23 +08:00
Nikolai Kochetov
f8d10872c5
Fix integer overflow in arrayIntersect.
2019-11-14 16:37:24 +03:00
Nikolai Kochetov
c633c82928
Fix integer overflow in arrayIntersect.
2019-11-14 16:15:53 +03:00
Nikolai Kochetov
5440700299
Fix integer overflow in arrayIntersect.
2019-11-14 12:46:10 +03:00
millb
1820ed187e
Code style
2019-11-13 18:21:27 +03:00
Mikhail Korotov
5acbc82ff8
Update FunctionsHashing.h
2019-11-13 18:18:24 +03:00
millb
6b3d6d5dce
Working commit
2019-11-13 17:21:28 +03:00
millb
532d055aa0
Working commit
2019-11-13 17:20:23 +03:00
millb
5110379d95
Working commit
2019-11-13 17:11:28 +03:00
millb
9e36c7c4e9
Working commit
2019-11-13 16:57:15 +03:00
millb
0f73cc3090
Working commit
2019-11-13 16:38:30 +03:00
millb
642835b580
Working commit
2019-11-13 15:47:59 +03:00
millb
dcbc4332c1
Working project
2019-11-13 13:12:10 +03:00
millb
e1c73f41de
Working commit
2019-11-13 11:12:46 +03:00
millb
e1a48405a9
Working commit
2019-11-13 11:06:11 +03:00
millb
ddb4b6dfa5
Working commit
2019-11-13 11:03:01 +03:00
hcz
11960bbaf9
Fix empty array handling
2019-11-13 10:41:23 +08:00
millb
c0630ec3bc
working commit
2019-11-12 20:02:04 +03:00
millb
7ed84fd464
working commit
2019-11-12 19:56:18 +03:00
millb
7bef7c259c
Working commit
2019-11-12 19:52:23 +03:00
millb
8ad430e458
Working commit
2019-11-12 19:40:45 +03:00
millb
882b780d73
Working commit
2019-11-12 19:37:36 +03:00
millb
2b16da73d1
working commit
2019-11-12 18:44:23 +03:00
millb
386e41b437
Working commit
2019-11-12 18:33:17 +03:00
millb
1b76bf304e
Working commit
2019-11-12 18:29:35 +03:00
millb
d617c443b0
working project
2019-11-12 16:50:31 +03:00
millb
fcbd37c662
Working commit
2019-11-12 14:56:22 +03:00
chertus
92fda25029
fix UB (attempt 2)
2019-11-12 03:18:13 +03:00
chertus
4411edeadd
fix UB
2019-11-12 01:47:52 +03:00
chertus
a8a283ffdc
add missing array functions for Decimals
2019-11-11 23:46:36 +03:00
chertus
b2ae509030
fix gcc9 build
2019-11-11 21:02:44 +03:00
alexey-milovidov
44cf1483c8
Merge pull request #7710 from amosbird/batchreduce2
...
Better addBatchArray aggregator
2019-11-11 20:36:34 +03:00
chertus
03933a1039
gather utils for Decimals (no scale checks)
2019-11-11 19:18:37 +03:00
millb
0ee1b46d40
Working test
2019-11-11 12:00:31 +03:00
Amos Bird
3707da4fbf
Better addBatchArray aggregator
2019-11-11 16:56:11 +08:00
millb
368bb5f217
Working project
2019-11-11 11:47:20 +03:00
millb
e15c636021
Working commit
2019-11-11 11:36:02 +03:00
Vasily Nemkov
07041d45c9
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-11-11 09:19:13 +03:00
Vasily Nemkov
d227712f84
Fixed build errors for GCC-9 and Apple Clang.
2019-11-11 09:07:26 +03:00
Vasily Nemkov
5c125dff90
Fixed PVS error on sprintf and structure.
2019-11-11 08:34:39 +03:00
Alexey Milovidov
f47415b7fa
Allowed non-constant negative "size" argument for function "substring"
2019-11-11 04:45:03 +03:00
alexey-milovidov
1d910c5071
Merge pull request #7608 from amosbird/batchreduce
...
Optimize arrayReduce, -Array and -State combinators
2019-11-10 22:10:03 +03:00
Vasily Nemkov
9ff70ff484
Fixed GCC-9 error of not returning a value from non-void function.
2019-11-10 16:13:26 +03:00
Vasily Nemkov
512932c0d2
Fixed regression: unable to determine timezone for certain cases.
2019-11-10 16:12:59 +03:00
millb
15932052c5
Working commit
2019-11-08 20:46:12 +03:00
Vasily Nemkov
b93e6b8db8
Fixed GCC9 build error
2019-11-08 14:52:01 +03:00
alexey-milovidov
0fefebae1b
Merge pull request #7518 from sundy-li/improve_range
...
Improve range
2019-11-08 00:59:05 +03:00
alexey-milovidov
98eca0faef
Merge pull request #7652 from ClickHouse/trap-context-dangling-reference
...
Added another mode for function "trap"
2019-11-08 00:57:26 +03:00
alexey-milovidov
034d6ce729
Merge pull request #7355 from millb/decimal_hex_function
...
Decimal hex function
2019-11-08 00:56:59 +03:00
Vasily Nemkov
3ea467d34a
Minor fixes: headers, comments and [[maybe_unused]] for some variables.
2019-11-07 13:56:13 +03:00
alesapin
4f6fa013e5
Merge branch 'master' into fix_scope_of_interpreter_select_query_in_mutations
2019-11-07 11:18:35 +03:00
Amos Bird
544af39d23
Vectorize arrayReduce and -Array combinator
...
Also devirtualize -State combinator.
2019-11-07 11:53:47 +08:00
alexey-milovidov
31aff291e6
Merge pull request #7651 from achimbab/javaHashUTF16LE
...
Implemented javaHashUTF16LE()
2019-11-06 22:58:48 +03:00
alesapin
8c7deaa70d
More safier, but still ugly mutations interpreter
2019-11-06 20:28:03 +03:00
Mikhail Korotov
317af908fd
Merge branch 'master' into decimal_hex_function
2019-11-06 18:20:05 +03:00
Mikhail Korotov
ed7971ea25
Fixed small bug
2019-11-06 18:15:24 +03:00
millb
254c94ebfa
Fixed bugs
2019-11-06 18:06:15 +03:00
philip.han
16ea323fff
Removed undefined behavior of signed integer overflow.
2019-11-07 00:00:59 +09:00
millb
7d46d359ea
Working commit
2019-11-06 17:48:23 +03:00
philip.han
300062e91a
Fixed type conversions in javaHashUTF16LE
2019-11-06 23:17:38 +09:00
millb
7863b7f3c9
Working commit
2019-11-06 16:08:02 +03:00
Alexey Milovidov
3f0476b522
Disabled "trap" function back
2019-11-06 15:36:56 +03:00
Vasily Nemkov
9c62209978
Added missing support of formatDateTime() for DateTime64
2019-11-06 15:01:39 +03:00
millb
4f6197c370
Working commit
2019-11-06 14:48:17 +03:00
alexey-milovidov
a120fba929
Update FunctionsHashing.h
2019-11-06 14:20:31 +03:00
Alexey Milovidov
83c63171ad
Added another mode for function "trap" #7601
2019-11-06 14:17:12 +03:00
Alexander Kuzmenkov
233212ac68
Merge pull request #7531 from amosbird/getkeymapped
...
Unify hash tables interface (separated for review)
2019-11-06 13:49:39 +03:00
philip.han
68a82f78b4
Implemented javaHashUTF16LE()
2019-11-06 19:46:37 +09:00
sundy-li
76b75dc0e8
args to supertype
2019-11-06 18:19:08 +08:00
Mikhail Korotov
281b0062bc
Working commit
2019-11-06 11:48:51 +03:00
Mikhail Korotov
556f6fbdc5
Working commit
2019-11-06 11:47:25 +03:00
millb
043ca0d470
Working commit
2019-11-06 11:42:34 +03:00
millb
9308ea5d33
Merge branch 'decimal_hex_function' of github.com:millb/ClickHouse into decimal_hex_function
2019-11-06 11:29:43 +03:00
millb
695f3c58cc
Working Commmit
2019-11-06 11:29:18 +03:00
Mikhail Korotov
0168620fad
Fixed style commit
2019-11-06 11:17:31 +03:00
millb
0226ba406c
Functions tryExecuteFloat and tryExecuteDecimal are combined
2019-11-06 10:42:10 +03:00
millb
5c478dfe02
Merge branch 'master' into decimal_hex_function
2019-11-06 09:43:30 +03:00
alexey-milovidov
8fc84e93ff
Merge pull request #7635 from ClickHouse/fix_concat_return_data_type
...
Now concat always return string column
2019-11-05 21:39:48 +03:00
alexey-milovidov
40a8216294
Merge pull request #7625 from ClickHouse/array-compact-improve
...
Improvement of arrayCompact function.
2019-11-05 21:39:06 +03:00
Amos Bird
fbfbe161ec
Unify hash tables interface.
2019-11-06 00:08:04 +08:00
alesapin
2d7ae27232
Now concat always return string column
2019-11-05 16:23:09 +03:00
Vasily Nemkov
61ad74bc58
Fixed parsing DateTime and/or DateTime64 with parseXXXOrNull
2019-11-05 14:59:46 +03:00
sundy-li
71ec49cc2f
add range performance tests
2019-11-05 15:07:25 +08:00
alexey-milovidov
6a871f579f
Merge pull request #7598 from infinivision/bitmap_replace
...
added bitmapTransform
2019-11-05 02:23:50 +03:00
alexey-milovidov
2fe5f23025
Update FunctionsBitmap.h
2019-11-05 02:21:22 +03:00
alexey-milovidov
0c1510d3e3
Update FunctionsBitmap.h
2019-11-05 02:20:16 +03:00
alexey-milovidov
f9d14f78c0
Update FunctionsBitmap.h
2019-11-05 02:09:28 +03:00
alexey-milovidov
7d2a16ee39
Merge pull request #7486 from sundy-li/char_function
...
functions: add char function
2019-11-05 01:40:18 +03:00
Alexey Milovidov
979db8c965
Improve "arrayCompact" function
2019-11-05 01:13:10 +03:00
Vasily Nemkov
c6eb0fcff7
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-11-04 17:06:22 +03:00
Vasily Nemkov
1237976021
Minor: style fix and removed debug output.
2019-11-04 14:54:17 +03:00
Zhichang Yu
da2d05802c
added bitmapTransform
2019-11-04 14:55:31 +08:00
alexey-milovidov
a8d6843723
Merge pull request #7599 from azat/__getScalar-fix
...
Check column for __getScalar() (avoids assertion)
2019-11-04 02:28:42 +03:00
Azat Khuzhin
842f4e2ca0
Check column for __getScalar() (avoids assertion)
...
Can be triggered using the following query:
CREATE TABLE foo (key String, macro String MATERIALIZED __getScalar(key)) Engine=Null();
Trace:
3. 0x00007ffff6d5d526 __assert_fail (libc.so.6)
4. 0x00007ffff41fd931 boost::intrusive_ptr<DB::IColumn const>::operator*() const (libclickhouse_functionsd.so)
5. 0x00007ffff41fcd64 COW<DB::IColumn>::IntrusivePtr<DB::IColumn const>::operator*() const & (libclickhouse_functionsd.so)
6. 0x00007ffff4dc5944 DB::FunctionGetScalar::getReturnTypeImpl() const (libclickhouse_functionsd.so)
(Even though it is internal I guess it is better to fix it)
Refs: #7392
Cc: @amosbird
2019-11-03 21:44:56 +03:00
Vasily Nemkov
98235e9202
Fixed now64
2019-11-03 08:42:48 +03:00
Vasily Nemkov
f437ae4822
Fixed zero-subsecond part
2019-11-03 08:38:45 +03:00
Vasily Nemkov
1fc28c08e6
Fixed toDateTime64 bug
...
Of unable to deduce timezone in function execution phase.
2019-11-03 08:10:11 +03:00
alexey-milovidov
d08bfbd3e1
Merge pull request #7328 from Joeywzr/arrayCompact
...
implement arrayCompact
2019-11-03 01:07:19 +03:00
alexey-milovidov
fa0274e223
Merge pull request #7380 from hczhcz/patch-1018
...
Add function arrayFill and arrayReverseFill
2019-11-03 01:06:41 +03:00
alexey-milovidov
15c4a19bb1
Merge pull request #7585 from ernestp/macos_catalina_2019_11_01
...
Fixed compile errors on macOS Catalina
2019-11-02 15:46:17 +03:00
alexey-milovidov
f5531fb436
Merge pull request #7590 from amosbird/typetrait
...
ubsan fix
2019-11-02 13:22:39 +03:00
Amos Bird
ad12099642
ubsan fix
2019-11-02 17:00:03 +08:00
alexey-milovidov
dda93e2275
Merge pull request #7561 from ClickHouse/achimbab-master
...
Merge for #7363
2019-11-02 00:57:13 +03:00
Ernest Poletaev
de1e5d0e53
Fixed compile errors on macOS Catalina
2019-11-01 23:33:43 +07:00
alexey-milovidov
4081b0be90
Merge pull request #7497 from amosbird/countopt
...
Early constant folding.
2019-11-01 16:54:02 +03:00
Nikolai Kochetov
9a5a0a2a3b
Fix types for set elements.
2019-10-31 19:14:06 +03:00
Amos Bird
e04cdd4ebb
Early constant folding.
2019-10-31 23:54:32 +08:00
Vasily Nemkov
a6ba05e5d9
Fixed converting DateTime64 to DateTime and Date.
2019-10-31 11:27:15 +03:00
sundy-li
17212afabb
fix virtual call
2019-10-31 13:19:28 +08:00
sundy-li
d2a785f759
fix style
2019-10-31 12:59:50 +08:00
alexey-milovidov
194fd85f5c
Update arrayCompact.cpp
2019-10-31 00:29:15 +03:00
alexey-milovidov
1ec7cb3546
Update range.cpp
2019-10-30 23:39:29 +03:00
Vasily Nemkov
be683588a5
Fixed CASTing Date and DateTime to DateTime64
2019-10-30 16:59:38 +03:00
Vasily Nemkov
bb04fd8e54
Type-support fixes
2019-10-30 13:10:51 +03:00
sundy-li
7292748012
fix docs
2019-10-30 10:06:30 +08:00
sundy-li
be9da37720
fix zero divide
2019-10-30 09:36:50 +08:00
Alexander Kuzmenkov
55ec00977b
Update dbms/src/Functions/greatCircleDistance.cpp
2019-10-29 16:31:53 +03:00
sundy-li
6f2cce37d7
fix move
2019-10-29 19:22:00 +08:00
sundy-li
718fb99939
fix move
2019-10-29 19:20:35 +08:00
sundy-li
66ffec32f7
improve range to support start,step args
2019-10-29 14:33:03 +08:00
sundy-li
9eb77a59e3
fix index
2019-10-29 13:20:18 +08:00
sundy-li
a653f50432
remove logs
2019-10-29 13:01:45 +08:00
sundy-li
dbd3227e5a
fixup partial const column
2019-10-29 11:51:27 +08:00
sundy-li
3f1651fa29
improve range
2019-10-29 11:03:47 +08:00
memo
3449e8d107
fix
2019-10-29 10:27:54 +08:00
memo
3064e716db
add line
2019-10-28 14:48:25 +08:00
memo
0f572e5d7d
add line
2019-10-28 12:51:59 +08:00
memo
90333ac9aa
modified getReturnType
2019-10-28 11:15:52 +08:00
sundy-li
538b77c123
functions: add char function as mysql behavior
2019-10-28 10:44:56 +08:00
Vasily Nemkov
38e2897b49
Casting DateTime64 to DateTime64 of different scale or to/from Date/DateTime
2019-10-26 09:22:55 +03:00
Azat Khuzhin
04f1e6b2cc
Use crc32_z() over crc32(), since it size_t for length
2019-10-25 23:32:29 +03:00
Azat Khuzhin
2d2e738085
Add CRC32IEEE()/CRC64() support
...
zlib's implementation uses CRC-32-IEEE 802.3 polynomial (0xedb88320) but
with starting value 0xffffffff, so introduce another crc32
implementation - CRC32IEEE that has starting value - 0
Also add CRC64 with ECMA polynomial.
v2: s/crc*_data./crc*_data./ to avoid conflicts with other crc32.h in contrib
v3: join with existing CRC32()
2019-10-25 15:52:41 +03:00
hcz
3767cb76de
Improve style
2019-10-25 11:25:02 +08:00
Vasily Nemkov
17263bc7b1
Better reporting of unmatching function argument types.
2019-10-24 13:49:00 +03:00
Vasily Nemkov
d6ff36c760
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-10-24 07:52:50 +03:00
Amos Bird
295864e6e0
better scalar query
2019-10-23 21:37:54 +08:00
Vasily Nemkov
1a0011853e
Fixed toWeek, toYearWeek, toStartOfWeek with DateTime64
2019-10-23 15:27:36 +03:00
stavrolia
22e960dbff
Move initialisation of constants
2019-10-23 13:55:44 +03:00
Vasily Nemkov
f8170e8973
Reverted modifications of now.cpp
2019-10-22 18:37:43 +03:00
Vasily Nemkov
06255a9b9f
DateTime64 toStartOfInterval fix
2019-10-22 10:43:14 +03:00
hcz
d877ef6098
Merge remote-tracking branch 'hcz/patch-1018' into patch-1018
2019-10-22 11:31:23 +08:00
memo
645bcdacae
add docs and simplify the code
2019-10-22 10:23:07 +08:00
Vitaly Baranov
a0ca932035
Fix build and add comments.
2019-10-21 16:39:55 +03:00
millb
2a183c3d07
Merge branch 'master' into decimal_hex_function
2019-10-21 11:13:51 +03:00
hcz
79a27ece1a
Flip the condition column in arrayFill
2019-10-21 11:19:11 +08:00
stavrolia
40688294b0
another attempt to fix clang warning
2019-10-21 01:56:22 +03:00
philip.han
5e32bf1ae7
Removed unchecked type-casting
2019-10-19 21:42:08 +09:00
VDimir
797f76a187
Separate class for IsValidJSONImpl
2019-10-19 07:26:19 +00:00
VDimir
f1630b4e2e
Merge branch 'master' into feature/isvalidjson-5910
2019-10-19 06:21:21 +00:00
stavrolia
1397a90324
Fix test and clang warning
2019-10-18 18:03:15 +03:00
hcz
2be06255b1
Update arrayFill.cpp
2019-10-18 21:31:18 +08:00
hcz
124ea9699a
Add arrayFill
2019-10-18 16:45:39 +08:00
hcz
decd555317
Cleanup, keep function names consistent
2019-10-18 15:30:41 +08:00
philip.han
8aac4d04de
Fixed weird type-casting for IN-operator in bloom_filter
2019-10-17 19:53:41 +09:00
stavrolia
688ec20de1
Fix style from clang warnings
2019-10-17 09:28:26 +03:00
Amos Bird
89247deb64
Constness-aware JoinGet.
2019-10-17 08:52:28 +08:00
stavrolia
65efaf7ac7
Delete macros
2019-10-16 22:52:35 +03:00
stavrolia
fdad33fcd0
Fix style
2019-10-16 20:43:44 +03:00
stavrolia
ae2f5ad7d2
Speedup
2019-10-16 20:25:46 +03:00
millb
19a54a59bb
Created: function hex for Decimal32, Decimal64, Decimal128
2019-10-16 18:28:10 +03:00
Vasily Nemkov
6280ea086f
Enabled toDateTime64
2019-10-16 10:26:28 +03:00
memo
947c345eda
style: Normalize the format
2019-10-16 14:05:43 +08:00
memo
d1fb238820
implement arrayCompact
2019-10-15 15:50:10 +08:00
Vasily Nemkov
9f9fcb1add
Simplified argument type validation for conversion functions.
2019-10-14 16:28:52 +03:00
alexey-milovidov
f0409348a1
Merge pull request #7294 from hczhcz/patch-1013
...
Add arraySplit
2019-10-14 12:32:09 +03:00
Danila Kutenin
60d273a65d
Get better message for non hyperscan supported platforms
2019-10-14 10:58:05 +02:00
Vasily Nemkov
db166af95a
Moved DataTypeDateTime64 and now64() to separate source files.
2019-10-14 11:38:03 +03:00
Danila Kutenin
7527896f1a
Unused variables
2019-10-13 21:40:07 +02:00
Danila Kutenin
57f20ba17e
All multi{Fuzzy}MatchAllIndices functions
2019-10-13 15:22:09 +02:00
hcz
c8c40e159d
Add arraySplit
2019-10-13 16:06:57 +08:00
alexey-milovidov
4dffc67434
Merge pull request #7291 from sundy-li/FQDN
...
Function FQDN, fullHostName
2019-10-12 20:02:22 +03:00
alexey-milovidov
62c7c50aba
Update FunctionsJSON.h
2019-10-12 20:00:32 +03:00
VDimir
1174fc346b
Add isValidJSON function
2019-10-12 11:42:43 +00:00
sundy-li
4e48992397
fullHostName by function getFQDNOrHostName
2019-10-12 17:21:30 +08:00
sundy-li
59d2989826
Function FQDN,fullHostName
2019-10-12 15:17:30 +08:00
Vasily Nemkov
8648ebf75c
Initial implementation of DateTime64 parsing functions;
2019-10-12 10:03:38 +03:00
Alexander Kuzmenkov
57b5592236
Work around garbage in roaring.h to fix Mac OS build.
2019-10-11 14:28:16 +03:00
Alexander Kuzmenkov
8a1d57bddb
Include PODArray.h into fewer files.
2019-10-11 14:28:16 +03:00
Vasily Nemkov
a6b20e8ca3
Minor simplification on FunctionDateOrDateTimeAddInterval::TransformResultDataType and FunctionDateOrDateTimeAddInterval::resolveReturnType
2019-10-10 20:05:29 +03:00
Alexander Kazakov
03c7b7ff8d
Prevent from using non-deterministic functions in mutations of replicated tables ( #7247 )
...
* Added isDeterministic() to IFunctionBuilder i-face
* A test for non-deterministic mutations
* In MutationsInterpreter::validate() ensure deterministic functions
* Adjusted nondeterministic mutation tests
* Moved around some code in MutationsInterpreter::validate()
* Dropped unnecessary check in findFirstNonDeterministicFuncName()
* Corrections to IFunction{Base,Builder} interface
2019-10-10 17:38:08 +03:00
Vasily Nemkov
fb4dbf94e9
Simplified customizing add/substract-Interval functions for DateTime64
2019-10-10 16:49:40 +03:00