Commit Graph

2411 Commits

Author SHA1 Message Date
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
Oleg Matrokhin
8ea7cab7e4 simplify expression 2019-12-08 18:07:06 +03: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