Commit Graph

2380 Commits

Author SHA1 Message Date
Azat Khuzhin
c7e5cd7cda Fix arrayCumSumNonNegative() for consts 2021-09-11 22:39:30 +03:00
Azat Khuzhin
6403cbee46 Fix arrayDifference() for consts 2021-09-11 22:39:30 +03:00
Azat Khuzhin
3c75844a79 Fix SIGSEGV for arrayCompact() with consts
arrayCompact() implements useDefaultImplementationForConstants() but it
is a no-op for FunctionArrayMapped, fix this.

CI report [1]:

  [1]: https://clickhouse-test-reports.s3.yandex.net/28890/baac2e561cfb05bc174f0bd25571e607d19c7463/fuzzer_asan/report.html#fail1
2021-09-11 22:39:20 +03:00
bharatnc
503b7a59f0 fix getNumberOfArguments() for s2Rect functions
This fixes the value returned by the getNumberOfArguments() by the
s2RectAdd and the s2RectContains functions. Only 3 arguments are
used by these functions and not 4:

- low s2Point of rectangle
- high s2Point of rectangle
- given s2Point

The given s2Point is used to groow the size of the bounding rectangle to
include the given S2Point in case of the s2RectAdd function. In case
of s2RectContains, the function determines if the bounded rectangle
contains the given point.

PS: I wonder if it's more apt to call rectAdd as rectGrow since
it's used to grow the size of a given rectangle.
2021-09-06 14:19:18 -07:00
Maksim Kita
685d061c4e Fixes tests 2021-09-04 22:13:20 +03:00
Maksim Kita
bcbc830b05 Function dictGet small fix 2021-09-04 15:28:11 +03:00
Maksim Kita
f076cc69b4
Merge pull request #28530 from kitaisreal/dict-get-default-implementation-for-nulls
Function dictGet default implementation for nulls
2021-09-04 13:29:22 +03:00
Maksim Kita
c329f04b22 Fixed tests 2021-09-03 23:08:55 +03:00
Kruglov Pavel
f559c34113
Merge pull request #28302 from amosbird/binaryconstantwrap
Always monotonic for non-zero division
2021-09-03 20:02:54 +03:00
Maksim Kita
8fbef6c69d Function dictGet default implementation for nulls 2021-09-02 18:30:55 +03:00
Dmitrii Kovalkov
8acf0fa16a run generate-ya-make 2021-08-30 10:57:40 +03:00
Amos Bird
4624bf70b0
Always monotonic for non-zero division 2021-08-28 23:33:18 +08:00
Kruglov Pavel
3644f2a754
Merge pull request #28096 from CurtizJ/map-keys-conversion
Support implicit conversions between index in operator [] and key of Map
2021-08-26 16:31:12 +03:00
sdk2
d9308749de
Update src/Functions/GatherUtils/Sources.h 2021-08-26 18:52:17 +08:00
Anton Popov
47bb5eb330 support implicit conversions between index in operator [] and key of Map 2021-08-24 21:16:06 +03:00
Maksim Kita
82ba24cd10 Merge branch 'master' into create-user-defined-lambda-function 2021-08-24 19:12:32 +03:00
Vladimir C
98acccbdcc
Merge branch 'master' into s3partitionedwrite 2021-08-24 10:03:57 +03:00
Maksim Kita
010d72593f Fixed integration tests 2021-08-23 17:31:58 +03:00
Ilya Yatsishin
315a835c95
Merge pull request #28020 from qoega/fix-style 2021-08-23 15:48:41 +03:00
Yatsishin Ilya
17bb938541 fix style 2021-08-23 13:59:01 +03:00
Maksim Kita
2a6aa50d49 Merge branch 'master' into create-user-defined-lambda-function 2021-08-23 11:08:49 +03:00
vdimir
2c725a19fa Move isValidUTF8Naive from Functions to Common 2021-08-23 09:22:15 +03:00
Vladimir Chebotarev
6e600df160 Rolled back changes in Functions. 2021-08-23 09:22:15 +03:00
Vladimir Chebotarev
3c08a4a23b Rolled back changes in Functions. 2021-08-23 09:22:15 +03:00
Vladimir Chebotarev
a2bbf98253 Update. 2021-08-23 09:22:14 +03:00
Vladimir Chebotarev
0479edd47e Improved validation of S3 buckets and keys. 2021-08-23 09:22:14 +03:00
alexey-milovidov
c8e0be6343
Merge pull request #27982 from vitlibar/function-get-setting-get-rid-of-mutable
Get rid of mutable value in FunctionGetSetting.
2021-08-22 20:10:38 +03:00
Vitaly Baranov
d18cf0eb51 Get rid of mutable value in FunctionGetSetting. 2021-08-22 10:29:56 +03:00
alexey-milovidov
e620ea15bd
Merge pull request #27900 from amosbird/newf
getServerPort function
2021-08-21 22:40:25 +03:00
alexey-milovidov
40a4a6663e
Merge pull request #27830 from zhanglistar/master
Add sha512 hash functions
2021-08-21 22:38:06 +03:00
alexey-milovidov
fef442ba34
Merge pull request #27939 from amosbird/jsonextractstring
Fix JSONExtract String with null value.
2021-08-21 22:37:28 +03:00
Amos Bird
997acdc39e
getPort function 2021-08-21 20:33:36 +08:00
Amos Bird
4d3db821bb
Fix JSONExtract String with null value. 2021-08-21 17:03:16 +08:00
Maksim Kita
5f2b28639f Merge branch 'master' into create-user-defined-lambda-function 2021-08-20 11:53:08 +03:00
Kseniia Sumarokova
273b8b9bc1
Merge pull request #27704 from jasine/master
feat: add conversions  between snowflake id and  dateTime(dateTime64)
2021-08-20 10:48:40 +03:00
tavplubix
9ef45d92c2
Merge pull request #27755 from ClickHouse/ncb/server_uuid
Merging  #20089
2021-08-19 14:59:18 +03:00
Kseniia Sumarokova
3d05014da1
Update FunctionSnowflake.h 2021-08-19 12:54:03 +03:00
Nikolai Kochetov
3e44ef437e
Merge pull request #26639 from ClickHouse/fix-bad-cast
Fix bad cast
2021-08-19 11:17:26 +03:00
listar
fae6ae1c7b 1. add tests and fix a length bug. 2021-08-19 07:56:47 +00:00
listar
75f47725e2 1. add header of sha512 hash functions. 2021-08-19 02:57:20 +00:00
listar
74bfb006da 1. add sha512 hash functions 2021-08-19 02:49:35 +00:00
Maksim Kita
4b8aa69e04 Fixed style check 2021-08-19 01:02:00 +03:00
Maksim Kita
01682a86b3 Updated user defined functions implementation 2021-08-19 00:54:55 +03:00
ubuntu
4d4dae79f0 fix: build issue 2021-08-19 00:47:40 +08:00
Alexander Tokmakov
31d75c9c38 fix split build 2021-08-18 15:15:31 +03:00
Kruglov Pavel
9532e2f962
Merge branch 'master' into nullable-decimal 2021-08-18 14:03:20 +03:00
Nikolai Kochetov
a46fe11e2c Try fix test_mutations_with_merge_background_task 2021-08-18 13:30:02 +03:00
Maksim Kita
419cecdeaf
Merge pull request #27795 from kitaisreal/dictionaries-key-types-refactoring
Dictionaries key types refactoring
2021-08-18 10:30:21 +03:00
alexey-milovidov
eb3bbdfab5
Merge pull request #27680 from ClickHouse/decimal-no-trailing-zeros
Remove trailing zeros from Decimal serialization #15794
2021-08-18 05:24:13 +03:00
Maksim Kita
ce72a0c9c3 Fixed build 2021-08-17 23:59:50 +03:00