Commit Graph

6668 Commits

Author SHA1 Message Date
Alexey Milovidov
47701d690a
Merge pull request #54136 from aiven-sal/aiven-sal/fix_38585
Fix issues in accurateCastOrNull
2023-09-06 19:14:03 +03:00
yariks5s
0c802df855 small improvement 2023-09-06 13:33:11 +00:00
Mikhail Koviazin
f98007a4ed
Replace Turbo-Base64 with aklomp/base64
Closes #31643
2023-09-06 13:01:38 +00:00
Nikolay Degterinsky
42ce81e62a
Merge pull request #54339 from arenadata/ADQM-1158
Improved protection from dereferencing of nullptr
2023-09-06 12:25:57 +02:00
Salvatore Mesoraca
f61390e12c
Fix style issue 2023-09-06 08:42:45 +02:00
Alexey Gerasimchuck
076a6e7476 reduced code amount 2023-09-06 02:07:39 +00:00
Alexey Gerasimchuck
686f018183 Improved protection from dereferencing of nullptr 2023-09-06 01:46:58 +00:00
Salvatore Mesoraca
058630481a
Re-throw exceptions that are not related to bool parsing errors 2023-09-05 18:37:10 +02:00
Salvatore Mesoraca
1d3e28d301
Fix unrelated format issues that clang-format complained about 2023-09-05 18:37:10 +02:00
Salvatore Mesoraca
fcff853dcf
Return Null instead of default in accurateCastOrNull for invalid IPs 2023-09-05 18:37:09 +02:00
Salvatore Mesoraca
393667dc39
accurateCastOrNull must not throw when casting arbitrary string to Bool
Fix #38585
2023-09-05 18:37:03 +02:00
flynn
182636fb23 Merge branch 'master' of github.com:ClickHouse/ClickHouse into isNull 2023-09-05 14:10:36 +00:00
robot-ch-test-poll
886a6e6e86
Merge pull request #54269 from bharatnc/ncb/update-tldLookup
update tldLookup data
2023-09-05 16:00:15 +02:00
flynn
aa0c94f20c Handle Null in function isZeroOrNull 2023-09-05 13:53:15 +00:00
Yarik Briukhovetskyi
7f4fa192c5
Merge branch 'ClickHouse:master' into todatatime-non-const-data 2023-09-05 12:48:56 +03:00
yariks5s
767cac44da minor requests 2023-09-05 08:13:12 +00:00
Bharat Nallan Chakravarthy
4bf96522d5 fix one more clang-tidy issue 2023-09-04 17:06:37 -07:00
Alexey Milovidov
2972f2e93e
Merge pull request #54261 from ucasfl/minor
Minor change
2023-09-05 01:11:07 +03:00
Bharat Nallan Chakravarthy
0342e80405 fix incorrect gperf class and function names 2023-09-04 13:00:26 -07:00
Bharat Nallan Chakravarthy
a0927eb8e4 clang-tidy fix 2023-09-04 13:00:26 -07:00
flynn
8251ba2951 Mirror change 2023-09-04 15:54:01 +00:00
yariks5s
4af150db5f fixed suggestions 2023-09-04 14:22:03 +00:00
yariks5s
033970716e fixed tests 2023-09-04 13:30:24 +00:00
Bharat Nallan Chakravarthy
df885fdc11 regenerate tldLookup 2023-09-03 20:57:14 -07:00
robot-clickhouse-ci-1
ec628ee697
Merge pull request #54097 from bharatnc/ncb/decode-html-component
add function decodeHTMLComponent
2023-09-04 05:00:52 +02:00
Han Fei
3f2848ea63
Merge pull request #53803 from ClickHouse/revert-53795-revert-53641-feat_53602
Revert "Revert "dateDiff: add support for plural units.""
2023-09-03 03:36:03 +02:00
Bharat Nallan Chakravarthy
8ecbdd2768 fix clang-tidy errors 2023-09-02 09:50:17 -07:00
Bharat Nallan Chakravarthy
48defd0556 add cmake target for generating gperf hashmap 2023-09-01 18:55:45 -07:00
Yarik Briukhovetskyi
1d270fca28
Updated FunctionsConversion.h 2023-09-01 18:30:39 +02:00
Yarik Briukhovetskyi
278cc494a2
Updated FunctionsConversion.h 2023-09-01 17:40:04 +02:00
yariks5s
1e01aa917a Updated FunctionsConversion.h 2023-09-01 14:18:29 +00:00
yariks5s
c9f1ff03db Minor fixes 2023-09-01 14:14:00 +00:00
yariks5s
0c9653dac5 implemented for formatDateTime and toString 2023-09-01 14:01:06 +00:00
vdimir
406d61f9c8
Merge pull request #53755 from ClickHouse/vdimir/join_on_nullsafe 2023-09-01 11:02:37 +02:00
Bharat Nallan Chakravarthy
8711be533d fix build issues 2023-08-31 23:07:30 -07:00
vdimir
df281fa41d
Fix typos 2023-08-31 15:22:27 +00:00
Bharat Nallan Chakravarthy
f6d1f6ce0a fix style check 2023-08-30 22:09:56 -07:00
Bharat Nallan Chakravarthy
61a6316164 add script to generate hash function 2023-08-30 21:30:33 -07:00
Bharat Nallan Chakravarthy
6e1e625230 few fixes to code 2023-08-30 19:10:03 -07:00
Bharat Nallan Chakravarthy
fd1be0a601 initial implementation 2023-08-30 18:41:04 -07:00
vdimir
dbdcea30a0
fix style, add built-in documentation 2023-08-30 15:06:35 +00:00
Alexey Milovidov
9b74939110
Merge pull request #53742 from aiven-sal/aiven-sal/fix_53187
transform: correctly handle default column with multiple rows
2023-08-29 21:57:59 +03:00
Chen768959
a2d451d6e6
domainRFC support ipv6(square brackets) and fix #53179 (#53506) 2023-08-29 11:42:59 +02:00
vdimir
bb6b939d2b
Support 'is not distinct from' in join on section 2023-08-28 11:41:36 +00:00
Yong Wang
6f6a103c5f Kusto-phase2: remove dialect auto option. use table function instead of subquery for kql() function fix type. 2023-08-26 07:40:39 -07:00
zvonand
d5f26cece5 Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-issue-50570 2023-08-25 16:51:51 +05:00
zvonand
0a81794a26 remove properly 2023-08-25 16:49:23 +05:00
vdimir
50b8bbe0dc
Merge pull request #53557 from mkmkme/mkmkme/array-shift-rotate
Added functions `array{Rotate,Shift}{Left,Right}`
2023-08-25 13:24:31 +02:00
Han Fei
11262d0156
Revert "Revert "dateDiff: add support for plural units."" 2023-08-24 17:11:58 +02:00
Alexander Tokmakov
59efbe4163
Revert "dateDiff: add support for plural units." 2023-08-24 15:35:18 +03:00
Mikhail Koviazin
a5eb1aa22f
Added functions array{Rotate,Shift}{Left,Right}
Fixes #52755 and #52895
2023-08-24 09:16:39 +00:00
Bharat Nallan Chakravarthy
b46e8db254 generate gperf perfect hashtable 2023-08-23 18:36:17 -07:00
Robert Schulze
7f534716ff
Fix fuzzer crash in parseDateTime() 2023-08-23 20:08:27 +00:00
Salvatore Mesoraca
8f6d636ff4
Fix error reporting 2023-08-23 17:26:23 +02:00
Kruglov Pavel
8e6b8fc2d0
Merge pull request #53470 from KevinyhZou/bug_fix_json_query_path_numberic
Fix JSON_QUERY Function parse error while path is all number
2023-08-23 12:01:55 +02:00
Alexey Milovidov
b884fdb867
Merge pull request #53641 from irenjj/feat_53602
dateDiff: add support for plural units.
2023-08-23 12:45:35 +03:00
flynn
d1da30b8e3 Merge branch 'master' of github.com:ClickHouse/ClickHouse into refactor 2023-08-23 02:34:35 +00:00
flynn
336e6d9b6c refactor some old code 2023-08-22 16:20:48 +00:00
Salvatore Mesoraca
740fff84b4
trasform: always check that the default column is big enough 2023-08-22 17:05:56 +02:00
Salvatore Mesoraca
4421bd66b2
Fix for #53187 2023-08-22 17:05:43 +02:00
Alexey Milovidov
e6fb5a21cb
Merge pull request #53587 from dveeden/mysql_schema
Improve MySQL Compatibility by supporting SCHEMA()
2023-08-22 15:11:33 +03:00
Alexey Milovidov
670c879f4c
Merge pull request #53621 from amosbird/consistent_cmake_file_management
Consistent cmake file management
2023-08-22 14:28:04 +03:00
yariks5s
c11ed5feb4 support for non-const timezone arguments/strings 2023-08-22 10:57:58 +00:00
Robert Schulze
acaa2eee58
Merge pull request #53556 from ClibMouse/feature/big-endian-UUID-correction
Change Big Endian-UUID to work the same as Little Endian-UUID
2023-08-22 11:57:44 +02:00
Michael Kolupaev
a5fbac9e6b Fix adding sub-second intervals to DateTime 2023-08-21 12:33:21 -07:00
Alexey Milovidov
316664456f
Merge pull request #53588 from kitaisreal/aarch64-neon-memequal-wide
AARCH64 Neon memequal wide
2023-08-21 21:11:01 +03:00
Amos Bird
1d40833a3b
These two files are needed by other programs 2023-08-22 01:09:08 +08:00
irenjj
0f0b5eb3b1 dateDiff: add support for plural units. 2023-08-21 21:15:00 +08:00
Amos Bird
882e0e7a0c
No more split of functions 2023-08-21 18:00:37 +08:00
Amos Bird
076a67bdaa
Consistent file management in CMake 2023-08-21 11:45:08 +08:00
kevinyhzou
48cb9b59f4 Support from/to utc timestamp 2023-08-21 09:28:00 +08:00
Maksim Kita
f32effb627 AARCH64 Neon memequal wide 2023-08-20 12:45:18 +03:00
Daniël van Eeden
212686c5c4 Improve MySQL Compatibility by supporting SCHEMA()
Basically `DATABASE()` and `SCHEMA()` are aliases in MySQL.

This helps with allowing MySQL Shell to get one step closer to a
functioning connection.

To see what MySQL Shell does:

```
mysqlsh --verbose=4 --log-sql=unfiltered mysql://default@127.0.0.1:9004
```

This might also bring other tools a step closer to working with the
MySQL compatibility of ClickHouse.

Ref: #9336

Signed-off-by: Daniël van Eeden <git@myname.nl>
2023-08-19 16:24:09 +02:00
kothiga
f33c585bc5
Addressing feedback. 2023-08-18 13:50:31 -07:00
Austin Kothig
6b42975d33
Change BE-UUID to work the same as LE-UUID. Included high and low getters to provide cleaner code when accessing undertype. 2023-08-18 08:19:46 -07:00
Yakov Olkhovskiy
84cb358c14
Merge pull request #43210 from amosbird/storage_executable_stderr
Add different reactions when external command stderr has data
2023-08-18 11:17:46 -04:00
Robert Schulze
b8912203e4
Merge pull request #53525 from aiven-sal/aiven-sal/siphash_readd
Re-add SipHash keyed functions, try II
2023-08-18 14:14:56 +02:00
Amos Bird
c43bf153f5
Refactor 2023-08-18 15:38:46 +08:00
Amos Bird
dd0c71b32a
Add error_exit_reaction 2023-08-18 15:38:46 +08:00
Amos Bird
476f3cedc1
Various reactions when executable stderr has data 2023-08-18 15:38:45 +08:00
Alexander Tokmakov
89c365803f
Merge pull request #53424 from ClickHouse/exception_message_patterns6
Less exceptions with runtime format string
2023-08-17 17:58:04 +03:00
Salvatore Mesoraca
c2340d588f
Fix issue found by fuzzer 2023-08-17 14:57:34 +02:00
Robert Schulze
ec7daed52f
Merge pull request #50276 from ClibMouse/feature/mergetree-checksum-big-endian-support
MergeTree & SipHash checksum big-endian support
2023-08-17 13:27:18 +02:00
kevinyhzou
d65dba10c6 review 2023-08-17 17:45:57 +08:00
zvonand
978a1765df Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-issue-50570 2023-08-17 12:13:06 +05:00
Michael Kolupaev
ff04660972
Merge pull request #53433 from ClickHouse/exp
Fix 'Context has expired' error properly
2023-08-16 18:40:53 -07:00
Alexander Tokmakov
69bc4f5139 Merge branch 'master' into exception_message_patterns6 2023-08-16 22:58:24 +02:00
kevinyhzou
f75b5c91b7 review fix 2023-08-16 18:09:21 +08:00
kevinyhzou
9d11f4bf93 Bug fix JSON_QUERY while the json path is all number 2023-08-16 17:46:50 +08:00
Michael Kolupaev
cbe4c8adc2 Fix more functions with 'Context has expired' error 2023-08-15 20:37:10 +00:00
Alexander Tokmakov
894ec8e0d0 less exceptions with runtime format string 2023-08-14 21:45:59 +02:00
Alexander Tokmakov
368f6d7b13 fix 2023-08-14 20:46:41 +02:00
ltrk2
2846ea49b4
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-14 13:02:30 -04:00
Yakov Olkhovskiy
300399d1f5
Merge pull request #52329 from ClibMouse/feature/mergetree-checksum-on-big-endian
Implement endianness-indepedent support for MergeTree checksums
2023-08-13 23:59:05 -04:00
Alexey Milovidov
38ac027658
Merge pull request #53342 from ClickHouse/fix-context-has-expired
Fix "Context has expired" error in dictionaries
2023-08-12 17:27:15 +03:00
Alexey Milovidov
67b45619eb
Merge pull request #53239 from evillique/tuple-concat
Add tupleConcat function
2023-08-12 03:35:25 +03:00
Alexey Milovidov
ad82dcec7d
Merge pull request #53059 from ClibMouse/feature/hastokenornull-empty-needle
Make hasTokenOrNull return null on empty needle
2023-08-12 03:35:08 +03:00
Alexey Milovidov
4b3d26982a
Merge pull request #53015 from ClibMouse/feature/transform-function-big-endian-support
Implement big-endian support for transform
2023-08-12 03:22:00 +03:00
Alexey Milovidov
36e74b4b51 Might be better 2023-08-12 01:31:21 +02:00
Alexey Milovidov
9601839980 Better 2023-08-12 01:04:08 +02:00
Alexey Milovidov
d25961f7f9 Fix "Context has expired" error in dictionaries 2023-08-12 00:52:14 +02:00
Salvatore Mesoraca
08e443b766
Revert "Revert "Re-add SipHash keyed functions""
This reverts commit e68234a231.
2023-08-11 17:30:04 +02:00
Yakov Olkhovskiy
4953208adc
Merge pull request #52758 from ClickHouse/nullable-num-intdiv
Add modulo, intDiv, intDivOrZero for tuple
2023-08-11 11:00:54 -04:00
ltrk2
1dc1b54c68
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-11 07:48:49 -04:00
ltrk2
94dbef1e50
Merge branch 'master' into feature/mergetree-checksum-on-big-endian 2023-08-11 07:47:48 -04:00
ltrk2
a17b2595f2
Merge branch 'master' into feature/transform-function-big-endian-support 2023-08-11 07:47:36 -04:00
ltrk2
9923f123f4
Merge branch 'master' into feature/hastokenornull-empty-needle 2023-08-11 07:47:27 -04:00
Alexey Milovidov
3193c6d4cc Fix build 2023-08-11 00:55:57 +02:00
Yakov Olkhovskiy
df17de8624
Merge branch 'master' into nullable-num-intdiv 2023-08-10 11:06:15 -04:00
ltrk2
a2054c04dd
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-10 10:21:34 -04:00
ltrk2
b780b64232
Merge branch 'master' into feature/mergetree-checksum-on-big-endian 2023-08-10 10:21:23 -04:00
Alexey Milovidov
dfbe7967af
Merge branch 'master' into remove-heavy-templates 2023-08-10 17:01:16 +03:00
Alexey Milovidov
1377d86ed9
Update src/Functions/array/arrayAUC.cpp
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-08-10 17:01:09 +03:00
Alexey Milovidov
bb57caa83e
Merge pull request #53180 from ClickHouse/ditch-tons-of-garbage
Ditch tons of garbage
2023-08-10 16:59:51 +03:00
Alexey Milovidov
be55bbf0ae
Merge pull request #53178 from ClickHouse/speed-up-debug-tidy-build
Remove garbage and speed up Debug and Tidy builds
2023-08-10 16:54:34 +03:00
Kruglov Pavel
14aad359e6
Merge pull request #52555 from bigo-sg/starts_ends_with_utf8
Add new function startsWithUTF8 and endsWithUTF8
2023-08-10 13:18:04 +02:00
Nikolay Degterinsky
5403507950 Add tupleConcat function 2023-08-09 20:52:09 +00:00
Alexey Milovidov
da01d756f9 Addressed review comments 2023-08-09 20:20:25 +02:00
ltrk2
139e9433a8
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-09 09:48:00 -04:00
ltrk2
add53bb8aa
Merge branch 'master' into feature/mergetree-checksum-on-big-endian 2023-08-09 09:44:32 -04:00
ltrk2
55c4c5e741
Merge branch 'master' into feature/transform-function-big-endian-support 2023-08-09 09:44:23 -04:00
ltrk2
e03258bbdc
Merge branch 'master' into feature/hastokenornull-empty-needle 2023-08-09 09:43:48 -04:00
ltrk2
52e6cf36b2 Fix style issue 2023-08-09 06:43:27 -07:00
Yakov Olkhovskiy
d1a8a88ae0
Merge branch 'master' into nullable-num-intdiv 2023-08-09 09:18:18 -04:00
yariks5s
8ab4f8c9cf Improved efficiency 2023-08-09 09:12:39 +00:00
yariks5s
922542b497 Improved efficiency 2023-08-09 09:11:55 +00:00
Alexey Milovidov
2f6e66c8e3 Remove unnecessary templates 2023-08-09 03:19:24 +02:00
Alexey Milovidov
aa757490bd Ditch tons of garbage 2023-08-09 02:19:02 +02:00
Alexey Milovidov
5561e3e198 Remove garbage and speed up Debug and Tidy builds 2023-08-09 01:44:39 +02:00
Yarik Briukhovetskyi
44400cc742
Merge branch 'master' into add_arrays 2023-08-08 11:55:31 +02:00
李扬
d15ae5e120
Merge branch 'master' into starts_ends_with_utf8 2023-08-08 16:18:04 +08:00
Yarik Briukhovetskyi
46ef77b5cb
Update FunctionBinaryArithmetic.h 2023-08-07 13:41:12 +02:00
yariks5s
1c400432d9 fixed suggestions 2023-08-07 10:52:55 +00:00
Yarik Briukhovetskyi
22052381d9
Merge branch 'master' into add_arrays 2023-08-04 23:17:06 +02:00
flynn
9b8f87e9ac
Merge branch 'master' into concept 2023-08-05 02:41:55 +08:00
ltrk2
06631f6a86 Make hasTokenOrNull return null on empty needle 2023-08-04 09:44:02 -07:00
Yarik Briukhovetskyi
50039210d4
Update FunctionBinaryArithmetic.h 2023-08-04 17:27:10 +02:00
yariks5s
21b4f82873 fixed fast and style check 2023-08-04 14:28:58 +00:00
Yarik Briukhovetskyi
e7dbe50ad7
Update FunctionBinaryArithmetic.h 2023-08-04 15:54:44 +02:00
Yarik Briukhovetskyi
777e575b31
Update src/Functions/FunctionBinaryArithmetic.h
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-08-04 15:27:26 +02:00
yariks5s
ded98144cb Merge branch 'add_arrays' of github.com:yariks5s/ClickHouse into add_arrays 2023-08-04 12:43:10 +00:00
yariks5s
699be8ce71 changed suggestions 2023-08-04 12:43:02 +00:00
ltrk2
6dc74fb5cc Implement big-endian support for transform 2023-08-03 12:39:28 -07:00
Yarik Briukhovetskyi
da7f71d761
Update FunctionBinaryArithmetic.h 2023-08-03 17:20:16 +02:00
yariks5s
e9872d0e72 fixed issues 2023-08-03 14:44:14 +00:00
ltrk2
a29b36612b
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-03 09:41:25 -04:00
ltrk2
84a77d1c21
Merge branch 'master' into feature/mergetree-checksum-on-big-endian 2023-08-03 09:41:16 -04:00
Yarik Briukhovetskyi
0fbd2bb802
Update FunctionBinaryArithmetic.h 2023-08-02 20:19:08 +02:00
yariks5s
fe09a36f44 fixed fuzzer 2023-08-02 18:07:54 +00:00
Yarik Briukhovetskyi
98ecf7d43e
Update src/Functions/FunctionBinaryArithmetic.h
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-08-02 18:40:33 +02:00
Yarik Briukhovetskyi
cd9bb8126a
Update src/Functions/FunctionBinaryArithmetic.h
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-08-02 18:40:22 +02:00
ltrk2
3eeaf7af22 Fix build error 2023-08-02 16:08:53 +00:00
ltrk2
27a2d4d1c7
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-08-02 11:36:43 -04:00
Yakov Olkhovskiy
858150ae98
Merge branch 'master' into nullable-num-intdiv 2023-08-02 09:46:31 -04:00
Yarik Briukhovetskyi
e7392a359e
Merge branch 'master' into array_intersect_order 2023-08-02 15:27:38 +02:00
vdimir
078eadc473
Merge pull request #52712 from ClibMouse/feature/hashing-big-endian-support 2023-08-02 11:09:03 +02:00
flynn
be0c5bf10a Use concepts to replace more std::enable_if_t
fix
2023-08-02 07:50:25 +00:00
Yakov Olkhovskiy
357fee99ff
Merge pull request #52791 from zvonand/zvonand-float-parsing
Add option to switch float parsing methods
2023-08-02 00:23:23 -04:00
李扬
041af6899d
Merge branch 'master' into starts_ends_with_utf8 2023-08-02 10:29:29 +08:00
ltrk2
323aa9f183
Merge branch 'master' into feature/hashing-big-endian-support 2023-08-01 13:09:43 -04:00
zvonand
490554eb4f simplify 2023-08-01 18:29:44 +02:00
Kruglov Pavel
8f6526a930
Merge branch 'master' into structure-to-schema 2023-08-01 16:22:14 +02:00
zvonand
9ab875f5ad add explicit nullptr for now 2023-08-01 11:38:15 +02:00
Andrey Zvonov
99cd8f9ba9
Merge branch 'master' into zvonand-float-parsing 2023-07-31 23:43:24 +03:00
ltrk2
f2fd1da891 Fix a build error 2023-07-31 19:13:27 +00:00
zvonand
2088f846ad update as per reviews 2023-07-31 16:26:18 +02:00
yariks5s
af60b4bb31 fixed style check 2023-07-31 10:29:15 +00:00
zvonand
0ff0a4e41f diverge parsing methods 2023-07-30 19:42:10 +02:00
Anton Popov
5cb3e4f879
Merge branch 'master' into fix-crash-sparse-tuple 2023-07-30 15:18:58 +02:00
Yakov Olkhovskiy
1ee1ae120e add modulo, intDiv, intDivOrZero for tuple 2023-07-29 02:03:21 +00:00
ltrk2
6c9a1b14ef
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-07-28 16:18:46 -04:00
yariks5s
e0e6472195 changed tests, imporved code and exceptions 2023-07-28 15:50:22 +00:00
Kruglov Pavel
3e1c409e60
Merge branch 'master' into structure-to-schema 2023-07-28 11:32:16 +02:00
李扬
d0c9425711
Merge branch 'master' into starts_ends_with_utf8 2023-07-28 10:03:39 +08:00
ltrk2
5bd670d8c6 Improve endianness-independent support for hash functions 2023-07-27 15:58:46 -07:00
Yakov Olkhovskiy
565204f491
Merge branch 'master' into fix-nullable-ipv4-intdiv 2023-07-27 17:34:53 -04:00
yariks5s
bae407e958 fixed checks 2023-07-27 12:48:36 +00:00
Anton Popov
541a253580 fix crash with function tuple and one sparse argument 2023-07-27 12:43:38 +00:00
yariks5s
e749938e92 fixed test 2023-07-27 12:07:34 +00:00
robot-ch-test-poll2
7bcef0a6c0
Merge pull request #52520 from zvonand/revert-52450-remove-to-decimal-string
Fix `toDecimalString` function
2023-07-27 00:18:36 +02:00
yariks5s
dc5cc0a541 fixed check 2023-07-26 16:23:17 +00:00
yariks5s
adb46fa174 Revert "Implemented requested changes"
This reverts commit db4735a105.
2023-07-26 15:20:54 +00:00
Yarik Briukhovetskyi
90e2c0247d
Merge branch 'master' into add_arrays 2023-07-26 17:04:53 +02:00
yariks5s
f8200e50cb added impl 2023-07-26 15:00:25 +00:00
taiyang-li
27f3c5cfa2 change as requested 2023-07-26 10:53:07 +08:00
Alexey Milovidov
7ac5c421ad
Merge pull request #49343 from ClickHouse/sleep-each-row-max-time
Merging #34909
2023-07-26 00:03:27 +03:00
Nikita Mikhaylov
1dc9ca2c24
Merge pull request #52549 from ClickHouse/whitespace-before-comma
Check for punctuation
2023-07-25 20:30:36 +02:00
zvonand
4f7bdf308d add explicit else 2023-07-25 18:57:54 +02:00
zvonand
2cc1ac45dd update missed error 2023-07-25 18:45:56 +02:00
robot-ch-test-poll1
49a60b27a0
Merge pull request #51076 from priera/50727_currentDatabase_alias
#50727 new alias for current_database and added current_schemas
2023-07-25 18:22:48 +02:00
Yakov Olkhovskiy
e133db7937
Merge pull request #51472 from bigo-sg/substring_index
Add function substring_index, as in spark or mysql
2023-07-25 08:43:13 -04:00
Andrey Zvonov
155b90c780
oops 2023-07-25 13:47:59 +03:00
Andrey Zvonov
15b3a637e9
Merge branch 'master' into revert-52450-remove-to-decimal-string 2023-07-25 13:21:00 +03:00
zvonand
6b8752f293 fix error message 2023-07-25 12:19:35 +02:00
zvonand
d500e75569 fix 2023-07-25 12:07:47 +02:00
taiyang-li
acb33c1d81 fix code style 2023-07-25 15:39:49 +08:00
taiyang-li
a5d7391fbf add new function startsWithUTF8 and endsWithUTF8 2023-07-25 15:34:38 +08:00
Alexey Milovidov
21382afa2b Check for punctuation 2023-07-25 06:10:04 +02:00
Alexey Milovidov
90a6a018b0
Merge branch 'master' into 50727_currentDatabase_alias 2023-07-25 06:51:28 +03:00
Alexey Milovidov
fbcc06685b
Merge pull request #51367 from ClickHouse/remove-wrong-code
Attempt to remove wrong code (catch/throw in Functions)
2023-07-25 05:44:22 +03:00
Alexey Milovidov
813efa31ad
Merge pull request #52513 from ClickHouse/fix-transform-2
Fix abort in function `transform`
2023-07-25 05:37:17 +03:00
Alexey Milovidov
654af41431 Fix race 2023-07-24 19:45:55 +02:00
Alexey Milovidov
22a2fa097f Improve error messages 2023-07-24 19:40:02 +02:00
Alexey Milovidov
b9375782bd Merge branch 'master' into remove-wrong-code 2023-07-24 19:34:01 +02:00
Alexey Milovidov
12b5c0dde7 Merge branch 'master' into sleep-each-row-max-time 2023-07-24 18:10:38 +02:00
Alexey Milovidov
01993bef5b
Merge pull request #52489 from ClickHouse/incbin
Faster startup of clickhouse-client and clickhouse-local
2023-07-24 18:42:24 +03:00
Andrey Zvonov
21097209d2
Revert "Remove toDecimalString" 2023-07-24 15:41:21 +03:00
Alexey Milovidov
890a3754a6 Fix error 2023-07-24 08:19:46 +02:00
Alexey Milovidov
ceaaa78fdc Fix transform 2023-07-24 08:04:38 +02:00
Alexey Milovidov
169b9d5cc0 Fix tidy 2023-07-24 05:49:06 +02:00
Alexey Milovidov
e87f976f2b Merge branch 'master' into remove-wrong-code 2023-07-24 05:48:06 +02:00
Alexey Milovidov
a17652a422 Merge branch 'master' into incbin 2023-07-24 05:33:52 +02:00
Alexey Milovidov
5c15e6021b Merge branch 'master' into remove-to-decimal-string 2023-07-24 01:51:43 +02:00
robot-clickhouse-ci-2
66c0015b87
Merge pull request #52050 from arenadata/ADQM-982
Subsequence string matching (new hasSubsequence() function)
2023-07-23 21:18:27 +02:00
Alexey Milovidov
49f4ef6ffb Fix typo 2023-07-23 20:11:24 +02:00
Alexey Milovidov
311b3adf89 Fix fasttest 2023-07-23 20:10:41 +02:00
Alexey Milovidov
e56e1ebd5d Fix fasttest 2023-07-23 18:29:07 +02:00
Alexey Milovidov
8902bbdb60 Fix fasttest 2023-07-23 17:59:49 +02:00
Alexey Milovidov
f6a20f4d05 Merge branch 'master' into remove-wrong-code 2023-07-22 20:23:33 +02:00
Alexey Milovidov
88cd1851f0
Merge pull request #52448 from ClickHouse/fix-terrible-trash
The implementation of AnyHash was non-conformant.
2023-07-22 19:13:36 +03:00
Alexey Milovidov
36815363a6
Merge pull request #52449 from ClickHouse/remove-hashid
Remove `hashid`
2023-07-22 19:12:44 +03:00
Alexey Milovidov
a57fc914e0
Merge pull request #52466 from ClickHouse/revert-52206-aiven-sal/siphash_fix_pr
Revert "Re-add SipHash keyed functions"
2023-07-22 19:10:23 +03:00
Alexey Milovidov
5f4756fb33 Remove toDecimalString 2023-07-22 04:54:58 +02:00
Alexey Milovidov
4d0b75ebdd Remove hashid 2023-07-22 04:42:16 +02:00
Alexey Milovidov
d2b178536e Fix terrible trash 2023-07-22 04:38:16 +02:00
Alexey Milovidov
7cc3372355 Fix terrible trash 2023-07-22 04:30:09 +02:00
Alexey Milovidov
e68234a231
Revert "Re-add SipHash keyed functions" 2023-07-22 04:45:50 +03:00
Alexey Milovidov
91fd286165 Merge branch 'master' into sleep-each-row-max-time 2023-07-22 02:25:03 +02:00
Alexander Gololobov
cb53d762ea Fix one more case 2023-07-21 15:23:24 +02:00
ltrk2
90a2c460c6
Merge branch 'master' into feature/mergetree-checksum-big-endian-support 2023-07-21 08:07:18 -04:00
serxa
8970a53145 Fix countSubstrings() hang with empty needle and a column haystack 2023-07-21 11:38:46 +00:00
avogar
710e9a817d Fix tests 2023-07-20 12:59:05 +00:00
Nikita Mikhaylov
b14277773f
Merge pull request #52260 from ClickHouse/fix-s2
Better detecting of invalid S2 geo primitives
2023-07-20 14:25:44 +02:00
Alexey Milovidov
f4ec421292
Merge pull request #52106 from Lloyd-Pottiger/add-alias-for-today-and-now
Add alias for today(curdate/current_date) and now(current_timestamp)
2023-07-20 15:02:25 +03:00
Robert Schulze
e5f7890bb5
Merge pull request #52206 from aiven-sal/aiven-sal/siphash_fix_pr
Re-add SipHash keyed functions
2023-07-20 11:15:31 +02:00
Nikolay Degterinsky
cf54866aef
Merge pull request #51651 from Alex-Cheng/correct_exception_message
Correct an exception message in src/Functions/nested.cpp
2023-07-20 10:56:45 +02:00
ltrk2
51e2c58a53 Implement endianness-independent SipHash and MergeTree checksum serialization 2023-07-19 10:01:55 -07:00
Han Fei
2675b8fa79
Merge pull request #52181 from arenadata/ADQM-868
Millisecond and microsecond support in date_diff / age functions
2023-07-19 17:41:23 +02:00
Nikita Mikhaylov
c8351b15c6
Merge branch 'master' into fix-s2 2023-07-19 15:44:13 +02:00
Nikita Mikhaylov
777026e42e Fix test 2023-07-19 13:43:40 +00:00
avogar
da6a31bb62 Fix tests and style 2023-07-19 13:26:09 +00:00
vdimir
92f04d2c53
Merge pull request #52209 from mkmkme/mkmkme/first-line 2023-07-19 11:10:13 +02:00
Salvatore Mesoraca
96f048f7f8
Convert output UInt128 to FixedString even if input is empty 2023-07-19 10:49:33 +02:00
Alex Cheng
f525d48a3a
Merge branch 'master' into correct_exception_message 2023-07-19 13:27:48 +08:00
Lloyd-Pottiger
fc7743ad68
Merge branch 'master' into add-alias-for-today-and-now 2023-07-19 10:20:11 +08:00
Alexey Milovidov
06914e8196 Merge branch 'master' into sleep-each-row-max-time 2023-07-18 22:06:27 +02:00
Dmitry Kardymon
4e1bdc7db9 Merge remote-tracking branch 'origin/master' into ADQM-868 2023-07-18 18:21:04 +00:00
avogar
b300781fd8 Make better, add tests 2023-07-18 17:48:39 +00:00
Alexey Milovidov
8d10dd71f7
Merge pull request #52172 from ClickHouse/fix-crash-query-analysis
Fix crash in comparison functions due to incorrect query analysis
2023-07-18 18:53:41 +03:00
Nikita Mikhaylov
a06631f0db Better detecting invalid figures 2023-07-18 16:26:10 +02:00
Salvatore Mesoraca
f6bbc4bce9
Use getData instead of get64 2023-07-18 16:04:48 +02:00
Salvatore Mesoraca
5282fc2c34
Fix class name 2023-07-18 16:04:47 +02:00
avogar
67f340b501 Merge branch 'master' of github.com:ClickHouse/ClickHouse into structure-to-schema 2023-07-18 13:52:15 +00:00
zvonand
57501b9e1a try remove outdated fix 2023-07-18 15:32:40 +02:00
pedro.riera
47370136e0 new alias for current_database and added current_schemas 2023-07-18 14:50:53 +02:00
Mikhail Koviazin
4f7fd69883
Added function firstLine to extract the first line from a multiline string
Fixes #51172
2023-07-18 12:18:26 +03:00
Salvatore Mesoraca
693892801c
Re-add keyed SipHash and fix issues with current keyed hashes framwork 2023-07-18 10:29:50 +02:00
Mikhail Koviazin
562ea03ce7
FunctionsURL.h to StringHelpers.h and move out of URL/ 2023-07-18 11:16:52 +03:00
Lloyd-Pottiger
9d11385543
Merge branch 'master' into add-alias-for-today-and-now 2023-07-18 10:29:49 +08:00
Alexey Milovidov
218a1c7eb8
Merge branch 'master' into fix-has-token 2023-07-18 03:05:28 +03:00
Alexey Milovidov
4b8aa3a012
Merge branch 'master' into fix-crash-query-analysis 2023-07-17 23:14:46 +03:00
Nikita Mikhaylov
d4c8383627
Merge pull request #52216 from ClickHouse/revert-51736-oss-fuzz-fixes
Revert "Fixed several issues found by OSS-Fuzz"
2023-07-17 17:19:18 +02:00
vdimir
5de1cfee7d
Merge pull request #51735 from arenadata/ADQM-976 2023-07-17 16:24:11 +02:00
Nikita Mikhaylov
9a30aaa9aa
Revert "Fixed several issues found by OSS-Fuzz" 2023-07-17 16:14:58 +02:00
Yarik Briukhovetskyi
db4735a105 Implemented requested changes 2023-07-17 12:12:25 +00:00
Nikita Mikhaylov
d04f39370a
Merge branch 'master' into oss-fuzz-fixes 2023-07-17 13:41:54 +02:00
robot-ch-test-poll1
89a33c5879
Merge pull request #52176 from FFFFFFFHHHHHHH/add_length_alias
Add OCTET_LENGTH as an alias to length
2023-07-17 13:34:01 +02:00
Kruglov Pavel
df363f444e
Merge pull request #51767 from arenadata/Support-range-nullable
Support for function range of Nullable argument
2023-07-17 12:52:19 +02:00
Ilya Yatsishin
65eb937f68
Merge pull request #51765 from arenadata/ADQM-974
Allow toUInt128() for UUIDs
2023-07-17 12:50:37 +02:00
Dmitry Kardymon
2de9ea6925 Merge remote-tracking branch 'origin/master' into ADQM-982 2023-07-17 10:03:16 +00:00
Lloyd-Pottiger
3636c2a847
Merge branch 'master' into add-alias-for-today-and-now 2023-07-17 14:28:24 +08:00
FFFFFFFHHHHHHH
1cebf03cab add length alias 2023-07-17 10:41:18 +08:00
FFFFFFFHHHHHHH
0895e47629
Merge branch 'master' into jaccard_similarity 2023-07-17 10:33:10 +08:00
Alexey Milovidov
34ec39234f Fix crash in comparison functions due to incorrect query analysis 2023-07-17 01:40:02 +02:00
Alexey Milovidov
ac408d0b63 Add a check for hasToken 2023-07-17 00:10:42 +02:00
Dmitry Kardymon
a644317f57 Revert "Merge pull request #52129 from ClickHouse/revert-51291-ADQM-868"
This reverts commit 1b9bcae68e, reversing
changes made to 7284749d05.
2023-07-16 18:07:22 +00:00
Alexey Milovidov
9307e60c20
Revert "Millisecond and microsecond support in date_diff / age functions" 2023-07-14 23:21:26 +03:00
Lloyd-Pottiger
c4dabd1aae alias
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
2023-07-14 13:53:29 +08:00
Yarik Briukhovetskyi
1d1f36beda
Merge branch 'master' into array_intersect_order 2023-07-12 15:01:28 +02:00
Dmitry Kardymon
fdcf434b43 Merge remote-tracking branch 'origin/master' into ADQM-974 2023-07-11 19:57:43 +00:00
Dmitry Kardymon
2a7bbf5d48 Merge remote-tracking branch 'origin/master' into Fix-formatDateTime-with-fractional-negative-datetime64 2023-07-11 19:56:22 +00:00
Dmitry Kardymon
2eccead2d4 Fix const(Nullable) case, add test 2023-07-11 16:27:28 +00:00
Yarik Briukhovetskyi
c8e7a84586
Merge branch 'master' into array_intersect_order 2023-07-11 14:51:18 +02:00
Robert Schulze
521c993eff
Merge branch 'master' into jaccard_similarity 2023-07-11 10:36:18 +02:00
Dmitry Kardymon
ae69627d87 Merge remote-tracking branch 'origin/master' into ADQM-982 2023-07-11 08:16:21 +00:00
Dmitry Kardymon
cfe846c2ec Merge remote-tracking branch 'origin/master' into Support-range-nullable 2023-07-10 13:29:21 +00:00
Dmitry Kardymon
f12ccd76ef Merge remote-tracking branch 'origin/master' into ADQM-974 2023-07-10 13:28:45 +00:00
Dmitry Kardymon
0cd4b753d6 Merge remote-tracking branch 'origin/master' into ADQM-976 2023-07-10 13:27:45 +00:00
Dmitry Kardymon
3237169c9a Merge remote-tracking branch 'origin/master' into ADQM-868 2023-07-10 13:24:17 +00:00
Dmitry Kardymon
973c96c7ab Merge remote-tracking branch 'origin/master' into Fix-formatDateTime-with-fractional-negative-datetime64 2023-07-10 13:22:26 +00:00
Dmitry Kardymon
66e759ec96 try to fix build again 2023-07-10 10:18:00 +00:00
Dmitry Kardymon
33405e70f2 Try to fix build 2023-07-10 10:01:26 +00:00
Dmitry Kardymon
4cd12a5053 Remove trailing whitespace 2023-07-10 09:33:53 +00:00
Dmitry Kardymon
17891ca1eb Add case ins utf8 impl + tests 2023-07-10 09:18:09 +00:00
Dmitry Kardymon
ff4ec82342 Added hasSubsequenceUTF8 impl + tests 2023-07-10 07:29:31 +00:00
Alexey Milovidov
dd80bdb859
Merge pull request #51993 from azat/symbol-index-cleanup
Cleanup SymbolIndex after reload got removed
2023-07-10 00:58:16 +03:00
Han Fei
4f48d92db4
Merge branch 'master' into revert-51390-revert-50951 2023-07-09 15:16:50 +02:00
Azat Khuzhin
d520413454 Cleanup SymbolIndex after reload got removed
Remove MultiVersion for SymbolIndex structure since after #51873 it is
useless.

Follow-up for: #51873
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-09 09:25:11 +02:00
Alexey Milovidov
84600287a6
Merge pull request #50066 from bigo-sg/improve_geohash
Allow geoHashEncode when its arguments are mixed with const and non-const columns
2023-07-09 08:44:35 +03:00
Alexey Milovidov
58ee566278
Merge pull request #51964 from ClickHouse/allow-parametric-udfs
Allow parametric UDFs
2023-07-08 19:12:48 +03:00
Alexey Milovidov
fbdb8f387e
Merge pull request #51857 from ljhcage/master
remove duplicate condition
2023-07-08 02:49:32 +03:00
Alexey Milovidov
03d2606eb9
Merge pull request #49342 from ClickHouse/disks-space-improvement
Slight improvement in Disks interface
2023-07-08 02:24:57 +03:00
Alexey Milovidov
a96874850e Revert "Merge pull request #48115 from save-my-heart/throw_non_parametric_function"
This reverts commit 5f930aeb26, reversing
changes made to 35572321a1.
2023-07-08 00:55:57 +02:00
Dmitry Kardymon
39d0b309bd Make own function with slices 2023-07-07 13:15:26 +00:00
Alexey Milovidov
4a6a6fc4f2
Merge branch 'master' into disks-space-improvement 2023-07-07 13:43:04 +03:00
Robert Schulze
08b2441784
Merge branch 'master' into jaccard_similarity 2023-07-07 12:41:09 +02:00
Alexey Milovidov
0ad793ebb6
Merge branch 'master' into remove-wrong-code 2023-07-07 13:41:01 +03:00
Alexey Milovidov
69dc099dba
Merge branch 'master' into add-test-43358 2023-07-07 13:40:49 +03:00
Alex Cheng
b5ccc49b65
Merge branch 'master' into correct_exception_message 2023-07-07 14:39:25 +08:00
Dmitry Kardymon
7255c35edc Add more tests 2023-07-06 19:43:37 +00:00
lcjh
7321f7e9dc
Merge branch 'master' into master 2023-07-07 00:31:47 +08:00
Alexey Milovidov
1fa21700ad Merge remote-tracking branch 'origin/less-flaky-test_start_stop_moves' into many-fixes-3 2023-07-06 16:17:13 +02:00
Dmitry Kardymon
dee71d2e2f Add first version of hasSubsequence() 2023-07-06 13:16:31 +00:00
Alexey Milovidov
2e454ef89e
Merge branch 'master' into disks-space-improvement 2023-07-06 03:58:45 +03:00
Alexey Milovidov
45db928e4e Fix style 2023-07-06 02:52:55 +02:00
Alexey Milovidov
731dc1eba4 Merge branch 'master' into remove-wrong-code 2023-07-06 02:51:34 +02:00
Alexey Milovidov
d7782f6518 Merge branch 'fix_keyed_hash' of github.com:nickitat/ClickHouse into many-fixes-3 2023-07-06 02:47:51 +02:00
Alexey Milovidov
85e7d40755
Merge branch 'master' into add-test-43358 2023-07-06 02:20:28 +03:00
lcjh
ce8b0cae82
remove duplicate condition 2023-07-06 02:14:48 +08:00
yariks5s
cb872325a6
Merge branch 'master' into array_intersect_order 2023-07-05 20:05:44 +02:00
yariks5s
33f32684d4 fixed style check 2023-07-05 16:34:42 +00:00
yariks5s
7c84599764 removed unused includes 2023-07-05 15:46:46 +00:00
yariks5s
966f07bd8e fixed tests and dealt with nulls 2023-07-05 15:42:49 +00:00
yariks5s
ba5e26aebf need to deal with nulls 2023-07-05 10:49:32 +00:00
Han Fei
2e5643cc41 use UTC LUT 2023-07-05 11:57:18 +02:00
李扬
bb301cfbb0
Merge branch 'master' into improve_geohash 2023-07-05 17:57:03 +08:00
taiyang-li
d8a66a8123 fix asan error 2023-07-05 17:49:01 +08:00
Han Fei
9544c035b9 Revert "refine"
This reverts commit 7f1ee68c87.
2023-07-05 11:15:31 +02:00
Alexey Milovidov
24b9c430f8 Continuation 2023-07-05 00:39:10 +02:00
Alexey Milovidov
2a6b5e4ec6 Fixed bad code 2023-07-04 23:28:45 +02:00
Alexey Milovidov
2460268e3c Remove templates 2023-07-04 23:22:08 +02:00
Han Fei
7f1ee68c87 refine 2023-07-04 23:08:54 +02:00
Nikita Taranov
da105d4916 impl 2023-07-04 23:01:06 +02:00
Alexey Milovidov
6ec345db54 Merge branch 'master' into remove-wrong-code 2023-07-04 22:37:34 +02:00
Alexey Milovidov
4e8405cbda Merge branch 'master' into disks-space-improvement 2023-07-04 22:00:40 +02:00
Alexey Milovidov
66b743f1e0 Merge branch 'master' of github.com:ClickHouse/ClickHouse into sleep-each-row-max-time 2023-07-04 21:13:23 +02:00
Dmitry Kardymon
99f02e0f6b Add const to trying to fix build 2023-07-04 22:06:17 +03:00
Nikita Mikhaylov
673c30f717
Merge branch 'master' into oss-fuzz-fixes 2023-07-04 19:52:41 +02:00
Han Fei
ca6930eb11
Revert "Revert "Merge pull request #50951 from ZhiguoZh/20230607-toyear-fix"" 2023-07-04 17:38:53 +02:00
Dmitry Kardymon
99518f772c Merge remote-tracking branch 'clickhouse/master' into Support-range-nullable 2023-07-04 13:05:19 +03:00
Dmitry Kardymon
2d904c9cc4 Merge remote-tracking branch 'clickhouse/master' into Fix-formatDateTime-with-fractional-negative-datetime64 2023-07-04 08:21:48 +03:00
Dmitry Kardymon
ed16828b70 Merge remote-tracking branch 'clickhouse/master' into ADQM-868 2023-07-04 08:18:57 +03:00
Yakov Olkhovskiy
c3a2a3d4e8
Merge branch 'master' into fix-nullable-ipv4-intdiv 2023-07-03 19:07:44 -04:00
Alexey Milovidov
c25da7cbf4 Fix (benign) data rance in transform 2023-07-04 01:03:49 +02:00
Robert Schulze
29f93bd06d
More fixes, pt. II 2023-07-03 20:26:10 +00:00
Robert Schulze
9660291ab3
my fixes 2023-07-03 18:33:59 +00:00
Dmitry Kardymon
5b85e1ce8a Special build check fix 2023-07-03 18:09:08 +00:00
Nikita Mikhaylov
af603c2cc6 Fixed stack overflow on Field destruction 2023-07-03 16:40:04 +02:00
Dmitry Kardymon
1a40e30797 Add initcapUtf8: impl + tests 2023-07-03 11:37:55 +00:00
yariks5s
2aa2f39e36 Not completed 'problem with offsets if the second array is smaller' 2023-07-03 11:14:56 +00:00
Robert Schulze
fe49e98455
Follow-up to re2 update 2023-06-02 (#50949) 2023-07-03 08:28:25 +00:00
FFFFFFFHHHHHHH
4089b6f69f
Merge branch 'master' into jaccard_similarity 2023-07-02 16:15:25 +08:00
FFFFFFFHHHHHHH
8c0463fdd4 fix 2023-07-02 16:14:08 +08:00
yariks5s
64d1f32edd Not sending any result 2023-06-30 16:33:07 +00:00
Dmitry Kardymon
d6dacd3ccf Fix test with num 2023-06-30 13:53:20 +00:00
Dmitry Kardymon
1cf021c0b1 Add initcap prototype / tests 2023-06-30 13:11:06 +00:00
Dmitry Kardymon
407a7e3cc5 Edit assert message 2023-06-30 09:55:55 +00:00
Dmitry Kardymon
8af96f7a17 Add uuid to uint128 converting 2023-06-30 09:49:29 +00:00
Alexey Milovidov
0f2d731f1b
Merge branch 'master' into add-test-43358 2023-06-30 12:17:52 +03:00
Alex Cheng
f497ba88c2 correct an exception message. 2023-06-30 14:52:47 +08:00
Yakov Olkhovskiy
bd29c0d6a2 cast IPv4 after Nullable is removed 2023-06-30 00:54:47 +00:00
Alexey Milovidov
cf60f45885
Merge branch 'master' into add-test-43358 2023-06-29 23:14:08 +03:00
Alexey Milovidov
b6a37fbf18
Merge branch 'master' into many-fixes-2 2023-06-29 22:36:33 +03:00
taiyang-li
95a9270b74 change as request 2023-06-29 10:54:40 +08:00
taiyang-li
b40cd4c539 Merge branch 'substring_index' of https://github.com/bigo-sg/ClickHouse into substring_index 2023-06-29 10:40:02 +08:00
李扬
3a01a859d9
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2023-06-29 10:39:25 +08:00
taiyang-li
9e34227fe9 change as requested 2023-06-29 10:39:20 +08:00
李扬
a35476ee13
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2023-06-29 10:19:48 +08:00
李扬
a005b5d0c8
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2023-06-29 10:19:39 +08:00
李扬
21ff69772c
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2023-06-29 10:19:28 +08:00
李扬
f049914c2f
Update src/Functions/substringIndex.cpp
Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
2023-06-29 10:19:19 +08:00
Robert Schulze
5b78b3903b
Fix logical error in tupleElement() 2023-06-28 18:35:33 +00:00
Robert Schulze
bf54fb4caa
tupleElement(): Return default value for out-of-bounds-index
Makes the actual and the documented behavior consistent.
2023-06-28 18:35:32 +00:00
Robert Schulze
eea3c39959
Cosmetics 2023-06-28 18:35:27 +00:00
Alexey Milovidov
7e6d606b1c Remove bad code and fix a bug 2023-06-28 10:41:39 +02:00
李扬
748cd13fc3
Merge branch 'master' into improve_geohash 2023-06-28 15:02:05 +08:00
taiyang-li
70e49cb31c add docs 2023-06-28 11:28:20 +08:00
taiyang-li
ae7a586aea fix bugs and add uts 2023-06-28 10:45:52 +08:00
Ilya Yatsishin
d3b8b454f8
Fix segfault in MathUnary 2023-06-27 19:19:58 +02:00
Dmitry Kardymon
e34597e43d Fix tabulation 2023-06-27 18:36:32 +03:00
taiyang-li
0de5fcfbee finish dev 2023-06-27 18:13:25 +08:00
Alexey Milovidov
9ee0476d32
Update src/Functions/GregorianDate.h
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-06-27 11:59:01 +03:00
taiyang-li
bd0ce5fc0b wip 2023-06-27 16:34:04 +08:00
Dmitry Kardymon
8ad1d4b94f Add comment 2023-06-27 06:31:30 +00:00
Dmitry Kardymon
5a4a774db7 Style fix 2023-06-27 06:06:56 +00:00
Alexey Milovidov
b5635887c3 Merge remote-tracking branch 'origin/refactor-subqueries-for-in' into many-fixes 2023-06-27 05:39:44 +02:00
Alexey Milovidov
a686833f8e Merge branch 'fix-logical-error-address-to-line-with-inlines' into many-fixes 2023-06-27 05:26:05 +02:00
Alexey Milovidov
4615aaacb6 Merge branch 'revert-50951' into many-fixes 2023-06-27 05:23:46 +02:00
Alexey Milovidov
d996dba7c3 Merge branch 'fix-msan-lower-upper' into many-fixes 2023-06-27 05:20:45 +02:00
Alexey Milovidov
1d55be0bdc Merge branch 'replace-trycatch' of github.com:rschu1ze/ClickHouse into many-fixes 2023-06-27 05:19:06 +02:00
Alexey Milovidov
e81b418137 Merge branch 'remove-siphash64-reference-keyed' into many-fixes 2023-06-27 05:16:37 +02:00
Alexey Milovidov
93884f4d34 Merge branch 'generic-transform' into many-fixes 2023-06-27 05:16:16 +02:00
Dmitry Kardymon
5521bf3f35 Fix null constant case 2023-06-26 20:19:34 +00:00
Robert Schulze
45c263cbb5
Replace try/catch logic in hasTokenOrNull() by sth more lightweight 2023-06-26 15:06:58 +00:00
Dmitry Kardymon
7d4e7e320d Impelement support for function range of Nullable argument 2023-06-26 12:03:25 +00:00
Dmitry Kardymon
c85ade9c27 Add const multiplier 2023-06-26 07:44:19 +00:00
李扬
0e15266170
Merge branch 'master' into improve_geohash 2023-06-26 14:54:44 +08:00
Alexey Milovidov
8e6f665585 Fix build 2023-06-26 05:57:38 +02:00
Alexey Milovidov
b8e6bd3299
Merge branch 'master' into refactor-subqueries-for-in 2023-06-26 06:05:12 +03:00
Alexey Milovidov
477b707ff1 Revert "Merge pull request #50951 from ZhiguoZh/20230607-toyear-fix"
This reverts commit 6bbd0d144d, reversing
changes made to 74cb79769b.
2023-06-26 02:02:24 +02:00
Alexey Milovidov
071cd58be8 Fix "logical error" in addressToLineWithInlines 2023-06-25 08:31:02 +02:00
Alexey Milovidov
650e80663c Fix MSan report in lowerUTF8/upperUTF8 2023-06-25 05:59:02 +02:00
Alexey Milovidov
bd7913a227 Delete a line 2023-06-25 02:39:25 +02:00
Alexey Milovidov
207cd69957 Remove wrong code 2023-06-25 02:37:10 +02:00
Alexey Milovidov
3ed86867f8 Remove sipHash128ReferenceKeyed 2023-06-24 23:06:13 +02:00
Alexey Milovidov
a7febd1c13 Backward compatibility 2023-06-24 08:28:23 +02:00
Alexey Milovidov
ed3ead3493 Add support for Nullable 2023-06-24 07:23:17 +02:00
Alexey Milovidov
3746e274b8 Support empty arrays 2023-06-24 07:23:15 +02:00
Alexey Milovidov
cb2d395410 Add generic implementation of function transform 2023-06-24 06:52:28 +02:00
Alexey Milovidov
396eb70426 Remove garbage from function transform 2023-06-24 05:49:12 +02:00
Alexey Milovidov
786987a29a Remove garbage from function transform 2023-06-24 05:49:12 +02:00
Yakov Olkhovskiy
09806bc363
Merge branch 'master' into cast-ipv6-to-ipv4 2023-06-23 10:53:46 -04:00
Dmitry Kardymon
2d11ce43f1 Build fix 2023-06-23 05:17:01 +00:00
Dmitry Kardymon
d2635bff64 Merge remote-tracking branch 'origin/master' into ADQM-868 2023-06-22 19:56:15 +00:00
Dmitry Kardymon
65e5d40cae Fix formatDateTime() with fractional negative datetime64 2023-06-22 19:38:41 +00:00
avogar
03f820bc4a Merge branch 'master' of github.com:ClickHouse/ClickHouse into structure-to-schema 2023-06-22 18:46:01 +00:00
avogar
4060beae49 Structure to CapnProto/Protobuf schema take 1 2023-06-22 18:00:00 +00:00
Andrey Zvonov
d4316c7189
Merge branch 'master' into zvonand-implicit-tz 2023-06-22 17:23:20 +02:00
Nikolai Kochetov
22e49748b5 Cleanup. 2023-06-22 14:23:04 +00:00
Nikolai Kochetov
a940031878 Merge branch 'master' into refactor-subqueries-for-in 2023-06-22 12:18:48 +02:00
Sema Checherinda
01de36f1fa
Merge pull request #50395 from CheSema/better-log
require `finalize()` call before d-tor for all writes buffers
2023-06-21 21:12:02 +02:00
Alexey Milovidov
f0d93d5b60
Merge pull request #51199 from ClickHouse/empty_array_get_name
Avoid initializing DateLUT from emptyArray function registration
2023-06-21 20:29:28 +03:00
Alexander Gololobov
a708adecee Pass element type as param to ctor 2023-06-21 14:04:45 +02:00
Andrey Zvonov
b4f2e4020d
Merge branch 'master' into zvonand-implicit-tz 2023-06-21 13:41:35 +02:00
Dmitry Kardymon
d58152cb82 Add constants / fix tests 2023-06-21 08:04:40 +00:00
Sema Checherinda
9b0c3359cf
Merge branch 'master' into better-log 2023-06-20 20:37:36 +02:00
Dmitry Kardymon
cda37f4d73 Fix negative support for date_diff/age(), fix whole int TransformDateTime64 2023-06-20 18:31:04 +00:00
Alexey Milovidov
ced1ae7287
Update emptyArray.cpp 2023-06-20 21:20:25 +03:00
Alexander Gololobov
29f6ce871d Avoid initializing DateLUT from emptyArray function registration 2023-06-20 19:00:41 +02:00
Dmitry Kardymon
d1cb371d8d Style fix (whitespaces) 2023-06-20 08:53:25 +00:00
Maksim Kita
7e5017dd31 Fixed tests 2023-06-20 11:42:22 +03:00
Maksim Kita
aa28a1f259 Fixed tests 2023-06-20 11:42:22 +03:00
Maksim Kita
6e26fde707 Updated tests 2023-06-20 11:42:22 +03:00
Maksim Kita
129b97c727 JIT infrastructure refactoring 2023-06-20 11:42:22 +03:00
Dmitry Kardymon
792cdb6da5 Add millisecond support to age() / add tests 2023-06-20 08:26:59 +00:00
Andrey Zvonov
07191ce10d
Merge branch 'master' into zvonand-implicit-tz 2023-06-20 00:24:53 +02:00
Sergei Trifonov
5867f39fc7
Merge pull request #50675 from ClickHouse/unify-priorities-pools
Unify priorities for connection pools
2023-06-19 17:16:15 +02:00
Nikolai Kochetov
8e7d06e0a4 Remove isReady from FutureSet iface. 2023-06-19 12:56:24 +00:00
Sema Checherinda
cf31fdb4d5 no finalize at d-tor in compression 2023-06-16 16:38:18 +02:00
Sema Checherinda
1cb02e2710 do call finalize for all buffers 2023-06-16 16:38:18 +02:00
Dmitry Kardymon
02b5b50e41 Add milli/micro seconds support for date_diff 2023-06-16 12:39:46 +00:00
zvonand
4155d13d69 merge master and resolve conflict 2023-06-16 02:20:32 +02:00
zvonand
e60506f41b changes requested in review 2023-06-16 02:16:04 +02:00
Zhiguo Zhou
d780d0bab1 fix style
Move error throws in Transform to FunctionDateOrDateTimeToSomething.
2023-06-15 21:48:02 +08:00
Han Fei
9e81b2fd5d fix style 2023-06-15 21:48:02 +08:00
Zhiguo Zhou
d14299eb09 The general optimization of predicates with date/datetime converters
As is suggested in issue #15257, the function preimage is a general
solution to the optimization problem with predicates containing the
date and datetime converters. This commit implements the idea by
adding the new methods, hasInformationAboutPreimage and getPreimage,
to IFunction/IFunctionBase, and having the specific convert functions
define their own preimage. Moreover, we added a new pass in the
TreeOptimizer and a new AST visitor for in-place rewriting the AST
with the converters' preimage.

Specifically, the optimization is applied to toYear and toYYYYMM.
2023-06-15 21:48:02 +08:00
Kseniia Sumarokova
31e08635bf
Merge branch 'master' into unify-priorities-pools 2023-06-15 12:51:45 +02:00
Robert Schulze
edd29492c3
Merge pull request #50893 from rschu1ze/snowflake-crash
Fix LOGICAL_ERROR in snowflakeToDateTime*()
2023-06-14 09:42:21 +02:00
Robert Schulze
76f69f2b44
Revert overengineering 2023-06-13 15:52:06 +00:00
Robert Schulze
3e3b8ff5f6
More robustness 2023-06-13 12:24:31 +00:00
FFFFFFFHHHHHHH
80a897639e Merge remote-tracking branch 'origin/master' into jaccard_similarity 2023-06-13 19:31:04 +08:00
Kseniia Sumarokova
0ab3dc9261
A bit safer UserDefinedSQLFunctionVisitor (#50913)
* Update UserDefinedSQLFunctionVisitor.cpp

* Update UserDefinedSQLFunctionVisitor.cpp

---------

Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-06-13 11:25:13 +02:00
Robert Schulze
79bc884733
Stabilize tests 2023-06-13 08:56:22 +00:00
ltrk2
edb4a644b1 Update FunctionsCodingIP.cpp 2023-06-12 14:23:22 -04:00
ltrk2
a4285d56b2 Fix compilation error on big-endian platforms 2023-06-12 14:23:22 -04:00
Robert Schulze
65d83e45cb
Fix crash in snowflakeToDateTime(), follow-up to #50834 2023-06-12 16:21:49 +00:00
Robert Schulze
128e8c20d5
Merge pull request #50709 from arenadata/ADQM-867
Added numeric arguments support to some Date/DateTime conversion functions
2023-06-12 17:08:14 +02:00
Dmitry Kardymon
9fd3f197c6
Merge branch 'master' into ADQM-867 2023-06-11 22:06:37 +03:00
Robert Schulze
2146c35608
Fix style 2023-06-11 07:40:39 +00:00
Robert Schulze
72b9d75a84
Add compat setting for non-const timezones
SQL function toTimezone() converts a Date or DateTime into another
timezone. The problem is that the timezone is part of the Date /
DateTime type but not part of the internal representation (value). This
led to the fact that toTimeZone() wqith non-const timezones produced
wrong and misleading results until #48471 (shipped with v23.4) enforced
a const timezone.

Unfortunately, this PR also broke existing table definitions with
non-const timezones, e.g. in ALIAS expressions. So while #48471
addressed the issue appropriately, it is really backwards-incompatible.

This PR adds a setting to toggle the behavior and makes it also part of
the compatibility profile.
2023-06-10 16:56:42 +00:00
Nikolai Kochetov
6ce8329bda Merge branch 'master' into refactor-subqueries-for-in 2023-06-09 20:04:27 +02:00
Dmitry Kardymon
d0c2c1dbad Add test and reorder if's 2023-06-09 12:06:43 +00:00
Dmitry Kardymon
7a02a70ad4 Add value to exceptions text 2023-06-09 11:11:49 +00:00
Dmitry Kardymon
de70e322cf Fix by pull request comments 2023-06-09 10:29:44 +00:00
Andrey Zvonov
d95be4162f
Merge branch 'master' into zvonand-implicit-tz 2023-06-08 18:34:45 +03:00
Dmitry Kardymon
7263769d20 Add constexpr / fix date check 2023-06-08 06:12:54 +00:00
Nikita Mikhaylov
c0f2141bd0
Revert "date_trunc function to always return DateTime type" (#50670) 2023-06-07 19:51:41 +02:00
serxa
2df0e0c669 Unify priorities for connections 2023-06-07 16:25:52 +00:00
Dmitry Kardymon
cf886d8ced Remove IsConvertible() 2023-06-06 11:08:21 +00:00
robot-ch-test-poll
e1889ffb3a
Merge pull request #50529 from kitaisreal/function-if-constant-folding
Function if constant folding
2023-06-05 17:29:29 +02:00
Maksim Kita
c860db0fb7 Fixed tests 2023-06-05 10:32:46 +03:00
johanngan
8d4206df66 Review comments: Use constexpr-if in more places
Also add a comment about the apparent lack of type checking on the limit
column.
2023-06-04 23:46:04 -05:00
johanngan
c0f162c5b6 Add dictGetAll function for RegExpTreeDictionary
This function outputs an array of attribute values from all regexp nodes
that matched in a regexp tree dictionary. An optional final argument can
be passed to limit the array size.
2023-06-04 23:46:04 -05:00
Lirikl
c645d5f5d1 add more comments 2023-06-05 02:21:50 +03:00
Azat Khuzhin
bf127f4e1e MSan support for Rust
Previously you have to unpoison memory from the Rust, however Rust does
supports MSan, so let's simply use it.

But for this we need nightly Rust and recompile standard library.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-06-04 23:04:55 +02:00
Dmitry Kardymon
c032dee3b4 Merge remote-tracking branch 'origin/master' into ADQM-867 2023-06-04 18:45:47 +00:00
Maksim Kita
46cbdeeb7e Fixed tests 2023-06-04 15:02:46 +03:00
Maksim Kita
7a7e03a2ff Function if constant folding 2023-06-03 14:16:59 +03:00
Alexey Milovidov
054b908b9c
Merge pull request #50416 from ClickHouse/revert-49656-rs/entropy-learned-hashing
Revert "Add SQL functions for Entropy Learned Hashing"
2023-06-03 06:50:48 +03:00
Kruglov Pavel
f87f98fb80
Merge pull request #47409 from Avogar/random-structure
Add new function generateRandomStructure
2023-06-02 18:50:35 +02:00
Robert Schulze
12993890a8
Merge branch 'master' into revert-49656-rs/entropy-learned-hashing 2023-06-02 15:32:33 +02:00
Dmitry Kardymon
fa5f890a7a Added ru function descriptions (docs) 2023-06-02 12:03:50 +00:00
Robert Schulze
7070eac9db
Merge branch 'ClickHouse:master' into fix-const-int-hashing 2023-06-02 10:57:18 +02:00
Dmitry Kardymon
c7088a8180 Trying to fix build 2023-06-02 07:26:55 +00:00
Dmitry Kardymon
8a10baec7f Add dateTime range check 2023-06-02 06:25:00 +00:00
Andrey Zvonov
2e427ee028
Merge branch 'master' into zvonand-implicit-tz 2023-06-02 01:15:56 +03:00
Nikolai Kochetov
92859ebb3b Fixing more tests. 2023-06-01 21:15:15 +00:00
Dmitry Kardymon
a22e80eed5 Remove whitespaces 2023-06-01 19:52:48 +00:00
Dmitry Kardymon
38abcd1c44 Add nullable support to DateTimeTransformImpl 2023-06-01 19:25:53 +00:00
Dmitry Kardymon
54d526c75c Add cast type supprt to DateTimeTransformImpl 2023-06-01 14:22:57 +00:00
Robert Schulze
45b1fcdeda
Merge pull request #50315 from arenadata/ADQM-810
Add new function toLastDayOfWeek()
2023-06-01 16:19:14 +02:00
Robert Schulze
03628bde42
Fix hashing of const integer values 2023-06-01 12:54:34 +00:00
Robert Schulze
93ba75b370
Remove parentheses from single-line if/for 2023-06-01 12:51:38 +00:00
Robert Schulze
56fa98cb77
Rename variables for better readability 2023-06-01 12:51:30 +00:00
Alexander Tokmakov
9a2b3afb7e
Revert "Fix msan issue in keyed siphash" 2023-06-01 15:02:32 +03:00
Kruglov Pavel
7485962443
Merge pull request #50343 from Avogar/fix-bit-shift-func
Fix bitShift* functions with both constant arguments
2023-06-01 13:53:36 +02:00
Robert Schulze
08d98329b0
Revert "Add SQL functions for Entropy Learned Hashing" 2023-06-01 10:12:09 +02:00
Yakov Olkhovskiy
3af7e0a6fa
better exception message 2023-05-31 11:26:58 -04:00
Yakov Olkhovskiy
0d4ed32bac
better exception message 2023-05-31 11:25:33 -04:00
Robert Schulze
c5343679df
Merge branch 'master' into msan-siphash-keyed 2023-05-31 09:05:24 +02:00
Robert Schulze
fc157b3dad
Merge branch 'master' into msan-siphash-keyed 2023-05-30 21:30:33 +02:00
Nikolai Kochetov
8cec00dd6e Merge branch 'master' into refactor-subqueries-for-in 2023-05-30 18:08:37 +02:00
Dmitry Kardymon
a48c4fd370 Merge remote-tracking branch 'origin/master' into ADQM-884 2023-05-30 14:56:37 +00:00
avogar
c87e8c1f23 Fix bitShift* functions with both constant arguments 2023-05-30 12:12:54 +00:00
Dmitry Kardymon
c25980bcf4 Trying to fix toDateOrDefault() 2023-05-30 12:02:44 +00:00
Robert Schulze
1cbce21968
Better, pt. II 2023-05-30 11:46:23 +00:00
Andrey Zvonov
87fc780c14
Merge branch 'master' into zvonand-implicit-tz 2023-05-30 13:13:46 +03:00
Robert Schulze
2d06947522
Better 2023-05-30 09:06:45 +00:00
Robert Schulze
fb6c4f2802
Fix msan issue, pt. II 2023-05-30 08:51:44 +00:00
Victor Krasnov
6c94632d47 Deprive toStartOfWeek and toLastDayOfWeek functions of in-source documentation 2023-05-29 22:10:34 +00:00
Robert Schulze
516fa1c375
Merge branch 'master' into rs/entropy-learned-hashing 2023-05-29 17:40:14 +02:00
Victor Krasnov
0ad5b9f598 Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-810-dev 2023-05-29 08:26:26 +00:00
Robert Schulze
41d60f0be3
Fix style 2023-05-29 08:08:47 +00:00
Maksim Kita
7ef20bbdcd Function equals NaN fix 2023-05-28 17:02:46 +03:00
FFFFFFFHHHHHHH
fe7f247be6
Merge branch 'master' into jaccard_similarity 2023-05-27 13:34:49 +08:00
Robert Schulze
f49160ef4e
Build partial key positions from entire training data 2023-05-26 15:27:56 +00:00
Robert Schulze
2298eeb2b2
Merge branch 'master' into rs/entropy-learned-hashing 2023-05-26 12:04:49 +02:00
Nikolai Kochetov
b5b261b22c Merge branch 'master' into refactor-subqueries-for-in 2023-05-25 21:22:06 +02:00
Robert Schulze
ad4a21034f
Fix msan issue in keyed siphash
Issue:
https://s3.amazonaws.com/clickhouse-test-reports/0/ffdd91669471f4934704f98f0191524496b4e85b/fuzzer_astfuzzermsan/report.html

Repro:
SELECT hex(sipHash128ReferenceKeyed((toUInt64(2), toUInt64(-9223372036854775807)))) GROUP BY (toUInt64(506097522914230528), toUInt64(now64(2, NULL + NULL), 1084818905618843912)), toUInt64(2), NULL + NULL, char(-2147483649, 1)

Minimal repro:
SELECT sipHash64Keyed((2::UInt64, toUInt64(2)), 4) GROUP BY toUInt64(2)
2023-05-25 17:52:03 +00:00
Robert Schulze
eca08438f4
Fix macos build 2023-05-25 17:05:18 +00:00
Nikolai Kochetov
30ff5113d9 Fixing more tests. 2023-05-25 13:33:52 +00:00
Robert Schulze
8804dfd4b0
Fix resizing 2023-05-25 11:57:09 +00:00
Victor Krasnov
03ca3f96d2 Add built-in documentation to toStartOfWeek and toLastDayOfWeek functions 2023-05-24 17:40:21 +00:00
taiyang-li
87907dafa7 fix code style 2023-05-24 14:27:37 +08:00
Robert Schulze
889489b02e
Merge branch 'master' into space 2023-05-23 23:18:19 +02:00
Robert Schulze
285e8f4ae1
Protect against DOS 2023-05-23 12:16:49 +00:00
Robert Schulze
f4c73e94d2
Merge pull request #49989 from arenadata/ADQM-811
Add support of Date|Date32 arguments to the toUnixTimestamp() function
2023-05-23 08:55:56 +02:00
Robert Schulze
d9a7227cf4
Fix style check 2023-05-23 06:49:19 +00:00
avogar
646eeb63a4 Fix build 2023-05-22 19:46:05 +00:00
avogar
4f85d6a1bb Merge branch 'master' of github.com:ClickHouse/ClickHouse into random-structure 2023-05-22 19:43:24 +00:00
Robert Schulze
d76498dca0
reserve() --> resize() 2023-05-22 19:19:08 +00:00
Robert Schulze
d5cfcdfae1
String terminator: \n --> \0 2023-05-22 19:10:03 +00:00
Robert Schulze
df436b2cd4
Spark compatibility: Add new function space() 2023-05-22 14:52:51 +00:00
FFFFFFFHHHHHHH
656d6abb2e fix style 2023-05-22 22:49:02 +08:00
Nikolai Kochetov
ff6400f91a Merge branch 'master' into refactor-subqueries-for-in 2023-05-22 13:07:51 +02:00
Maksim Kita
804e5e12ba JIT compilation not equals NaN fix 2023-05-22 13:14:27 +03:00
FFFFFFFHHHHHHH
c7aff9164a
Merge branch 'master' into jaccard_similarity 2023-05-22 17:34:33 +08:00
FFFFFFFHHHHHHH
ceecb1488a add function arrayJaccardIndex 2023-05-22 17:29:52 +08:00
Victor Krasnov
98aace14ae Add DATE_SECONDS_PER_DAY macro definition to replace the numeric literal 86400 2023-05-22 09:23:23 +00:00
taiyang-li
056e5824b5 remove useless code 2023-05-22 16:02:42 +08:00
taiyang-li
1f91a75b54 fix bugs of geoHashEncode 2023-05-22 15:52:58 +08:00
taiyang-li
e1bf96a786 finish dev 2023-05-22 14:29:15 +08:00
zvonand
8c816a5c4a update 2023-05-22 01:00:40 +02:00
zvonand
af5793b26e fix incode docs 2023-05-20 16:38:45 +02:00
vdimir
8b77e2096c
Merge pull request #49760 from arthurpassos/extract_kv_ignore_kv_delimiter_when_reading_value 2023-05-20 13:27:59 +02:00
zvonand
7dccb51bc0 fix conflict and update 2023-05-19 23:40:51 +02:00
Victor Krasnov
3a3e413552 Implement toLastDayWeek function 2023-05-18 21:47:52 +00:00
Yakov Olkhovskiy
9443457ea0
Merge branch 'master' into cast-ipv6-to-ipv4 2023-05-18 14:25:18 -04:00
Victor Krasnov
83d066e5cf Re-enable Date and Date32 as parameters of toUnixTimestamp function 2023-05-18 09:07:27 +00:00
FFFFFFFHHHHHHH
fd1e6557e1
Merge branch 'master' into dot_product 2023-05-17 14:40:06 +08:00
fhbai
c104354894 fix 2023-05-17 14:39:30 +08:00
Kruglov Pavel
d50e6fe868
Fix build after bad conflicts resolution 2023-05-16 15:35:16 +02:00
Kruglov Pavel
b6d2a84e83
Try to fix build 2023-05-16 12:01:55 +02:00
Kruglov Pavel
362fa4849f
Try to fix build 2023-05-15 17:56:53 +02:00
vdimir
07de815d96
Merge pull request #49836 from arthurpassos/add_extract_kv_max_number_of_pairs_safeguard 2023-05-15 16:31:01 +02:00
Arthur Passos
e8f971aa2b use LIMIT_EXCEEDED instead of TOO_LARGE_MAP_SIZE 2023-05-15 09:25:10 -03:00
Arthur Passos
b06e34a77f Accept key value delimiter as part of value 2023-05-15 13:52:47 +02:00
Kruglov Pavel
c901d2a7be
Fix style 2023-05-15 13:46:18 +02:00
avogar
aa7ab1f23b Fix comments 2023-05-15 11:20:03 +00:00
Kruglov Pavel
558eda4146
Merge pull request #49412 from azat/block-use-dense-hash-map
Switch Block::NameMap to google::dense_hash_map over HashMap
2023-05-15 12:22:55 +02:00
Alexey Milovidov
1db35384d9 Support bitCount for big integers 2023-05-15 03:30:03 +02:00
robot-clickhouse
33ca77b4ca
Merge pull request #49843 from azat/joinGet-non-deterministic
[RFC] Mark joinGet() as non deterministic (so as dictGet)
2023-05-14 11:12:12 +02:00
Alexey Milovidov
4f7bcf01f6
Merge pull request #49858 from ucasfl/bit-hamming
bitHammingDistance support String and FixedString data type
2023-05-14 08:28:01 +03:00
Robert Schulze
c4f7c3daa1
Merge branch 'master' into rs/entropy-learned-hashing 2023-05-13 17:33:12 +02:00
flynn
2f88605c3d remove space
format
2023-05-13 14:03:21 +00:00
flynn
2ffd00df8a bitHammingDistance support String and FixedString data type 2023-05-13 13:56:36 +00:00
Lirikl
cb2976491b fix empty arrays bug 2023-05-13 11:43:08 +03:00
Lirikl
9e91e19f2b ClangTidy fix 2023-05-13 11:12:47 +03:00
Azat Khuzhin
a96067987e Mark joinGet() as non deterministic (so as dictGet)
joinGet() should not be considered as deterministic function, since
shards could have different data in tables.

Also since now there is allow_nondeterministic_mutations, it could be
used as a workaround for this backward incompatible change.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-13 08:12:53 +02:00
Alexey Milovidov
5a44dc26e7 Fixes for clang-17 2023-05-13 02:57:31 +02:00
Lirikl
2e6a48fbcf fix documentation 2023-05-13 01:05:43 +03:00
Lirikl
f09a22148e fix documentation 2023-05-12 23:22:29 +03:00
avogar
602b9a740e Make better, allow generateRandom without structure argument 2023-05-12 19:39:33 +00:00
Lirikl
a32cbfa828 Merge branch 'master' into arrayFold 2023-05-12 21:52:16 +03:00
Lirikl
28589d8d67 use new Function Documentation 2023-05-12 21:49:28 +03:00
Lirikl
6c31772f36 Documentation include 2023-05-12 19:10:58 +03:00
Yakov Olkhovskiy
24067ea977 allow conversion for toIPv4OrDefault 2023-05-12 15:54:50 +00:00
Arthur Passos
b1549a19a5 Use 0 as unlimited 2023-05-12 11:19:35 -03:00
Arthur Passos
1e3b7af97a Add setting to limit the max number of pairs produced by extractKeyValuePairs 2023-05-12 10:26:05 -03:00
Lirikl
c213ee1037 remove extra include 2023-05-12 15:58:48 +03:00
Robert Schulze
b9c185af44
Merge pull request #49678 from azat/build/llvm-16
Switch to LLVM/clang 16 (16.0.3)
2023-05-12 13:47:36 +02:00
Anton Popov
3351ef7398
Merge pull request #49789 from CurtizJ/fix-array-map-tuple
Fix `arrayMap` with array of tuples with single argument
2023-05-12 13:27:40 +02:00
Lirikl
c19a13e75b remove accidental garbage 2023-05-12 14:05:24 +03:00
Lirikl
0334edf35b fix Documentation 2023-05-12 13:04:07 +03:00
Lirikl
03f5465106 fix description 2023-05-12 12:55:54 +03:00
Lirikl
2c9635cc8d fix style 2023-05-12 12:49:16 +03:00
Robert Schulze
922420420c
Merge pull request #49300 from ClickHouse/rs/functdocs
Introduce more fields for in-source function documentation
2023-05-12 11:36:04 +02:00
Lirikl
b2e4f3b8aa Merge branch 'arrayFold' of github.com:Lirikl/ClickHouse into arrayFold 2023-05-12 12:25:26 +03:00
Lirikl
65cdae872a fix style 2023-05-12 12:23:36 +03:00
Lirikl
23dec236c2 add description 2023-05-12 12:20:52 +03:00
Robert Schulze
d15f19912f
Merge pull request #49198 from ClibMouse/s390x_reinterpretas_fix
Fix reinterpretAs*() on big endian machines
2023-05-12 10:33:50 +02:00
Lirikl
74ab98ac6d
Merge branch 'master' into arrayFold 2023-05-12 11:09:00 +03:00
Azat Khuzhin
2c40dd6a4c Switch Block::NameMap to google::dense_hash_map over HashMap
Since HashMap creates 2^8 elements by default, while dense_hash_map
should be good here.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-12 05:52:57 +02:00
Alexey Milovidov
76f7f5750d
Merge pull request #49799 from rschu1ze/demange
Typo: demange.cpp --> demangle.cpp
2023-05-12 02:01:49 +03:00
Robert Schulze
8ca804d40e
Typo: demange.cpp --> demangle.cpp 2023-05-11 21:32:12 +00:00
Lirikl
1a8846cf00 non const acum 2023-05-11 22:54:50 +03:00
Lirikl
67e28aecc3 style 2023-05-11 22:54:31 +03:00
Lirikl
213ac1eba4 basic version 2023-05-11 22:54:26 +03:00
Lirikl
39a505e3f3 init 2023-05-11 22:54:00 +03:00
Robert Schulze
bbfb74ab70
Update comment 2023-05-11 19:06:04 +00:00
Robert Schulze
4a168444fa
Store keys as std::string_view 2023-05-11 19:03:17 +00:00
Robert Schulze
37c1b1aa58
Some fixups 2023-05-11 18:49:05 +00:00
Suzy Wang
70db49cdeb
Merge branch 'master' into s390x_reinterpretas_fix 2023-05-11 14:41:57 -04:00
Yakov Olkhovskiy
108e256578 allow to cast IPv4 to IPv6 2023-05-11 16:17:52 +00:00
Anton Popov
84aa97b738 fix arrayMap with array of tuples with single argument 2023-05-11 14:52:01 +00:00
Azat Khuzhin
00fdfa115f Suppress MSan warning in NgramDistanceImpl::unrollLowering()
NgramDistanceImpl::unrollLowering() relies on the fact that PODArray has
padding and it is OK to access more items.

Here is an MSan report:

    ==656==WARNING: MemorySanitizer: use-of-uninitialized-value
        0 0x557fd825485f in DB::NgramDistanceImpl<4ul, char8_t, false, true, false>::vectorConstant(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, DB::PODArray<float, 4096ul, Allocator<false, false>, 63ul, 64ul>&) (/usr/bin/clickhouse+0x124d885f) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        1 0x557fd824eb83 in DB::FunctionsStringSimilarity<DB::NgramDistanceImpl<4ul, char8_t, false, true, false>, DB::NameNgramSearchCaseInsensitive>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/usr/bin/clickhouse+0x124d2b83) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        2 0x557fd50023b7 in DB::FunctionToExecutableFunctionAdaptor::executeImpl() const (/usr/bin/clickhouse+0xf2863b7) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)

      Uninitialized value was stored to memory at
        0 0x557fd4f8da5a in __msan_memcpy (/usr/bin/clickhouse+0xf211a5a) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        1 0x557fd8253803 in DB::NgramDistanceImpl<4ul, char8_t, false, true, false>::vectorConstant(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, DB::PODArray<float, 4096ul, Allocator<false, false>, 63ul, 64ul>&) (/usr/bin/clickhouse+0x124d7803) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        2 0x557fd824eb83 in DB::FunctionsStringSimilarity<DB::NgramDistanceImpl<4ul, char8_t, false, true, false>, DB::NameNgramSearchCaseInsensitive>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName>> const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/usr/bin/clickhouse+0x124d2b83) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        3 0x557fd50023b7 in DB::FunctionToExecutableFunctionAdaptor::executeImpl() const (/usr/bin/clickhouse+0xf2863b7) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)

      Uninitialized value was stored to memory at
        0 0x557fd4f8da5a in __msan_memcpy (/usr/bin/clickhouse+0xf211a5a) (BuildId: 76773125d8739591c75d4f4d263a2ffe7ca96855)
        1 0x5580061699f5 in detail::memcpySmallAllowReadWriteOverflow15Impl(char*, char const*, long) build_docker/./src/Common/memcpySmall.h:42:13
        2 0x5580061699f5 in memcpySmallAllowReadWriteOverflow15(void*, void const*, unsigned long) build_docker/./src/Common/memcpySmall.h:57:5
        3 0x5580061699f5 in DB::ColumnString::replicate(DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 63ul, 64ul> const&) const build_docker/./src/Columns/ColumnString.cpp:462:13
        4 0x558005d3fae4 in DB::ColumnConst::convertToFullColumn() const build_docker/./src/Columns/ColumnConst.cpp:48:18

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-11 16:30:17 +02:00
avogar
5ed1b12e19 Fix build 2023-05-11 12:12:43 +00:00
avogar
604bd24995 Refactor, remove no more needed arguments 2023-05-11 11:58:08 +00:00
Robert Schulze
c2a4d89b6f
Fix style 2023-05-11 09:29:05 +00:00
Yakov Olkhovskiy
58bdcc2931 allow to cast IPv6 to IPv4 for address in proper mapping block 2023-05-10 23:55:13 +00:00
Suzy Wang
d267c914c3
Merge branch 'master' into s390x_reinterpretas_fix 2023-05-10 16:08:50 -04:00
Suzy Wang
24b6ff47ac fix format and some more fix for fixedstring 2023-05-10 13:06:30 -07:00
avogar
9096f62efc Merge branch 'master' of github.com:ClickHouse/ClickHouse into random-structure 2023-05-10 18:46:19 +00:00
Robert Schulze
9795d5403f
Merge branch 'master' into rs/msan-randomStringUTF8 2023-05-10 20:16:49 +02:00
Robert Schulze
374dbd9c39
Fix msan issue in randomStringUTF8(<uneven number>) 2023-05-10 17:49:23 +00:00
Andrey Zvonov
9237b904be
Merge branch 'master' into zvonand-implicit-tz 2023-05-10 01:25:33 +02:00
zvonand
8d0644e793 cleanup 2023-05-09 23:02:03 +02:00
Suzy Wang
1b21f13605 ip encoding fix 2023-05-09 13:57:22 -07:00
zvonand
297188ce58 fix Date32 2023-05-09 22:37:25 +02:00
Suzy Wang
ce471a2e8b Updated code as suggested 2023-05-09 13:31:54 -07:00
zvonand
1751ccc7ac fix stateless 2023-05-09 14:18:04 +02:00
FFFFFFFHHHHHHH
4a10f4b3d0
Merge branch 'master' into dot_product 2023-05-09 12:06:28 +08:00
FFFFFFFHHHHHHH
79398f612f fix style 2023-05-09 11:50:38 +08:00
fhbai
a7e04b7576 fix return type 2023-05-09 11:36:15 +08:00
zvonand
3fedd683ef speedup vol. II 2023-05-08 22:28:31 +02:00
Robert Schulze
e9d9eda3a2
More typedef usage 2023-05-08 12:46:14 +00:00
Robert Schulze
6a454ed6c3
Add Entropies typedef 2023-05-08 12:41:30 +00:00
Robert Schulze
d2dc5e9fc8
Improve naming 2023-05-08 12:36:28 +00:00
Robert Schulze
8b77b706c4
Optimize allocations 2023-05-08 12:31:25 +00:00
Robert Schulze
d2216a4339
Remove leftover 2023-05-08 12:20:40 +00:00
Robert Schulze
1b7c207d7a
Replace ACM link by DOI link 2023-05-08 12:16:12 +00:00
Robert Schulze
fdabce9a68
Move chooseBytes() up 2023-05-08 12:15:19 +00:00
Robert Schulze
03e9522de4
Less namespace clutter 2023-05-08 12:13:52 +00:00
Robert Schulze
267e0c4ef5
More typedef usage 2023-05-08 12:12:24 +00:00
Robert Schulze
b9e8c52057
Fix function registration 2023-05-08 12:08:22 +00:00
Robert Schulze
bb5a25e81c
Fix typo 2023-05-08 12:05:44 +00:00
Robert Schulze
500f3d3951
Add SQL functions for Entropy Learned Hashing
Courtesy to @Dmitry909, I just wrapped up his work.
2023-05-08 10:18:55 +00:00
Robert Schulze
d8d2b0af76
Merge pull request #49466 from ucasfl/str_to_map
add alias str_to_map and mapFromString for extractKeyValuePairs
2023-05-08 10:11:06 +02:00
Alexey Milovidov
cf55aaa491 Merge branch 'master' into sleep-each-row-max-time 2023-05-08 06:39:14 +02:00
Alexey Milovidov
94c61a5e49 Merge branch 'master' into sleep-each-row-max-time 2023-05-08 00:38:44 +02:00
robot-clickhouse-ci-2
6c02b6b327
Merge pull request #49627 from ClickHouse/rs/obsolete-ccache-knob
CMake: Remove legacy switch for ccache
2023-05-08 00:16:09 +02:00
Robert Schulze
f4eabd967d
Merge pull request #49603 from ClickHouse/rs/makedate-mysql
Implement a MySQL-compatible variant of makeDate()
2023-05-07 21:51:03 +02:00
Alexey Milovidov
97d5b34254 Merge branch 'master' into sleep-each-row-max-time 2023-05-07 19:31:26 +02:00
Robert Schulze
e275da1d31
Remove deprecated logic for ccache 2023-05-07 15:41:56 +00:00
Robert Schulze
b995795971
Fix style 2023-05-07 13:27:57 +00:00
Robert Schulze
aa09b6154b
Various cleanups 2023-05-07 13:06:35 +00:00
Alexey Milovidov
72e1f751bb Fix error in #48300 2023-05-07 04:16:18 +02:00
Robert Schulze
c893302a08
Implement a MySQL-compatible variant of makeDate()
Fixes #49143
2023-05-06 20:11:36 +00:00
Robert Schulze
2986c28761
Small fixes 2023-05-06 18:12:10 +00:00
Robert Schulze
3dfc0bd265
Merge pull request #49413 from azat/build/headers
Slightly reduce inter-header dependencies
2023-05-05 23:37:58 +02:00
Robert Schulze
45c28e1221
Introduce more fields for in-source function documentation 2023-05-05 21:30:21 +00:00
Nikolai Kochetov
618486815b Merge branch 'master' into refactor-subqueries-for-in 2023-05-05 20:39:09 +02:00
zvonand
8338d54c34 Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz 2023-05-05 15:50:26 +02:00
zvonand
a218f010e8 First portion of speedup
Do not generate DateLUT for each serialized and deserialized
date
2023-05-05 14:12:14 +02:00
FFFFFFFHHHHHHH
d3e027390d
Merge branch 'master' into dot_product 2023-05-05 10:48:02 +08:00
Nikolai Kochetov
f598a39ea2 Refactor PreparedSets [3] 2023-05-04 17:54:08 +00:00
flynn
236a0d9da0 add alias str_to_map and mapFromString for extractKeyValuePairs 2023-05-03 15:46:17 +00:00
Alexander Tokmakov
e399903030
Merge pull request #48548 from ClickHouse/clusters_is_active_column
Add some columns to system.clusters
2023-05-03 17:42:40 +03:00
Alexander Tokmakov
1ec3040d0c
Merge pull request #49420 from ClickHouse/fix_00002
Fix some bad error messages
2023-05-03 13:33:53 +03:00
Azat Khuzhin
2b21b83979 Reduce inter-header dependencies
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-02 21:15:18 +02:00
Alexander Tokmakov
495325f664 fix some bad error messages, suppress others 2023-05-02 17:55:42 +02:00
Alexey Milovidov
582cf2ca84 Update tests 2023-04-29 19:48:33 +02:00
Alexey Milovidov
3de0c319c2 Add compatibility 2023-04-29 19:08:52 +02:00
Alexey Milovidov
c9e30d3cf5 Properly check the limit for sleepEachRow function. Add a setting function_sleep_max_microseconds_per_block 2023-04-29 19:04:20 +02:00
Alexey Milovidov
491c26fb0a Slight improvement in Disks interface 2023-04-29 18:55:19 +02:00
Shane Andrade
a60ee304b3
Merge branch 'master' into date-trunc-return-date-time 2023-04-28 09:16:40 -07:00
Alexey Milovidov
6dcfdbfaf2
Merge branch 'master' into clusters_is_active_column 2023-04-28 16:16:25 +03:00
Anton Popov
bbdfb9dcd2
Merge pull request #48300 from aiven-sal/aiven-sal/case2
Allow NULLs in CASE and transform
2023-04-28 14:58:47 +02:00
Alexey Milovidov
dc88c752fb
Merge branch 'master' into dot_product 2023-04-27 16:44:40 +03:00
Alexey Milovidov
fd3c588c68
Merge pull request #49200 from CurtizJ/better-map-concat
Allow using function `concat` with `Map` type
2023-04-27 16:40:42 +03:00
Alexey Milovidov
ed97e46d41
Merge pull request #49221 from Algunenano/conversion_typos
Fix some typos in conversion functions
2023-04-27 03:00:40 +03:00
Robert Schulze
ca62b3d177
Merge pull request #49183 from ClickHouse/rs/doc-makedate
Document makeDateTime() and its variants
2023-04-26 22:45:24 +02:00
Raúl Marín
7bdc5fa88f Fix some typos in conversion functions 2023-04-26 20:45:11 +02:00
Robert Schulze
76e80497ed
Fix replace[Regexp]{One,All}() with const haystacks 2023-04-26 18:18:11 +00:00
Anton Popov
871f9265cc allow using function 'concat' with Map type 2023-04-26 14:39:59 +00:00
Suzy Wang
6035f79bf6 fix reinterpretAs queries on s390x 2023-04-26 07:30:30 -07:00
Robert Schulze
ad15749b4e
Document makeDateTime() and its variants
Follow-up to #35628
2023-04-26 12:22:05 +00:00
Kseniia Sumarokova
b8f7abf507
Merge pull request #48768 from bigo-sg/improve_json_path
Improve jsonpath support in json functions
2023-04-26 12:50:54 +02:00
Salvatore Mesoraca
70a8d7ef08
Prevent types too large for UInt64 from being used 2023-04-26 10:46:35 +02:00
Salvatore Mesoraca
e2d4e08c3b
Fix more issues with Decimals
These issues were already present in the original code
2023-04-26 10:46:34 +02:00
Salvatore Mesoraca
5bbe0d472e
Rename variables with misleading names 2023-04-26 10:46:34 +02:00
Salvatore Mesoraca
5f589e20a3
Add missing check for argument type 2023-04-26 10:46:34 +02:00
Salvatore Mesoraca
d65f98ea25
Fix warning 2023-04-26 10:46:34 +02:00
Salvatore Mesoraca
0df0438f4b
Re-add specializations to improve performance 2023-04-26 10:46:33 +02:00
Salvatore Mesoraca
692229d653
Fix test 2023-04-26 10:46:32 +02:00
Salvatore Mesoraca
8c353bc505
Improve performance 2023-04-26 10:46:32 +02:00
Salvatore Mesoraca
4904eaf14e
Functions: allow caseWithExpression to correctly deal with NULLs
Closes #7237
2023-04-26 10:46:32 +02:00
Salvatore Mesoraca
c9828e6fa3
Functions: allow transform to deal with NULLs and simplify the code
The function has been completely rewritten to be able to handle
parameters in a generic way an support NULLs.

This is Part of the fix for #7237
2023-04-26 10:46:25 +02:00
Shane Andrade
855e3f84d2
Merge branch 'master' into date-trunc-return-date-time 2023-04-25 07:55:12 -07:00
Alexey Milovidov
93d6dddb97
Merge pull request #49044 from ucasfl/bitcount
bitCount support FixedString data type
2023-04-25 00:34:12 +03:00
mauidude
4b084c15d0 update tests, address code review comments 2023-04-24 21:28:07 +00:00
Alexander Tokmakov
332a736a59 Merge branch 'master' into clusters_is_active_column 2023-04-24 15:54:03 +02:00
Anton Popov
e2e62b32e5
Merge pull request #48071 from CurtizJ/rework-map-functions
Rework functions that work with `Map` columns
2023-04-24 14:51:02 +02:00
Vladimir C
6090648fc8
Merge pull request #43606 from arthurpassos/parsey_key_value_function 2023-04-24 11:03:28 +02:00
flynn
18a47337e9
Merge branch 'master' into bitcount 2023-04-24 14:46:47 +08:00
FFFFFFFHHHHHHH
dfb5999553
Merge branch 'master' into dot_product 2023-04-24 11:29:05 +08:00
lgbo-ustc
ac87a1c23a update 2023-04-24 10:47:20 +08:00
flynn
8ff9bc8e60 fix 2023-04-24 02:16:58 +00:00
Alexey Milovidov
ff5ec30b0b
Merge pull request #49005 from ClickHouse/fix-ibm
Reimplement #48986
2023-04-24 01:39:22 +03:00
flynn
fea16a749d fix 2023-04-23 11:31:23 +00:00
flynn
eaee22e792 fix 2023-04-23 04:28:41 +00:00
Alexey Milovidov
28e03f5781 Merge branch 'master' into fix-ibm 2023-04-23 06:01:41 +02:00
Alexey Milovidov
97124f3bd1 Minor change 2023-04-23 06:01:39 +02:00
Alexey Milovidov
54d10f87f2 Consistency of the LineAsString format 2023-04-23 05:50:46 +02:00
FFFFFFFHHHHHHH
7b24a70566
Merge branch 'master' into dot_product 2023-04-23 10:55:51 +08:00
FFFFFFFHHHHHHH
4145abf547 fix style 2023-04-23 04:04:05 +08:00
FFFFFFFHHHHHHH
79ae949b56 fix style 2023-04-23 03:35:09 +08:00
FFFFFFFHHHHHHH
34d82625b5 feat: add dotProduct for array 2023-04-23 02:58:00 +08:00
flynn
1b1f19816b Merge branch 'master' of github.com:ClickHouse/ClickHouse into bitcount 2023-04-22 17:23:30 +00:00
flynn
f4fe64335d support string 2023-04-22 17:21:43 +00:00
flynn
a6269bff57 fix build 2023-04-22 14:45:38 +00:00
flynn
9842b1a977 revert 2023-04-22 14:20:45 +00:00
Arthur Passos
434af1dc6d fix ut 2023-04-22 11:19:14 -03:00
flynn
18672c2d4b bitCount support FixedString data type 2023-04-22 14:17:31 +00:00
ltrk2
12cfc45b74 Fix build error for big-endian platforms 2023-04-21 13:52:19 -07:00
Arthur Passos
b7a5a86db2 fix comment 2023-04-21 14:28:10 -03:00
Arthur Passos
9c1d61ba0b address comments and update docs 2023-04-21 11:31:59 -03:00
Anton Popov
1b1a47e977 Merge remote-tracking branch 'upstream/master' into HEAD 2023-04-21 12:34:25 +00:00
Anton Popov
b321479af4 fix style-check 2023-04-21 12:32:35 +00:00
Alexey Milovidov
bd64a4a6fc
Merge pull request #48904 from ClickHouse/fix_set_withzk_and_analyzer
Fix segfault when set is not built yet
2023-04-21 15:14:23 +03:00
Alexey Milovidov
252c755323 Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-ibm 2023-04-21 12:39:13 +02:00
Alexey Milovidov
530b764953 Fix IBM 2023-04-21 12:38:45 +02:00
Andrey Zvonov
984e8fde41
Merge branch 'master' into zvonand-implicit-tz 2023-04-20 23:13:17 +02:00
Anton Popov
1f58dcabae
Merge branch 'master' into rework-map-functions 2023-04-20 18:44:40 +02:00
Anton Popov
7d0244d742
Update src/Functions/array/FunctionsMapMiscellaneous.cpp
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-04-20 18:18:47 +02:00
Anton Popov
9f59f3139e move code to cpp files 2023-04-20 16:17:30 +00:00
Arthur Passos
43841a6ee6 Merge branch 'master' into parsey_key_value_function 2023-04-20 10:05:34 -03:00
Arthur Passos
a03de85bab minor doc update 2023-04-20 10:01:34 -03:00
Vladimir C
e105a6e9bf
Merge pull request #48899 from ClickHouse/vdimir/bitnot_ubsan 2023-04-20 11:59:35 +02:00
Shane Andrade
6867101d8d
Update src/Functions/date_trunc.cpp
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2023-04-20 00:04:00 -07:00
Alexander Gololobov
e9739e5f8e
Merge branch 'master' into fix_set_withzk_and_analyzer 2023-04-19 13:31:12 +02:00
Robert Schulze
15db30618c
Various fixes and cleanups 2023-04-19 09:19:41 +00:00
lgbo-ustc
d8d7639ba7 fixed typos & style 2023-04-19 11:37:58 +08:00
lgbo-ustc
33bedc0291 improve jsonpath support in json functions 2023-04-19 11:37:58 +08:00
Alexander Gololobov
2a829d9838 Check getData() result in other places 2023-04-18 17:11:19 +02:00
vdimir
8199872558
bitNot marked as NO_SANITIZE_UNDEFINED 2023-04-18 13:38:41 +00:00
clundro
447d6cf153 [chore] add test for arrayCumSumNonNegative.
Signed-off-by: clundro <859287553@qq.com>
2023-04-18 01:36:38 +08:00
clundro
c02882fd79 [chore] add int128/256, uint128/256 for arrayDifference, arrayCumSum
1. add tests.

Signed-off-by: clundro <859287553@qq.com>
2023-04-18 01:05:08 +08:00
Shane Andrade
0521f58d6f undo automatic indentation 2023-04-17 15:06:07 +00:00
Shane Andrade
f2f47fc24d date_trunc function to always return DateTime type 2023-04-17 07:40:36 -07:00
Arthur Passos
c7d7df75f2 minor doc update 2023-04-17 11:20:03 -03:00
Arthur Passos
3380c91206 Add validation for number of arguments provided and update doc examples 2023-04-17 11:15:24 -03:00
Nikolay Degterinsky
1388154420
Merge pull request #48629 from bigo-sg/json_map_node
Support map type for JSONExtract
2023-04-15 01:02:09 +02:00
Dmitry Novik
352a240a20
Merge pull request #47984 from ClickHouse/optimize-compilation
Optimize compilation
2023-04-14 15:34:46 +02:00
zvonand
089306820f Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-implicit-tz 2023-04-14 13:21:49 +02:00
Robert Schulze
43b8cbc50c
Merge pull request #48737 from ClickHouse/rs/fix-wshadow
Remove `-Wshadow` suppression which leaked into global namespace
2023-04-13 21:18:50 +02:00
Dmitry Novik
5cc9b46f78 Merge remote-tracking branch 'origin/master' into optimize-compilation 2023-04-13 16:04:09 +02:00
Arthur Passos
88f1c969cc
Merge branch 'master' into parsey_key_value_function 2023-04-13 10:38:44 -03:00
Arthur Passos
3523c0fb0e fix escap sequences unit tests, values are not allowed to start with escape sequences anymore 2023-04-13 09:55:51 -03:00
Jordi Villar
eb32b710f0 Merge remote-tracking branch 'origin/master' into 16414-totimezone-throw 2023-04-13 14:03:45 +02:00
Jordi Villar
3e882e0c7d Remove unnecessary logger 2023-04-13 14:03:05 +02:00
Robert Schulze
658d6c8870
Merge pull request #48567 from FriendLey/test_soundex
add soundex function, issue #39880
2023-04-13 11:20:19 +02:00
Robert Schulze
7a21d5888c
Remove -Wshadow suppression which leaked into global namespace 2023-04-13 08:46:40 +00:00
FriendLey
50af10771e
Merge branch 'master' into test_soundex 2023-04-13 10:17:08 +08:00
Robert Schulze
700492f6d4
Fixes and refactorings for consistency with the remaining codebase 2023-04-12 22:41:26 +00:00
Robert Schulze
3f7ce60e03
Merge branch 'master' into rs/gcc-removal 2023-04-12 22:17:04 +02:00
Arthur Passos
41b4f8549f define ILLEGAL_TYPE_OF_ARGUMENT in ArgumentExtractor 2023-04-12 17:15:58 -03:00
Arthur Passos
ee6ad4a461 reject values starting with escape sequences if escaping support is turned on 2023-04-12 15:37:58 -03:00
Arthur Passos
a97fa9a449 add input arguments type validation 2023-04-12 15:36:30 -03:00
Alexander Tokmakov
69790b76b2 fix the same issue in other functions 2023-04-12 20:36:23 +02:00
Alexander Tokmakov
71258202bb Merge branch 'master' into 16414-totimezone-throw 2023-04-12 17:58:48 +02:00
zvonand
3f8956f854 remove additional logging 2023-04-12 17:45:11 +02:00
Nikolay Degterinsky
ff20acf076
Merge pull request #48445 from evillique/array-functions-date-datetime-support
Add support for Date/DateTime datatypes to arrayMin/Max, arrayDifference functions
2023-04-12 13:27:17 +02:00
FriendLey
63928c6df0
Merge branch 'master' into test_soundex 2023-04-12 19:06:05 +08:00
zvonand
2a9f28b73b resolve 2023-04-12 12:54:39 +02:00
zvonand
a9499eed79 moved getting server TZ DateLUT to separate place, upd tests and fix 2023-04-12 12:47:05 +02:00
taiyang-li
e29cce4db9 support map node for json extract 2023-04-12 10:18:07 +08:00
Robert Schulze
05606a8835
Clean up GCC warning pragmas 2023-04-11 18:21:08 +00:00
Robert Schulze
dcfd843b2d
Merge pull request #48489 from ClickHouse/rs/date_time-alias
Register datediff and trim aliases in system.functions
2023-04-11 19:53:44 +02:00
Alexander Tokmakov
dfff30e1a9 Merge branch 'master' into clusters_is_active_column 2023-04-11 16:32:15 +02:00
Robert Schulze
1fc5d92ae2
Merge pull request #48627 from ClickHouse/rs/formatdatetime-refactoring
Minor refactoring of formatDateTime()
2023-04-11 15:29:47 +02:00
FriendLey
e327371297
Merge branch 'master' into test_soundex 2023-04-11 21:02:01 +08:00
Robert Schulze
e08b7c8a53
Merge pull request #48422 from ClickHouse/rs/better-f-in-formatdatetime
MySQL compat: Align behavior of %f in formatDateTime() with parseDateTime()
2023-04-11 14:12:16 +02:00
Robert Schulze
4e52dc672e
Merge pull request #48420 from ClickHouse/rs/f
MySQL compat: Implement %f in parseDateTime()
2023-04-11 14:12:02 +02:00
FriendLey
8aa17dbffe remove return in void function. 2023-04-11 19:18:27 +08:00
Vasily Nemkov
e36addb96a Hackish way of setting up timezone on the client
Warning: lots of debug logging
2023-04-11 13:03:03 +02:00
FriendLey
ffa1a75fb5 Merge branch 'master' into test_soundex 2023-04-11 17:52:32 +08:00
Robert Schulze
4b61685c64
Minor refactoring of formatDateTime()
Don't explicitly specify literal length when the called functions can
compute it.
2023-04-11 07:43:24 +00:00
Robert Schulze
c3f976c58a
Move space check out of loop 2023-04-11 06:19:10 +00:00
Robert Schulze
b7d5df7aa1
Merge branch 'master' into rs/better-f-in-formatdatetime 2023-04-11 08:11:04 +02:00
FriendLey
910bd8a15f bugfix: fix access illegal address bugs. 2023-04-11 13:01:53 +08:00
FriendLey
6a3eb19821
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:52 +08:00
FriendLey
3d4c6e5a48
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:42 +08:00
FriendLey
baa29a5a2c
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:34 +08:00
FriendLey
0ac9f78c43
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:16 +08:00
FriendLey
a5d4a2065e
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:06 +08:00
Azat Khuzhin
79b83c4fd2 Remove superfluous includes of logger_userful.h from headers
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-10 17:59:30 +02:00
Arthur Passos
b062ab5b4f
Merge branch 'master' into parsey_key_value_function 2023-04-10 10:32:01 -03:00
FriendLey
2a0de4bc16
Update src/Functions/soundex.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-10 21:14:49 +08:00
FriendLey
a67ea35875 format code and replace std function with Common utils. 2023-04-10 19:12:17 +08:00
FriendLey
9d5fc02c5e update code style. 2023-04-10 17:22:15 +08:00
FriendLey
890d4655a0 update code styl. 2023-04-10 17:06:31 +08:00
Nikolay Degterinsky
6debaccd85 Fix build 2023-04-09 11:12:08 +00:00
FriendLey
fe21f301f0 update code style. 2023-04-09 17:24:54 +08:00
FriendLey
20527e03ac add soundex function. (#39880) 2023-04-09 16:41:11 +08:00
Alexey Milovidov
16fe18a7b6
Merge pull request #48520 from ClibMouse/feature/use-string-view-instead-of-strlen
Use std::string_view instead of strlen
2023-04-08 22:19:28 +03:00
Nikolay Degterinsky
7161d3d380 Fixes 2023-04-08 00:49:53 +00:00
Vitaly Baranov
62e9c419de
Merge pull request #48519 from azat/build/fwd-decl-threadpool
Use forward declaration of ThreadPool
2023-04-08 00:44:01 +02:00
Alexander Tokmakov
9ec91acef3 add some columns to system.clusters 2023-04-07 18:26:23 +02:00
Nikolay Degterinsky
a48655af39
Merge branch 'master' into add-kafka-murmur-hash-function 2023-04-07 12:21:16 +02:00
Azat Khuzhin
011480924a Use forward declaration of ThreadPool
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-07 11:25:35 +02:00
ltrk2
4449e49e72 Mark a function inline 2023-04-06 13:28:30 -07:00
ltrk2
00c8e6e60d Use std::string_view instead of strlen 2023-04-06 11:39:33 -07:00
Arthur Passos
d381f82843 remove escaping_support parameter left overs 2023-04-06 12:22:47 -03:00
Arthur Passos
52e7a09de7 Use two functions extractKeyValuePairs and extractKeyValuePairsWithEscaping instead of boolean parameter 2023-04-06 12:17:14 -03:00
Arthur Passos
671f4b100c minor renaming 2023-04-06 11:28:40 -03:00
Robert Schulze
7bcb8c4970
Register trim aliases in system.functions 2023-04-06 14:25:27 +00:00
Robert Schulze
cfd9c4d85e
Register aliases of date_diff in system.functions 2023-04-06 14:04:37 +00:00
Jordi Villar
e4977861a0 toTimeZone throw an error when no string constant timezone 2023-04-06 13:41:43 +02:00
Robert Schulze
b7be5fd89e
Improve code and tests 2023-04-06 08:47:38 +00:00
Robert Schulze
5eb31bba87
MySQL compat: Align behavior of %f in formatDateTime() with parseDateTime() 2023-04-06 08:13:04 +00:00
Robert Schulze
ce2692ba79
Merge pull request #47246 from ClickHouse/rs/m
Change the behavior of formatter %M in function formatDateTime() from minutes to month name
2023-04-06 09:19:50 +02:00
Anton Popov
166a63c36c
Merge pull request #46589 from ClickHouse/rs/nonconst-replace
replace[Regexp]{One,All}(): allow non-const pattern and replacement arguments
2023-04-06 03:08:28 +02:00
Nikolay Degterinsky
0dfcc84910 Add support for Date/Datetime datatypes to arrayMin, arrayMax, arrayDifference functions 2023-04-06 00:53:53 +00:00
Robert Schulze
65609340cc
Yet another fix 2023-04-05 20:23:41 +00:00
Robert Schulze
3e84be5f3a
Fix stuff 2023-04-05 20:10:27 +00:00
Robert Schulze
ce234baf9c
Merge branch 'master' into rs/f 2023-04-05 21:59:13 +02:00
Robert Schulze
809a7fbb7a
Incorporate more review feedback 2023-04-05 19:43:30 +00:00
Arthur Passos
46bf0572cb =default for extractkvp constructor 2023-04-05 16:42:50 -03:00
Arthur Passos
a1446764a9 update docs to reflect new boolean argument 2023-04-05 13:27:38 -03:00
Arthur Passos
3c3c38d689 Use boolean column as escaping support argument instead of ColumnString 2023-04-05 13:20:32 -03:00
Arthur Passos
b7c34e4356 more docs 2023-04-05 12:33:30 -03:00
Arthur Passos
ebd22e92ce more docs / comments 2023-04-05 11:53:13 -03:00
Vitaly Baranov
862a4d6fcd
Merge pull request #48142 from DimasKovas/json_functions_to_h_file
Move FunctionsJSON implementation to header file
2023-04-05 16:52:48 +02:00
Arthur Passos
6dec537b3c more docs 2023-04-05 10:34:39 -03:00
Robert Schulze
949f7c1839
Fix darwin build 2023-04-05 12:07:22 +00:00
Arthur Passos
5437b7dafa fix clangtidy build 2023-04-05 08:15:49 -03:00
Robert Schulze
a59b53775c
Fix style 2023-04-05 10:43:55 +00:00
Robert Schulze
0d5d2a9b55
Implement %f in parseDateTime()
Fixes: #48394

@cc OP
2023-04-05 09:13:18 +00:00
Anton Popov
b03acf5680
Merge branch 'master' into rework-map-functions 2023-04-04 23:35:12 +02:00
Arthur Passos
10b821fa2e remove big input test as it's outdated 2023-04-04 15:44:14 -03:00
Kruglov Pavel
5f930aeb26
Merge pull request #48115 from save-my-heart/throw_non_parametric_function
throw exception while non-parametric functions having parameters
2023-04-04 12:05:34 +02:00
Vladimir C
35572321a1
Merge pull request #48207 from bigo-sg/map_from_maps 2023-04-04 11:12:05 +02:00
Robert Schulze
73ffdbe2f4
Minor fixups 2023-04-04 09:11:59 +00:00
Robert Schulze
a7c153f88c
replace{One/All}(): allow non-const pattern and replacement arguments 2023-04-04 08:26:28 +00:00
taiyang-li
3bd29f0aa9 fix exception message 2023-04-04 10:34:33 +08:00
Arthur Passos
22367f84e6 fix undefined mm_is_in_prepare 2023-04-03 18:26:30 -03:00
Arthur Passos
fa1fdf7573 style 2023-04-03 15:28:17 -03:00
Arthur Passos
c1bcfbc57d extract configuration comparisons into meaningful methods 2023-04-03 15:25:18 -03:00
Arthur Passos
607b0c8880 Use different string writers strategies for escaping and non escaping 2023-04-03 15:16:06 -03:00
Arthur Passos
c7c96bfeab refactor state handlers so writer comes from them 2023-04-03 14:19:15 -03:00
Arthur Passos
c80ba3d52e unit tests passing 2023-04-03 13:48:58 -03:00
Arthur Passos
aee9ccb27a validated output against main test case, performance is not the same as before, but still good 2023-04-03 12:45:29 -03:00
Anton Popov
531e888577 fix style check 2023-04-03 14:39:42 +00:00
Anton Popov
b3515c768b Merge remote-tracking branch 'upstream/master' into HEAD 2023-04-03 14:11:04 +00:00
Anton Popov
6dde159227 add comments and docs 2023-04-03 13:43:11 +00:00
Kruglov Pavel
9e595c82fa
Merge pull request #47494 from KevinyhZou/enable_return_null_element_not_exist
Enable return null and complext type for JSON_VALUE function
2023-04-03 14:05:18 +02:00
Robert Schulze
8e4b0e5fba
Merge pull request #48332 from ClickHouse/rs/prefer-native-over-alias
Minor: Suggest ClickHouse-native function name over MySQL-compatibility alias
2023-04-03 09:32:16 +02:00
Robert Schulze
d7ee316380
Minor: Suggest ClickHouse-native function name over MySQL-compatibility alias 2023-04-03 07:28:31 +00:00
KevinyhZou
da4ff587af review fix 2023-04-02 12:38:17 +08:00