Commit Graph

1602 Commits

Author SHA1 Message Date
Maksim Kita
d2b8d9886f Fixed fuzzer crash 2021-01-31 22:25:53 +03:00
Maksim Kita
a4812aa97b Updated tests 2021-01-31 18:32:47 +03:00
alexey-milovidov
342baa4223
Merge pull request #19720 from ClickHouse/unicode-asan
Fix unsufficient args check (trash code) in StringSearcher
2021-01-31 15:43:05 +03:00
alexey-milovidov
b80ad9f9bc
Merge pull request #19859 from ClickHouse/date-time-add-ubsan
Fix UBSan report in DateTimeAddInterval
2021-01-31 14:09:04 +03:00
vdimir
000b51f95a
Merge pull request #19518 from bharatnc/ncb/toIPv6-parses-IPv4
toIPv6 function parses IPv4 addresses
2021-01-31 13:56:45 +03:00
Alexey Milovidov
ddff28e594 Fix UBSan report in intDiv 2021-01-31 13:23:50 +03:00
Alexey Milovidov
37f88a1468 Whitespace 2021-01-31 12:02:54 +03:00
Alexey Milovidov
e23dc60e31 Fix UBSan report in GatherUtils 2021-01-31 10:12:17 +03:00
Alexey Milovidov
248540e58f Fix UBSan report in GatherUtils 2021-01-31 10:10:37 +03:00
Alexey Milovidov
0128d185ea Fix UBSan report in DateTimeAddInterval 2021-01-31 06:49:33 +03:00
Alexey Milovidov
0fa5142715 Remove tons of garbage 2021-01-31 05:36:52 +03:00
Alexey Milovidov
5c718c8754 Merge branch 'master' into unicode-asan 2021-01-31 02:40:24 +03:00
alexey-milovidov
8ac39e7f56
Merge pull request #19791 from ClickHouse/format-readable-time-delta-ubsan
formatReadableTimeDelta: correctly output infinite values
2021-01-31 01:37:59 +03:00
bharatnc
e967ba5f3b try fix clang-11-darwin build 2021-01-30 12:12:38 -08:00
Maksim Kita
155f6c0eb5 Function reinterpretAs updated to support big integers 2021-01-30 22:56:23 +03:00
vdimir
5cb99ae699
Use offsets in FunctionIPv6StringToNum for copying ipv4 to buffer 2021-01-30 20:20:11 +03:00
Vitaly Baranov
7c8deae0e1 Fix starting the server with tables having columns' default expressions containing dictGet().
Allow getting return type of dictGet() without loading dictionary.
2021-01-30 19:06:48 +03:00
Azat Khuzhin
502d981ab4 Use BinaryArithmeticOverloadResolver::valid_on_float_arguments for lcm/gcd 2021-01-30 09:12:31 +03:00
Azat Khuzhin
7da4083237 Forbid bit functions for floats
This will fix the following UB report [1]:

  "../src/Functions/bitAnd.cpp:24:61: runtime error: nan is outside the
range of representable values of type 'long' Received signal -3 Received
signal Unknown signal (-3)"

  [1]: https://clickhouse-test-reports.s3.yandex.net/19824/89c4055202b9d08459f90ee5791d4e3017b82fbf/fuzzer_ubsan/report.html#fail1
2021-01-30 09:12:31 +03:00
Alexey Milovidov
d44ce00391 Merge branch 'master' into format-readable-time-delta-ubsan 2021-01-30 07:28:38 +03:00
alexey-milovidov
276e972166
Merge pull request #19789 from ClickHouse/fix-great-circle-angle
Fix mistake in greatCircleAngle
2021-01-29 21:35:26 +03:00
alexey-milovidov
4cfcc18a7f
Merge pull request #19786 from ClickHouse/int-round-ubsan
Fix UBSan report in "round"
2021-01-29 14:59:12 +03:00
alexey-milovidov
0679d81c0d
Merge pull request #19788 from ClickHouse/array-enumerate-extended-bug
Fix trivial bug in arrayEnumerateUniq
2021-01-29 14:58:38 +03:00
Maksim Kita
c7401f219f
Merge pull request #18236 from kitaisreal/dictionaries-support-for-nullable-and-array
[WIP] Dictionaries support for Array and Nullable
2021-01-29 12:02:23 +03:00
alexey-milovidov
76894ccb9f
Update greatCircleDistance.cpp 2021-01-29 08:52:52 +03:00
Alexey Milovidov
f06bb78c5d Merge branch 'master' into unicode-asan 2021-01-29 05:18:29 +03:00
Alexey Milovidov
eee84eec79 formatReadableTimeDelta: correctly output infinite values 2021-01-29 05:14:15 +03:00
Alexey Milovidov
f4a05bd773 Fix mistake in greatCircleAngle 2021-01-29 05:05:46 +03:00
Alexey Milovidov
b3944006cb Fix trivial bug in arrayEnumerateUniq 2021-01-29 04:41:55 +03:00
Alexey Milovidov
eb0473c3f9 Fix UBSan report in "round" 2021-01-29 04:03:38 +03:00
Maksim Kita
f621871465 Fixed race in tests 2021-01-28 19:17:46 +03:00
kssenii
9c7881f4c9 Fix 2021-01-28 10:30:54 +00:00
Maksim Kita
03eec39719
Merge pull request #19712 from kitaisreal/added-functions-parse-date-time-best-effort-us-or-zero-or-null
Added functions parseDateTimeBestEffortUSOrZero, parseDateTimeBestEffortUSOrNull
2021-01-28 11:13:45 +03:00
Alexey Milovidov
9e1c1157b5 Fix error 2021-01-28 04:08:48 +03:00
Alexey Milovidov
d69af4333d Better asserts 2021-01-28 03:46:12 +03:00
Alexey Milovidov
b0b4ccbc6c Merge branch 'master' into unicode-asan 2021-01-28 03:37:17 +03:00
alexey-milovidov
fa48545b87
Merge pull request #19617 from ClickHouse/fix-lc-neighbour
Fix function neighbor for LowCardinality argument.
2021-01-28 03:06:56 +03:00
Maksim Kita
ff371ccdb6 Fixed data race in function DictGetNoType 2021-01-27 23:22:05 +03:00
bharatnc
419c916612 replace strcat with memcpy 2021-01-27 10:16:46 -08:00
Alexey Milovidov
95e15131a8 Fix unsufficient args check (trash code) in StringSearcher 2021-01-27 20:32:59 +03:00
vdimir
36963e0eba
Minor fix 2021-01-27 18:17:42 +03:00
Maksim Kita
9db9ce11dc Added functions parseDateTimeBestEffortUSOrZero, parseDateTimeBestEffortUSOrNull 2021-01-27 17:10:06 +03:00
Nikolai Kochetov
eba2cbfaff
Update neighbor.cpp 2021-01-27 16:26:16 +03:00
Maksim Kita
c4ffa2160f Updated interfaces. Added documentation. 2021-01-27 16:25:27 +03:00
Maksim Kita
7cb7d4dbce Fixed dicitionaries todo 2021-01-27 16:25:27 +03:00
Maksim Kita
498df53ebf Fixed style issues 2021-01-27 16:25:27 +03:00
Maksim Kita
3d0778cba4 FunctionsExternalDictionaries refactored 2021-01-27 16:25:27 +03:00
Maksim Kita
7ded8be0d5 Added Nullable support for FlatDictionary 2021-01-27 16:25:27 +03:00
Maksim Kita
791c7204d7 Fix style issues 2021-01-27 16:25:27 +03:00
Maksim Kita
d61e8c083b Updated RangeHashedDictionary to new interface 2021-01-27 16:25:26 +03:00
Maksim Kita
f24a8eadb2 Updated ComplexKeyHashed dictionary to new interface 2021-01-27 16:25:26 +03:00
Maksim Kita
d16a572eee Updated IDictionaryBase interface 2021-01-27 16:25:26 +03:00
Maksim Kita
7a2f6cd5b9 Dictionaries refactoring to new interface 2021-01-27 16:25:26 +03:00
alexey-milovidov
5e54c9742f
Merge pull request #19683 from ClickHouse/mysql-compatibility
Merging #19387
2021-01-27 13:48:26 +03:00
Maksim Kita
bd81f43ecb
Merge pull request #19672 from ClickHouse/bigint-remove-old-code
Remove old code for BigInt.
2021-01-27 11:28:45 +03:00
Alexey Milovidov
16b7a0e8ad Merge branch 'master' into mysql-compatibility 2021-01-27 05:07:30 +03:00
Maksim Kita
81548e051e
Merge pull request #19527 from ucasFL/sign
add sign math function
2021-01-26 23:57:31 +03:00
alexey-milovidov
e8dedbf210
Merge pull request #19532 from azat/UBsan-report-fixes-v2
Forbid lcm/gcd for floats (and few UBsan reports fixes)
2021-01-26 23:16:54 +03:00
Alexey Milovidov
f3929b151a Remove even more code 2021-01-26 22:04:03 +03:00
Alexey Milovidov
5f13fdddc0 Remove useless code from BigInt 2021-01-26 21:22:40 +03:00
Amos Bird
d6c0479cf9
add normalizeQueryKeepNames and normalizedQueryHashKeepNames (#18910) 2021-01-26 17:51:30 +03:00
vdimir
bcae07128a
Merge pull request #19530 from taiyang-li/length_for_map
enable length for map, which returns keys number in map
2021-01-26 16:21:21 +03:00
vdimir
a4643bcff2
Whitespace fixes 2021-01-26 16:19:13 +03:00
feng lv
35125c1b33 rewrite 2021-01-26 11:26:15 +00:00
Nikolai Kochetov
d821cf11f8 Fix function neighbor for LowCardinality argument. 2021-01-26 13:31:29 +03:00
Maksim Kita
463a48dfe3
Merge pull request #19533 from kitaisreal/multi-if-constant-result-support
Function multiIf constant result support
2021-01-26 12:44:23 +03:00
Azat Khuzhin
27a5794795 Fix UBsan report in lcm()/gcd()
Changelog:
- Check against INT64_MIN/INT64_MAX
- Check against std::numeric_limits<>::min/max
- Move common code into separate header - GCDLCMImpl.h
- Forbid floats

UBsan report [1].

  [1]: https://clickhouse-test-reports.s3.yandex.net/19466/cb30a02540a0f223df6668c5f88ff84aa666ff54/fuzzer_ubsan/report.html#fail1
2021-01-26 08:33:49 +03:00
bharatnc
db8975c38f remove redundant strcpy call 2021-01-25 17:38:55 -08:00
bharatnc
fc8e22075e refactor code to not use strings 2021-01-25 17:38:55 -08:00
bharatnc
7abedaeaa0 simplify logic flow 2021-01-25 17:38:55 -08:00
bharatnc
562d01e8d8 fix code and rebase 2021-01-25 17:38:55 -08:00
bharatnc
9152a7a4be init - make toIPv6 parse IPv4 addresses 2021-01-25 17:38:55 -08:00
Anton Popov
f203a33a8f
Merge pull request #19515 from hexiaoting/map_functions_fix
Bug fix : support const column processing in mapContains, mapKeys, mapValues functions
2021-01-25 17:30:59 +03:00
dankondr
fb268ec339 Add toMinute MySQL compatibility alias 2021-01-25 16:35:58 +03:00
dankondr
23e86a57d8 Add toSecond MySQL compatibility alias 2021-01-25 16:26:38 +03:00
dankondr
8ca52f9894 Add toQuarter MySQL compatibility alias 2021-01-25 16:24:06 +03:00
dankondr
f49c8779a8 Add repeat MySQL compatibility alias 2021-01-25 16:20:40 +03:00
dankondr
d7c5dd3767 Add toYear MySQL compatibility alias 2021-01-25 16:00:11 +03:00
dankondr
8f115f2923 Add toMonth MySQL compatibility alias 2021-01-25 15:59:49 +03:00
taiyang-li
586def7fa3 enable empty/notEmpty for map data type 2021-01-25 18:31:39 +08:00
Maksim Kita
ec5d541a66 Fixed style issues 2021-01-25 11:08:10 +03:00
alexey-milovidov
ba3e064a63
Merge pull request #19371 from kssenii/test-coverage-with-factories
test coverage with factories
2021-01-25 07:11:09 +03:00
Maksim Kita
dac6cceac1 Function multiIf constant result support 2021-01-25 00:35:49 +03:00
alexey-milovidov
77af612bc5
Merge pull request #19466 from azat/UBsan-report-fixes
UBsan report fixes (arraySlice, addMinutes/addHours/addWeeks/addDays, sumWithOverflow(Decimal))
2021-01-24 22:27:15 +03:00
taiyang-li
f51c3ee9a3 enable length for map, which returns keys number in map 2021-01-24 22:54:08 +08:00
feng lv
fdc6abaaa1 fix 2021-01-24 09:30:25 +00:00
feng lv
667119918e add sign math function 2021-01-24 05:18:59 +00:00
hexiaoting
0f05b0ac9a Add Const column test cases for mapContains/Keys/Values 2021-01-23 22:53:08 +08:00
hexiaoting
143b84240e Add const column test case for mapKeys and mapValues 2021-01-23 22:48:14 +08:00
keenwolf
c56750c9ce Remove ErrorCodes unused 2021-01-23 21:43:27 +08:00
kssenii
a98c6d333c Make sure not to log non-existent objects 2021-01-23 12:05:37 +00:00
alexey-milovidov
c3fc1d83dc
Merge branch 'master' into aes-fix-strange-code 2021-01-23 12:14:17 +03:00
alexey-milovidov
4fdb86cccf
Merge pull request #19467 from ClickHouse/aes-remove-complications
Remove complications from FunctionsAES
2021-01-23 12:04:16 +03:00
alexey-milovidov
40c9b0ae1b
Merge pull request #19461 from ClickHouse/great-circle-distance-ubsan
Avoid UBSan report in greatCircleDistance
2021-01-23 12:03:02 +03:00
alexey-milovidov
bbaa0786d9
Merge pull request #19460 from ClickHouse/running-difference-ubsan
Fix UBSan report in runningDifference
2021-01-23 12:02:48 +03:00
alexey-milovidov
474ff29ded
Merge pull request #19459 from ClickHouse/array-slice-ubsan
Fix UBSan report in arraySlice and substring
2021-01-23 12:02:34 +03:00
keenwolf
1543829259 Clean some comments 2021-01-23 16:53:43 +08:00
Maksim Kita
f5deb6d523
Merge pull request #19354 from kitaisreal/accurate-cast-or-null-fixed-unitialized-values
Function accurateCastOrNull fixed unitialized values for numeric cast
2021-01-23 10:58:52 +03:00
Azat Khuzhin
86ead0f0a9 Suppress UBsan for addMinutes/addHours/addWeeks with inf
https://clickhouse-test-reports.s3.yandex.net/19466/bb6f775b89da564cff9892a2443332a758e884c0/fuzzer_ubsan/report.html#fail1
2021-01-23 08:31:20 +03:00
alexey-milovidov
feebf64cb1
Merge pull request #19397 from ClickHouse/aes-msan
Fix MSan report in AES functions
2021-01-23 04:47:36 +03:00
Alexey Milovidov
9a28823041 Additions 2021-01-23 03:14:16 +03:00
Alexey Milovidov
f7db6e10d3 Fix very strange code in AES functions 2021-01-23 02:35:40 +03:00
Alexey Milovidov
bbe3c54f34 Merge branch 'aes-msan' into aes-remove-complications 2021-01-23 00:48:45 +03:00
Alexey Milovidov
9ee9d7293a Remove complications from FunctionsAES 2021-01-23 00:48:03 +03:00
Azat Khuzhin
bb6f775b89 Fix UBsan report in arraySlice (with INT64_MIN as offset)
- arraySlice([], INT64_MIN) -- FunctionArraySlice::executeImpl

Found with fuzzer [1].

  [1]: https://clickhouse-test-reports.s3.yandex.net/19378/2c42600cf9bd8e9962b5b5a0ebb4bf11a10887ea/fuzzer_ubsan/report.html#fail1

v2: removed fixes that is already included into #19459
    - arraySlice(groupArray([]), INT64_MIN) -- sliceDynamicOffsetUnbounded
2021-01-23 00:25:50 +03:00
Azat Khuzhin
f2910deec2 Fix UBsan report in date functions
Found with fuzzer [1]:

  [1]: https://clickhouse-test-reports.s3.yandex.net/19381/95c9e57ec13e450ec6535cf723f504a2e68e3e2c/fuzzer_ubsan/report.html#fail1
2021-01-23 00:25:49 +03:00
Alexey Milovidov
0528ca60d6 Avoid UBSan report in greatCircleDistance 2021-01-23 00:03:59 +03:00
Alexey Milovidov
4047542b61 Fix UBSan report in runningDifference 2021-01-22 23:46:51 +03:00
Alexey Milovidov
ae8de8259f Fix UBSan report in substring 2021-01-22 23:40:04 +03:00
Alexey Milovidov
fb71a0704e Fix UBSan report in arraySlice 2021-01-22 23:35:16 +03:00
alexey-milovidov
3431e39587
Merge pull request #19393 from ClickHouse/extract-all-groups-fail-fast
Fail fast in incorrect usage of extractAllGroups
2021-01-22 17:24:13 +03:00
Maksim Kita
d712748304 Function accurateCastOrNull fixed unitialized values for numeric cast 2021-01-22 16:24:51 +03:00
kssenii
6dc32ae4cb More correct for functions and aggr. functions 2021-01-22 11:58:29 +00:00
Alexander Kuzmenkov
8b9105bf39
Merge pull request #18446 from azat/constant-folding
Fix constant folding when the result is unknown
2021-01-22 13:26:24 +03:00
Nikolai Kochetov
90e9c63fa4
Merge pull request #19316 from ClickHouse/fix-now64
Refactor now64
2021-01-22 13:21:16 +03:00
kssenii
bb91005356 Fix failing stateless test 2021-01-22 09:02:58 +00:00
keenwolf
8461e89645 Remove getArgumentsThatAreAlwaysConstant, also add 2 testcases 2021-01-22 11:43:31 +08:00
Alexey Milovidov
56d09886e2 Fix MSan report in AES functions 2021-01-22 04:08:10 +03:00
Alexey Milovidov
e38ff3517d Fail fast in incorrect usage of extractAllGroups 2021-01-22 02:48:26 +03:00
dankondr
970c75860c Revert "Make extract case insensitive"
This reverts commit c409508f
2021-01-22 02:36:37 +03:00
dankondr
bc52fe2cff Revert "Make in case insensitive"
This reverts commit df50b931
2021-01-22 02:32:56 +03:00
dankondr
41d75249a2 Add IP num/string conversions MySQL compatibility alias
Functions:
- FunctionIPv6NumToString
- FunctionIPv6StringToNum
- FunctionIPv4NumToString
- FunctionIPv4StringToNum
2021-01-22 00:19:14 +03:00
kssenii
daab2c91bb Better 2021-01-21 21:15:11 +00:00
dankondr
89b394ea57 Add toDate MySQL compatibility alias 2021-01-22 00:02:35 +03:00
dankondr
e066add261 Add toDayOfMonth MySQL compatibility alias 2021-01-21 23:49:06 +03:00
dankondr
27bf42b67f Add toDayOfWeek MySQL compatibility alias 2021-01-21 23:46:00 +03:00
dankondr
3025a09f7e Add toDayOfYear MySQL compatibility alias 2021-01-21 23:42:08 +03:00
dankondr
685b4107d2 Add base64Decode MySQL compatibility alias 2021-01-21 23:36:26 +03:00
alexey-milovidov
37c345f55e
Merge pull request #19347 from ClickHouse/array-element-ubsan
Avoid UBSan report in arrayElement
2021-01-21 23:34:19 +03:00
dankondr
54bef0568b Add base64Encode MySQL compatibility alias 2021-01-21 23:33:15 +03:00
dankondr
b8661e5caf Add toHour MySQL compatibility alias 2021-01-21 23:28:20 +03:00
dankondr
c409508fbb Make extract case insensitive 2021-01-21 23:05:38 +03:00
dankondr
661a00da4e Make hex case insensitive 2021-01-21 23:03:13 +03:00
dankondr
df50b93159 Make in case insensitive 2021-01-21 22:55:16 +03:00
dankondr
8c963c03cf Make isNull case insensitive 2021-01-21 22:44:10 +03:00
Azat Khuzhin
ea7528b853 identity: mark it as non suitable for constant folding 2021-01-21 21:22:23 +03:00
Azat Khuzhin
82f6c642ae identity: simple functions in oneline (coding style) 2021-01-21 21:22:23 +03:00
Nikita Mikhaylov
b93732e441
Merge pull request #18788 from hexiaoting/map_functions
Introduce mapContains, mapKeys, mapValues functions for Map data type
2021-01-21 21:02:03 +03:00
Nikita Mikhaylov
e8a9768bd0
Update map.cpp 2021-01-21 20:47:57 +03:00
kssenii
c1702f34ee Add factories info into system.query_log 2021-01-21 15:46:37 +00:00
Alexey Milovidov
4968f1733e Annotations for DateLUT 2021-01-21 15:01:24 +03:00
Alexey Milovidov
2cd04e8923 Fix UBSan report in arraySum 2021-01-21 14:43:33 +03:00
Nikolai Kochetov
9ae3628b66 Fix test. 2021-01-21 11:49:40 +03:00
Nikolai Kochetov
0d20b4575d Fix test. 2021-01-21 11:41:32 +03:00
Alexey Milovidov
110089086b Fix UBSan report in GatherUtils #19287 2021-01-21 11:41:19 +03:00
Alexey Milovidov
1bb8cc5c9a Avoid UBSan report in arrayElement 2021-01-21 11:10:46 +03:00
feng lv
2094eae23d fix sleep with infinite input 2021-01-21 04:49:35 +00:00
Ivan Lezhankin
2bb28fbc14 Print inline frames augmenting usual ones 2021-01-20 17:05:25 +03:00
Nikolai Kochetov
6cf4ed5c42 Refactor now64 2021-01-20 16:18:41 +03:00
Ivan Lezhankin
3fb50dfa1b Initial implementation of inline frames 2021-01-19 15:34:27 +03:00
keenwolf
47fb320651 Do little fix for Style check 2021-01-19 14:04:25 +08:00
keenwolf
8463835c41 Remove extra semicolon 2021-01-19 11:47:40 +08:00
jianmei zhang
e967b6bf49 add a %Q replacement for formatDateTime 2021-01-18 12:16:32 +08:00
hexiaoting
6a78b10e0b fix build error 2021-01-18 10:58:07 +08:00
hexiaoting
28436a73b7 Merge remote-tracking branch 'origin/master' into map_functions 2021-01-18 10:20:36 +08:00
keenwolf
2379902e2a Return data type revise 2021-01-17 14:27:18 +08:00
keenwolf
8f3cdb69e6 Delete several spaces just formatting 2021-01-17 03:07:42 +08:00
keenwolf
fe78b31ed4 Move register to the Misc group 2021-01-16 20:35:41 +08:00
keenwolf
77e74b397c Add file access check, also give another read method in comments for reference 2021-01-16 18:43:56 +08:00
keenwolf
29aa0da28c Make filepath check done but with infile func, need to modify the ld path 2021-01-16 14:55:59 +08:00
keenwolf
2d22772455 Handle with context pass 2021-01-16 11:27:31 +08:00
alexey-milovidov
80c937b64c
Merge pull request #19084 from ClickHouse/simplifuy-tuple-hamming-distance
Simplify tupleHammingDistance
2021-01-15 13:02:09 +03:00
keenwolf
d98cac0dd3 Add another method for reading file at once to avoid frequently realloc and mem move 2021-01-15 14:27:38 +08:00
Alexey Milovidov
9db1299f41 Improve code 2021-01-15 00:25:19 +03:00
Alexey Milovidov
da9bd043d4 Merge branch 'master' into nautaa-master 2021-01-14 23:09:33 +03:00
Nikolai Kochetov
d120801df3 Fix style 2021-01-14 20:16:31 +03:00
Nikolai Kochetov
4bb0bd16e1 Simplify tupleHammingDistance 2021-01-14 19:02:17 +03:00
keenwolf
4b6cc4ea4b Add Function to read file as a String, Using ReadBuffer. 2021-01-14 23:48:38 +08:00
Nikolai Kochetov
fc57ca5f50 Simplify tupleHammingDistance 2021-01-14 18:34:44 +03:00
Nikolai Kochetov
3ee4e9eda8 Simplify tupleHammingDistance 2021-01-14 18:29:42 +03:00
Nikolai Kochetov
c65f79d69b Simplify tupleHammingDistance 2021-01-14 17:29:51 +03:00
Nikolai Kochetov
d8b9278193
Merge pull request #19016 from ClickHouse/fix-ignore-with-lc-arg
Fix `ignore` function with LowCardinality argument
2021-01-14 16:50:54 +03:00
keenwolf
53e483d36c Small fix 2021-01-14 20:09:13 +08:00
keenwolf
791a4cfb52 Small fix 2021-01-14 19:46:19 +08:00
keenwolf
e95b8089cd Make code clean including properly exception handle 2021-01-14 18:44:16 +08:00
root
701b61dced Function arguments declaration Upgrade with super class 2021-01-14 13:36:22 +08:00
root
66e1072c2c Add the function to read file as a String. 2021-01-14 00:46:55 +08:00
Nikolai Kochetov
33d007dc46 Fix function ignore with LowCardinality argument. 2021-01-13 17:45:19 +03:00
sundyli
e9a18fbd3a
Update FunctionsBitmap.h 2021-01-13 20:49:06 +08:00
sundyli
073379627c
Update FunctionsBitmap.h 2021-01-13 20:47:40 +08:00
sundy-li
7cfbc90fa5 Fix typo 2021-01-12 10:00:03 +00:00
sundy-li
e6351cf966 Add UInt64 Support for bitmapTransform/bitmapSubsetInRange/bitmapSubsetLimit 2021-01-12 17:13:43 +08:00
sundy-li
20ce82b86d Better exceptions 2021-01-12 14:52:31 +08:00
sundy-li
72e9484dac Fix a big bug 2021-01-12 14:52:31 +08:00
sundy-li
9c3c1d13ab Add bitmapContains support for all UInt types 2021-01-12 14:52:31 +08:00
tavplubix
00d240853d
Merge pull request #18718 from zhang2014/fix/ISSUES-7690
ISSUES-7690 try fix nullable string type convert to decimal type
2021-01-11 16:18:56 +03:00
nautaa
a0982bfd55 update decodeXMLComponent.cpp 2021-01-10 16:21:21 +08:00
nautaa
d7456f8ddd update decodeXMLComponent.cpp 2021-01-10 16:18:26 +08:00
nautaa
445bc1c65c fix bug 2021-01-09 22:39:25 +08:00
nautaa
8359289283 add unicode decode 2021-01-09 19:08:19 +08:00
alexey-milovidov
41fe290b2b
Update map.cpp 2021-01-09 07:15:28 +03:00
zhang2014
cccafcfc3d try fix build failure 2021-01-08 18:29:51 +08:00
alexey-milovidov
7e1d5b0387
Update FunctionsStringHash.h 2021-01-07 00:10:54 +03:00
Azat Khuzhin
6261d4135c Add sanity checks for Sim/Min hash arguments
Fixes: #18799
Fixes: #18524
2021-01-06 22:38:05 +03:00
hexiaoting
31105670a8 Introduce mapContains, mapKeys, mapValues functions for Map data type 2021-01-06 18:53:14 +08:00
nautaa
6ecf505f48 fix typos 2021-01-05 23:08:36 +08:00
nautaa
709556832f fix typos 2021-01-05 22:28:09 +08:00
nautaa
48ac1ce81a fix 2021-01-05 21:41:18 +08:00
nautaa
ec8e3f2409 add decode numeric entities 2021-01-05 21:08:36 +08:00
nautaa
2acecb010f Merge branch 'master' of https://github.com/ClickHouse/ClickHouse 2021-01-05 14:12:36 +08:00
Alexey Milovidov
f5c81a5c72 Merge branch 'master' into uuid-fuzz 2021-01-05 02:51:36 +03:00
Alexey Milovidov
039edbb724 Don't allow conversion between UUID and numeric types 2021-01-05 01:33:59 +03:00
zhang2014
84ddff92f2 ISSUES-7690 try fix nullable string type convert to decimal type 2021-01-04 20:40:33 +08:00
Alexey Milovidov
38d982b199 Merge branch 'master' into harmful 2021-01-04 04:06:46 +03:00
Alexey Milovidov
501785c397 Merge branch 'master' into function_byte_size 2021-01-03 18:07:40 +03:00
nauta
820cdf407b Merge branch 'master' of https://github.com/ClickHouse/ClickHouse 2021-01-03 18:26:29 +08:00
Alexey Milovidov
f2ae42b857 utils/generate-ya-make/generate-ya-make.sh 2021-01-03 04:37:10 +03:00
Alexey Milovidov
25b100761f Merge branch 'master' into function_byte_size 2021-01-03 04:36:48 +03:00
Alexey Milovidov
a368a6802d Move implementation inside out 2021-01-03 01:58:10 +03:00
Alexey Milovidov
820af3a48d Simplify code of function "bar" 2021-01-02 23:40:15 +03:00
pingyu
4cf7f0c607 style fix 2021-01-02 01:00:14 +08:00
pingyu
df188aa49d bug fix 2021-01-02 00:28:32 +08:00
pingyu
cc2dc43b0d optimize vec_size for first argument 2021-01-02 00:24:47 +08:00
pingyu
dc72624111 wip 2021-01-01 23:03:50 +08:00
pingyu
b8b3c1f166 wip 2021-01-01 01:14:21 +08:00
Denis Glazachev
f9d5d3dcd3 Remove auto in function parameters 2020-12-31 20:17:51 +04:00
alexey-milovidov
80ae2b5138
Merge pull request #18656 from ClickHouse/remove-sumbur
Remove sumburConsistentHash function
2020-12-31 14:46:52 +03:00
alexey-milovidov
81f8ee5fd8
Merge pull request #17569 from vdimir/speedup-apply-cidr-mask-v6
Speedup applyCIDRMask for IPv6
2020-12-31 03:31:43 +03:00
Alexey Milovidov
98687ff8f4 Merge branch 'master' into harmful 2020-12-31 02:25:28 +03:00
Alexey Milovidov
aa2e89611d Remove sumburConsistentHash function 2020-12-31 02:22:04 +03:00
Alexey Milovidov
be884a89f8 Minor fixes for min/sim hash 2020-12-29 13:16:43 +03:00
pingyu
d12e29cfa9 bug fix; codes refinement 2020-12-29 01:36:19 +08:00
alexey-milovidov
48050a3ed4
Merge pull request #18524 from ClickHouse/sim-hash-fixes
Sim/Min Hash fixes
2020-12-28 18:01:12 +03:00
pingyu
d81392c539 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into func_byte_size 2020-12-28 19:32:08 +08:00
pingyu
d2ce110a6d bug fix 2020-12-28 19:29:54 +08:00
alexey-milovidov
bf3187010b
Merge pull request #18145 from myrrc/improvement/multiply-decimals-and-floats
Allow multiplication of Decimal and Float
2020-12-27 22:37:09 +03:00
alexey-milovidov
b086a78f81
Update FunctionBinaryArithmetic.h 2020-12-27 22:35:38 +03:00
Nikolai Kochetov
ca6ddfafc4 Fix style 2020-12-27 16:55:55 +03:00
Nikolai Kochetov
be4832de6d Try fix test. 2020-12-27 12:54:59 +03:00
pingyu
f8e55a9c9b wip #17540 2020-12-27 12:11:38 +08:00
vdimir
b1d7778287 Merge remote-tracking branch 'upstream/master' into speedup-apply-cidr-mask-v6 2020-12-26 19:53:06 +00:00
nauta
6cdab36a7d fix bug 2020-12-26 20:18:48 +08:00
alexey-milovidov
839a4bfbd8
Update decodeXMLComponent.cpp 2020-12-26 15:01:14 +03:00
nauta
d7f73c83da Merge branch 'master' of https://github.com/ClickHouse/ClickHouse 2020-12-26 16:07:36 +08:00
nauta
b413b450f5 add decode XML function 2020-12-26 16:00:35 +08:00
alexey-milovidov
8eb9788955
Merge pull request #18523 from CurtizJ/fix-cast-to-map
Fix cast to map from tuple of arrays with unequal sizes
2020-12-26 10:00:01 +03:00
pingyu
bb0558a01e Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into func_byte_size 2020-12-26 11:25:53 +08:00
Nikolai Kochetov
f1d433be4c Add min word size. 2020-12-25 21:03:08 +03:00
Nikolai Kochetov
31191d8396 Add min word size. 2020-12-25 20:58:44 +03:00
Nikolai Kochetov
f8854fed5c Update test. 2020-12-25 20:30:44 +03:00
Anton Popov
721bb60edd fix cast to map from tuple of arrays with unequal sizes 2020-12-25 20:12:47 +03:00
Nikolai Kochetov
63de06fa31 Fixing build. 2020-12-25 20:02:19 +03:00
Nikolai Kochetov
b53442e521 Fixing build. 2020-12-25 20:00:42 +03:00
Nikolai Kochetov
2c06a65e1c Fixing build. 2020-12-25 19:56:51 +03:00
Nikolai Kochetov
309b0a860a Fixing build. 2020-12-25 19:55:15 +03:00
Nikolai Kochetov
ba5d2617ff Fixing build. 2020-12-25 19:49:55 +03:00
myrrc
80b96f2c23 Merge remote-tracking branch 'upstream/master' into improvement/multiply-decimals-and-floats 2020-12-25 19:34:26 +03:00
myrrc
e335ba29fc fixing build on gcc 2020-12-25 19:32:59 +03:00
Nikolai Kochetov
7e7998f121 Fixing build. 2020-12-25 19:11:05 +03:00
Nikolai Kochetov
281d87a007 Fixing build. 2020-12-25 19:04:55 +03:00