Commit Graph

2560 Commits

Author SHA1 Message Date
bharatnc
494c59d2c0 Add more review fixes for h3GetFaces 2021-09-23 08:58:53 -07:00
Alexey Boykov
a429cbe4c9 Style 2021-09-23 16:42:06 +03:00
Alexey Boykov
e0963c7666 Cosine null fix 2021-09-23 15:54:00 +03:00
bharatnc
727182c3a4 Add review fixes 2021-09-22 22:50:33 -07:00
Maksim Kita
c73808615b Function has support map type 2021-09-22 19:08:08 +03:00
bharatnc
bdd9a4a352 Fix style check 2021-09-21 23:40:56 -07:00
bharatnc
208dfc998a H3 - fix logic to return icosahedron faces 2021-09-21 17:39:59 -07:00
bharatnc
8203c5462a Fix a small comment 2021-09-21 16:45:29 -07:00
bharatnc
32baa1ddae Fix getH3Faces logic 2021-09-21 14:08:09 -07:00
bharatnc
b4e86e98db Fix typo 2021-09-20 22:57:43 -07:00
bharatnc
49e6023d65 H3 - add func H3GetFaces 2021-09-20 19:20:02 -07:00
bharatnc
536f3a52d9 H3 - Add func H3IsPentagon 2021-09-20 18:50:45 -07:00
bharatnc
8a8ff94b99 Update ya.make file 2021-09-20 18:32:26 -07:00
bharatnc
51e45050c1 Update outdated ya.make files
This runs the `utils/generate-ya-make/generate-ya-make.sh` script to
update the ya.make files that are not updated.

I wonder why they were not updated and how it was missed.
2021-09-20 18:28:07 -07:00
bharatnc
1766702a60 H3 - add func ResIsClassIII 2021-09-20 18:18:10 -07:00
tavplubix
66bc619c3e
Merge pull request #28983 from ClickHouse/func_zookeeper_session_uptime
Add function zookeeperSessionUptime(), fix some flaky tests
2021-09-20 14:47:49 +03:00
tavplubix
922cf7ee20
Merge pull request #28373 from ClickHouse/tables_topsort
Resolve table dependencies on metadata loading
2021-09-20 14:46:47 +03:00
alexey-milovidov
3eed1f06ea
Merge pull request #28952 from fuzzERot/h3-functions
Implementation of h3ToGeoBoundary
2021-09-18 14:27:11 +03:00
Vladimir C
4eaf2969e2
Merge pull request #28332 from OodounaikingoO/master 2021-09-17 14:46:20 +03:00
Alexey Boykov
1215c25bd7
Merge branch 'master' into numeric_tuple_functions 2021-09-16 15:46:18 +03:00
Alexey Boykov
53d7649c33 Constant p 2021-09-16 15:43:10 +03:00
tavplubix
23f54658a6
Update serverConstants.cpp 2021-09-16 12:15:22 +03:00
mergify[bot]
d4ac1fdba0
Merge branch 'master' into h3-functions 2021-09-15 21:24:31 +00:00
alexey-milovidov
10a314dd46
Update h3ToGeoBoundary.cpp 2021-09-16 00:24:12 +03:00
Alexander Tokmakov
d0c3b87d84 improvements 2021-09-16 00:17:54 +03:00
Alexander Tokmakov
5c605189ac Merge branch 'master' into func_zookeeper_session_uptime 2021-09-15 21:10:06 +03:00
chenjian
f99c2da4d8 fix build and style error 2021-09-15 18:03:41 +08:00
小路
9416c5e74d
Remove outdated comment. 2021-09-14 11:22:34 +08:00
Alexander Tokmakov
df56e99b87 fixes after review 2021-09-13 22:11:16 +03:00
Anton Popov
2b49f42bca
fix build 2021-09-13 20:37:35 +03:00
Anton Popov
671f98506a
fix build 2021-09-13 20:34:36 +03:00
Anton Popov
7ec5c73c9b
Merge branch 'master' into issues_27763 2021-09-13 20:33:29 +03:00
Alexander Tokmakov
ee8cb93004 add function zookeeperSessionUptime() 2021-09-13 15:19:37 +03:00
alexey-milovidov
4f073a436b
Update h3ToGeoBoundary.cpp 2021-09-13 07:22:52 +03:00
fuzzERot
dba428c443 Implementation of h3ToGeoBoundary 2021-09-12 23:47:51 +03:00
Sergei Semin
12e24a23d3
Merge branch 'master' into fix-build-clang-13-2 2021-09-12 19:30:55 +03:00
alexey-milovidov
ea13a8b562
Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum
Improving CH type system with concepts
2021-09-12 15:26:29 +03:00
Mike Kot
1f6fb3f6ea Fix gtest, add Decimal aliases, Typelist solution for bin arithm 2021-09-12 14:26:07 +02:00
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
Mike Kot
3401b32e37 Adapted usage of is_decimal concept 2021-09-11 19:35:12 +02:00
Mike Kot
bce011cb33 Replacing IsDecimalNumber 2021-09-11 00:40:18 +02:00
Mike Kot
c4385a2c40 Simplifying exception messages 2021-09-11 00:40:18 +02:00
Sergei Semin
212182a87c solve problem with TargetSpecific.h 2021-09-09 23:51:47 +03:00
Sergei Semin
14de0c0b0f solve problem with FunctionsCodingIP.cpp 2021-09-09 23:51:47 +03:00
Alexey Boykov
d63a1fbe40 Add aliases 2021-09-09 18:45:05 +03:00
Alexey Boykov
7da26f8f3b NULL support (check description)
Interesting bug or feature: (1, 2) * NULL is NULL, not tuple of NULLs.
2021-09-09 16:07:51 +03:00
Alexey Boykov
89b672b1e5 Style 2021-09-09 15:41:22 +03:00
chenjian
7fe506dc5b add feature/optimize-bitmapAnd 2021-09-07 10:46:13 +00: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
zhangxiao871
0b6ab61633 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2021-09-07 01:22:02 +08:00
zhangxiao871
fe3e786cf2 add bitShiftLeft for FixedString and String integer. 2021-09-07 01:20:12 +08:00
Mike Kot
8e9aacadd1 Initial: replacing hardcoded toString for enums with magic_enum 2021-09-06 16:24:03 +02:00
zhangxiao871
8c30f09a00 Fix PVS check. 2021-09-05 22:08:24 +08:00
zhangxiao871
e73719ab80 Fix FixedString type ConstConst. 2021-09-05 13:21:06 +08:00
Maksim Kita
685d061c4e Fixes tests 2021-09-04 22:13:20 +03:00
zhangxiao871
6d5605e1ee Better support FixedString type and add test case. 2021-09-05 00:41:52 +08: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
Alexey Boykov
75604817b2 unary operator 2021-08-30 20:13:41 +03:00
Alexey Boykov
65804040e4 operators 2021-08-30 19:10:27 +03:00
Alexey Boykov
96f80797b4 cosineDistance 2021-08-30 17:31:37 +03:00
Alexey Boykov
24de78f6f9 Speed up 2021-08-30 16:55:38 +03:00
Alexey Boykov
072104135a Normalize 2021-08-30 15:52:00 +03:00
zhangxiao871
a573f28ecb Try fix USE_EMBEDDED_COMPILER error. 2021-08-30 17:59:32 +08:00
zhangxiao871
7e58d7aad4 Add test and dealing with negative numbers. 2021-08-30 16:15:34 +08:00
Dmitrii Kovalkov
8acf0fa16a run generate-ya-make 2021-08-30 10:57:40 +03:00
zhangxiao871
3b39b82fb7 Bit shift operations for FixedString and String data types. 2021-08-30 15:48:59 +08:00
Amos Bird
4624bf70b0
Always monotonic for non-zero division 2021-08-28 23:33:18 +08:00
Alexey Boykov
91199dc73a Changed operator, fix clarity of test 2021-08-27 20:05:33 +03:00
Alexey Boykov
46596ffc57 Names, tupleOperatorByNumber 2021-08-27 18:44:04 +03:00
Alexey Boykov
85bb176b53 Reduced copy-paste 2021-08-27 18:02:37 +03:00
Alexey Boykov
8b4c5aa876 Reduced copy-paste 2021-08-27 17:31:11 +03:00
Alexey Boykov
229b227328 Distances, interesting tests 2021-08-27 16:14:32 +03:00
Alexey Boykov
6fbdda6dd0 LpNorm 2021-08-26 21:17:44 +03: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
Alexey Boykov
657a8e13f9 max2, min2, LinfNorm 2021-08-26 15:34:46 +03:00
sdk2
d9308749de
Update src/Functions/GatherUtils/Sources.h 2021-08-26 18:52:17 +08:00
Alexey Boykov
eb4970bbc4 L2Norm 2021-08-25 18:44:35 +03:00
Alexey Boykov
ace922c8f6 L1Norm 2021-08-25 17:56:31 +03:00
Alexey Boykov
be7def3377 Reduced copy-paste, dotProduct 2021-08-25 17:02:04 +03: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
Alexey Boykov
f6e306cb28
Merge branch 'ClickHouse:master' into numeric_tuple_functions 2021-08-23 19:16:18 +03:00
Maksim Kita
010d72593f Fixed integration tests 2021-08-23 17:31:58 +03:00
Alexey Boykov
04222f4e0d Divide, negate, test 2021-08-23 16:41:20 +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
Alexey Boykov
ba4da13d5b Style 2021-08-21 00:14:26 +03:00
Alexey Boykov
9a8cdeec29 Deleting cerr 2021-08-20 20:52:27 +03:00
Alexey Boykov
00cd335006 Compatibility 2021-08-20 19:23:51 +03:00
Alexey Boykov
efff19e996
Merge branch 'master' into numeric_tuple_functions 2021-08-20 18:03:14 +03:00
Alexey Boykov
b3bd6b5b29 Operators, refactoring
Added operators, tupleHammingDistance has been refactored
2021-08-20 17:06:57 +03: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
Maksim Kita
6c82ac2024 Fixed tests 2021-08-17 23:59:08 +03:00
Maksim Kita
8403f381da
Merge pull request #23978 from Realist007/feature/create-simple-lambda-function
Feature/create simple lambda function
2021-08-17 21:22:31 +03:00
Maksim Kita
b4f41bd824 Dictionaries key types refactoring 2021-08-17 20:35:43 +03:00
Alexander Tokmakov
df1a4e90a8 Merge branch 'master' into ncb/server_uuid 2021-08-17 19:42:47 +03:00
Pavel Kruglov
bc853d250f Set function divide as suitable for short-circuit in case of Nullable(Decimal) 2021-08-17 16:24:28 +03:00
Alexander Tokmakov
4d71f65082 fix build 2021-08-17 16:24:14 +03:00
Maksim Kita
ad53ffc807
Merge pull request #27629 from kitaisreal/complex-key-range-hashed-dictionary
Added ComplexKeyRangeHashed dictionary
2021-08-17 16:14:18 +03:00
Nikolai Kochetov
98eb619b4b
Merge pull request #23367 from Avogar/short-circuit
Implement short circuit function evaluation
2021-08-17 12:36:07 +03:00
Alexander Tokmakov
9e9fa043ca minor improvements, add test 2021-08-16 21:30:53 +03:00
Maksim Kita
2d24b443f5 Fixed tests 2021-08-16 20:40:57 +03:00
Realist007
63dfa8559f
Merge branch 'master' into feature/create-simple-lambda-function 2021-08-16 16:56:49 +03:00
Pavel Kruglov
7c98fc11b9 Fix performance, make only one setting 2021-08-16 14:30:56 +03:00
Alexey Milovidov
8adaef7c8e Make text format for Decimal tuneable 2021-08-16 11:03:23 +03:00
jasine
aa49f76bf0 fix: style 2021-08-16 00:49:33 +08:00
jasine
b9d8ee125b feat: add conversion between snowflake id and datetime 2021-08-15 22:26:40 +08:00
Maksim Kita
bf6d0150d4 Fixed style check 2021-08-15 12:53:21 +03:00
Maksim Kita
e12820ecb2 Added ComplexKeyRangeHashed dictionary 2021-08-15 12:18:11 +03:00
Alexey Milovidov
15eb68d117 Fix bad cast in arrayIndex #26330 2021-08-15 09:33:08 +03:00
alexey-milovidov
d88cf81d71
Merge branch 'master' into fix-bad-cast 2021-08-15 09:06:42 +03:00
Pavel Kruglov
d5a7db46e6 Fix build 2021-08-13 16:34:16 +03:00
mergify[bot]
319e5af6eb
Merge branch 'master' into short-circuit 2021-08-13 13:01:46 +00:00
Pavel Kruglov
36bea6abb4 Add setting optimize_short_circuit_function_evaluation 2021-08-13 14:48:32 +03:00