Vitaly Baranov
1fa64a2a86
Use separate variables for the database and name in dictionaries.
2019-12-29 23:48:10 +07:00
Alexey Milovidov
fc8a0a1f12
Improvement
2019-12-29 17:34:23 +03:00
Alexey Milovidov
68ef7a6e4b
Added comment
2019-12-29 17:32:46 +03:00
Alexey Milovidov
1b96ba5e10
Fixed error
2019-12-29 05:26:51 +03:00
Alexey Milovidov
7e1aa3da4a
Fixed issue with rebuild time
2019-12-29 04:14:21 +03:00
Alexey Milovidov
84a08ff1ba
Fixed possible overflow
2019-12-29 04:12:19 +03:00
Alexey Milovidov
d42b50456f
Merging randomPrintableASCII #8401
2019-12-29 02:11:02 +03:00
Alexey Milovidov
4faf2f5485
Merge branch 'feature/randomASKII-function' of https://github.com/BayoNet/ClickHouse into BayoNet-feature/randomASKII-function
2019-12-29 00:14:18 +03:00
Alexey Milovidov
f4f2ed7a30
Fixed errors: checking the number of arguments; managing of state #8326
2019-12-28 23:54:50 +03:00
Alexey Milovidov
4f05295402
Merge branch 'kononencheg/runningAccumulate' of https://github.com/kononencheg/ClickHouse into kononencheg-kononencheg/runningAccumulate
2019-12-28 23:18:58 +03:00
Alexey Milovidov
0ec3f37921
Fixed error in "arrayReduce" aggregate function
2019-12-28 08:13:23 +03:00
Alexey Milovidov
3b6181afd5
Switched back to TurboBase64
2019-12-28 03:18:08 +03:00
Sergey Kononenko
d7b030dbff
Fix bad solution
2019-12-28 02:33:37 +03:00
Alexey Milovidov
b04586ef55
Merge remote-tracking branch 'origin/master' into base64-update
2019-12-28 02:27:32 +03:00
Sergey Kononenko
0616b35ac8
Fix style
2019-12-28 01:54:01 +03:00
Sergey Kononenko
96302d4949
Prevent aggregation function destroy repeat
2019-12-28 01:52:03 +03:00
Sergey Kononenko
50f3861358
Check arguments count
2019-12-27 23:55:42 +03:00
Alexander Burmak
f13f4c1617
Fixed merge issues
2019-12-27 12:49:23 +03:00
Amos Bird
5570431a04
trivial
2019-12-27 13:51:52 +08:00
Vitaly Baranov
b75771be61
Merge pull request #7808 from vitlibar/RBAC-3
...
RBAC-3
2019-12-27 09:44:24 +07:00
alexey-milovidov
db96e1deb6
Merge pull request #8375 from Enmk/toDateTime64_type_check_fix
...
Fixed type check in toDateTime64
2019-12-26 17:35:47 +03:00
Vasily Nemkov
9f08dbacff
Fixed style
2019-12-26 07:32:15 +03:00
Alexey Milovidov
51685f35e8
Fixed TSan report in base64 library
2019-12-26 04:42:51 +03:00
Vasily Nemkov
33b422d8cc
Argument validation fixes
...
* Fixed crash when converting nullptr char pointer to std::string
* Updatedexepected error code for toDateTime64
2019-12-26 00:07:53 +03:00
Alexey Milovidov
063682ef9c
Changed one base64 library to another
2019-12-25 22:44:00 +03:00
Nikolai Kochetov
438ea5bc22
Remove context from formats ( #8388 )
...
* Remove Context from formats.
2019-12-25 22:17:41 +03:00
Sergei Shtykov
a2b2aa950a
Pre-PR edits.
2019-12-25 20:26:40 +03:00
Vasily Nemkov
6f877abfb6
Merge branch 'toDateTime64_type_check_fix' of github.com:Enmk/ClickHouse into toDateTime64_type_check_fix
2019-12-25 17:58:10 +03:00
Vasily Nemkov
9947324d9f
Fixed failing tests
...
* Throwing with ErrorCodes::ILLEGAL_COLUMN (44) when column validation fails
* added ignored optional argument to toDate() function to preserve compatibility
* fixed toUnixTimestamp
Other minor fixes:
* Better documentation on FunctionArgumentDescriptor and validateFunctionArgumentTypes
* Fixed typos in validateFunctionArgumentTypes
* FunctionArgumentDescriptor::expected_type_description can now be null to avoid confusing type names in case of generic functions.
2019-12-25 17:50:13 +03:00
achulkov2
946e602ede
Pull
2019-12-25 16:06:51 +03:00
Sergei Shtykov
0139d5003d
Fixed bug with multiple blocks output.
2019-12-25 04:09:15 +03:00
alexey-milovidov
aef617c144
Update FunctionHelpers.cpp
2019-12-24 16:59:00 +03:00
Vasily Nemkov
87f58864d3
Fixed type check in toDateTime64
2019-12-24 16:15:25 +03:00
Alexey Milovidov
badbee2385
Added another mode of diagnostic trap
2019-12-23 23:26:46 +03:00
achulkov2
179b93de35
Allow more dictGets
2019-12-23 17:59:50 +03:00
achulkov2
6c7d5d58fb
Allow more dictGets
2019-12-23 17:38:42 +03:00
achulkov2
5804261a87
Compilation errors
2019-12-23 16:58:57 +03:00
alexey-milovidov
d52547dc75
Merge pull request #8082 from moon03432/master
...
fix bitmapAnd error when intersecting an aggregated bitmap and a scalar bitmap
2019-12-21 18:14:27 +03:00
Sergei Shtykov
8747a1e538
Fixes.
2019-12-21 16:29:46 +03:00
Sergei Shtykov
1b9b326e4f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into feature/randomASKII-function
2019-12-21 14:51:05 +03:00
Sergei Shtykov
6710279687
Fixes.
2019-12-21 14:48:20 +03:00
Sergey Kononenko
c339c1ca66
Reset column for runningAccumulate
2019-12-20 23:56:39 +03:00
alexey-milovidov
e83eeef731
Merge pull request #8258 from ClickHouse/update-llvm-bisect
...
Update LLVM in contrib
2019-12-19 22:22:32 +03:00
Vitaly Baranov
6baccb963d
Add functions currentRowPolicies() and system table 'system.row_policies'.
2019-12-19 18:40:15 +03:00
alexey-milovidov
3e90352af1
Update now64.cpp
2019-12-19 16:12:13 +03:00
Vasily Nemkov
2292ec9592
Handling error from clock_gettime properly
2019-12-19 12:55:10 +03:00
Alexey Milovidov
1d0854c7af
Using less number of LLVM libraries
2019-12-18 19:08:11 +03:00
Vasily Nemkov
6802025eb6
Fixed crash in now64() when it argument is a result of function call.
2019-12-18 17:51:35 +03:00
alexey-milovidov
a7384b4d07
Merge branch 'master' into MoreGCCWarnings
2019-12-18 02:01:39 +03:00
alexey-milovidov
06d124c073
Merge pull request #8229 from hczhcz/patch-2
...
Optimize rounding functions
2019-12-18 02:00:14 +03:00
Alexander Kuzmenkov
8b1dae3f3d
Fix some implicit Field casts ( #8209 )
2019-12-17 13:19:21 +03:00
hcz
dabaef2836
Fix correctness
2019-12-17 10:57:11 +08:00
kreuzerkrieg
9612bb0e79
More GCC warnings
2019-12-16 23:19:50 +02:00
Alexey Milovidov
0bc1c6d91d
Changes after review of #8034
2019-12-16 21:51:42 +03:00
Alexey Milovidov
0042c8271e
Changes after review of #8034
2019-12-16 21:41:51 +03:00
alexey-milovidov
12b3dcdcb8
Merge pull request #8034 from hombit/h3support
...
h3 functions required for circle search
2019-12-16 21:35:19 +03:00
alexey-milovidov
ed942ce29c
Update h3kRing.cpp
2019-12-16 21:34:51 +03:00
Konstantin Malanchev
f0b6a540ec
Fix style of registerFunctionsGeo.cpp
2019-12-16 20:46:39 +03:00
Konstantin Malanchev
590627a658
Add h3EdgeAngle function
2019-12-16 20:46:39 +03:00
Konstantin Malanchev
1c1794d3d8
Add h3EdgeLengthM function
2019-12-16 20:46:38 +03:00
Konstantin Malanchev
9937fc7ff9
Add h3kRing function
2019-12-16 20:46:38 +03:00
achulkov2
66341cc40f
Temporary: will be renamed later
2019-12-16 17:31:35 +03:00
hcz
a563ad0b21
Optimize rounding functions
2019-12-16 18:39:35 +08:00
alexey-milovidov
575984b4a0
Merge pull request #8189 from ClickHouse/regions-more-languages
...
More languages for regions
2019-12-16 02:47:20 +03:00
alexey-milovidov
3399f9a73c
Merge pull request #8112 from hczhcz/patch-1210
...
Add function bankerRound
2019-12-15 23:57:13 +03:00
hcz
3ff7c1e4dc
Improve roundBankers implementation
2019-12-15 16:30:54 +08:00
hcz
6171e8b70c
Rename roundBankers
2019-12-13 22:50:14 +08:00
Nikolai Kochetov
1de6b244aa
Fix randConstant.
2019-12-13 16:47:28 +03:00
Nikolai Kochetov
bd2517343d
Fi rand and randConstant for nullable types.
2019-12-13 16:10:02 +03:00
Konstantin Malanchev
4eae32d438
Add h3IsValid function
2019-12-13 11:39:50 +03:00
Konstantin Malanchev
947fb39d5e
Add h3getResolution function
2019-12-13 11:39:50 +03:00
alexey-milovidov
31e4d40501
Merge pull request #8106 from ClickHouse/function-refactoring
...
Function refactoring
2019-12-13 02:30:55 +03:00
Alexey Milovidov
df5f1f7433
More languages for regions
2019-12-12 22:34:58 +03:00
Alexey Milovidov
f88c94ed56
Changes after review of #8149
2019-12-12 22:12:18 +03:00
alexey-milovidov
0dc62d20e1
Merge pull request #8149 from zhang2014/feature/array_zip
...
Add arrayZip function
2019-12-12 22:00:39 +03:00
Nikolai Kochetov
7082f8028b
Merged with master.
2019-12-12 18:04:30 +03:00
Nikolai Kochetov
06f2fa8433
Add more comments, rename classes, move functions adaptors to separate file.
2019-12-12 17:56:03 +03:00
Nikolai Kochetov
168a55b617
Fix build.
2019-12-12 17:55:55 +03:00
Nikolai Kochetov
7dba6849c8
Fix concat and reverse for arrays.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
17af1ed25f
Fix FunctionExpression.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
9c4d123f87
Style fixes.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
187cc83702
update tuple comparison.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
63a8dcd2e8
update yestarday.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
7336f3fa7f
update transform.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
a18f0c5aa6
update FunctionArrayMapped.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
db08cc1b5a
update toTypeName.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
b401dc521a
update reverse.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
d7b08b166b
update now and today.
2019-12-12 17:55:35 +03:00
Nikolai Kochetov
a9f1a2e382
Fix compile errors.
2019-12-12 17:55:36 +03:00
Nikolai Kochetov
1d90c4c555
Fix build.
2019-12-11 20:09:42 +03:00
zhang2014
194ab5526d
add arrayZip function
2019-12-12 00:22:14 +08:00
Nikolai Kochetov
ea05ab293d
Fix PVS check.
2019-12-11 19:09:43 +03:00
Vasily Nemkov
f8fec0402b
Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64
2019-12-11 17:38:32 +03:00
Vasily Nemkov
514847609d
PR fixes:
...
* Fixed precision calculation in DataTypeDecimalBase c-tor
* Fixed max precision calculation in getLeastSupertype
* Fixed reading past end of vector in FunctionsConversion with extractToDecimalScale
* More verbose comments on FunctionArgumentTypeValidator and validateFunctionArgumentTypes
* style and other minor fixes.
2019-12-11 17:24:59 +03:00
Vasily Nemkov
c781908e6d
Post-PR fixes
...
* More precise overflow check in readIntTextImpl
* writeDateTimeText now always writes sub-second part for DateTime64
* comment for validateFunctionArgumentTypes
* DateTime64-related fixes for FunctionConvertFromString
* other minoe fixes: comments, removed commented out code, variable
renamings, etc.
2019-12-11 12:20:05 +03:00
Vasily Nemkov
f56b2b64f2
Post-review refactoring and tests for DateTime64 and Decimal.
...
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
(if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
hcz
2f276c2bb7
Rename bankerRound as bankersRound
2019-12-11 10:43:47 +08:00
hcz
8ed416ed41
Add bankerRound
2019-12-10 14:13:05 +08:00
Alexey Milovidov
da72203ceb
Added a comment
2019-12-09 22:53:40 +03:00
Alexey Milovidov
2fe7472a63
Added function "greatCircleAngle"; changed earth radius
2019-12-09 22:35:25 +03:00
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