Commit Graph

6264 Commits

Author SHA1 Message Date
Robert Schulze
593c3114a1
Remove TODO comment 2023-10-13 13:24:26 +00:00
Robert Schulze
bb0ff98f5e
String argument support for toDayOfWeek(), toWeek() and toYearWeek() 2023-10-13 10:30:37 +00:00
Robert Schulze
af911dd186
Refactorings 2023-10-13 09:48:32 +00:00
robot-clickhouse-ci-1
c40a79f0b4
Merge pull request #54813 from lingtaolf/feature/function-getClientHttpHeader
Add function getHttpHeader
2023-10-12 10:13:20 +02:00
Yakov Olkhovskiy
0738984edf
Merge pull request #42510 from ClibMouse/Kusto-phase2-oss-pr
Support Kusto Query Language dialect - phase 2
2023-10-11 08:35:26 -04:00
Robert Schulze
b7936cb953
Update src/Functions/byteSwap.cpp
Co-authored-by: Priyansh Agrawal <agrawal.priyansh@yahoo.in>
2023-10-10 23:45:57 +02:00
Robert Schulze
96e3a4f9b4
Update src/Functions/byteSwap.cpp
Co-authored-by: Priyansh Agrawal <agrawal.priyansh@yahoo.in>
2023-10-10 23:45:23 +02:00
Memo
b7f70c2ba3 Merge branch 'master' into master 2023-10-10 20:08:41 +08:00
Robert Schulze
31ae84604f
Some fixups 2023-10-10 09:54:06 +00:00
Joey Wang
06a7b679f6 support merging of nested paths 2023-10-10 14:57:37 +08:00
凌涛
51e2e59a97 Merge remote-tracking branch 'origin/master' into feature/function-getClientHttpHeader 2023-10-10 10:56:24 +08:00
Priyansh Agrawal
9677dedd87 Add negative tests.
Also:
- Add comments in tests.
- Add an example in docs where an IPv4 is casted to an int, byteswapped
  and then casted back to an IPv4.
2023-10-09 21:52:06 +00:00
Robert Schulze
624dbcdb4f
Merge pull request #49794 from Lirikl/arrayFold
Added function `arrayFold()`
2023-10-09 13:38:35 +02:00
Robert Schulze
878e36df5b
Fix spelling 2023-10-09 07:41:23 +00:00
Robert Schulze
0e1aed2a38
Merge pull request #55327 from rschu1ze/to_start_of_interval_hours
Refactorings and better documentation for `toStartOfInterval()`
2023-10-08 22:33:12 +02:00
Robert Schulze
07e0cc196d
Some fixups 2023-10-08 20:27:13 +00:00
Robert Schulze
2848548c63
Merge remote-tracking branch 'rschu1ze/master' into arrayFold 2023-10-08 16:32:36 +00:00
Robert Schulze
0f7ca6149b
(Hopefully) fix clang-tidy 2023-10-08 16:30:02 +00:00
Robert Schulze
32a77ca1eb
Merge pull request #54391 from itayisraelov/israelov/generate-random-int-array
Add function `arrayRandomSample()`
2023-10-08 18:28:58 +02:00
Robert Schulze
38c64b3cd1
Fix tests 2023-10-08 14:26:31 +00:00
Alexey Milovidov
caf3c85b38
Merge pull request #55275 from azat/sparse-columns-function-fix
Fix functions execution over sparse columns
2023-10-08 15:27:46 +02:00
Alexey Milovidov
a7716a56ac
Update IFunction.cpp 2023-10-08 16:27:33 +03:00
Robert Schulze
3f33c32684
Fix style 2023-10-08 10:46:28 +00:00
Priyansh Agrawal
2c04370e5f Use std::byteswap instead of custom implementations.
- Also allow signed ints now because std::byteswap accepts them.
- Fix for style check.
2023-10-07 23:59:24 +00:00
Priyansh Agrawal
302291e17b Address a few review comments.
- Consider byteswap injective.
- Make function case-insensitive.
- Add in-code documentation and copy-paste it to the markdown docs.
2023-10-07 23:05:07 +00:00
Robert Schulze
73ff017fb5
Merge remote-tracking branch 'rschu1ze/master' into israelov/generate-random-int-array 2023-10-07 18:10:09 +00:00
Robert Schulze
3580c4d730
Fixups 2023-10-07 18:08:54 +00:00
Robert Schulze
4b7ffa52c5
Refactorings 2023-10-07 16:45:52 +00:00
alesapin
e55a615f06
Merge pull request #55253 from vitlibar/fix-async-insert-access-check-for-defaults
Evaluate defaults during async insert safer
2023-10-07 12:26:35 +02:00
Priyansh Agrawal
ed2c85bbce Remove comment 2023-10-06 19:35:11 +00:00
Azat Khuzhin
ce7f0e5ae7 Fix functions execution over sparse columns
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-06 16:16:50 +02:00
Vitaly Baranov
76766a200e Fix access checking in evaluations of defaults during async insert. 2023-10-05 10:26:44 +02:00
Priyansh Agrawal
540d966033 Docs and comment 2023-10-02 22:51:58 +01:00
Priyansh Agrawal
46fbe00c9a Implement byteswap for following dtypes.
UInt[8|16|32|64]

TODOs:
- Improve NOT_IMPLEMENTED error message.
- Add implementation for FixedStrings (reverse the bytes).
- See whether this needs to be implemented for UInt[128|256] and
  signed integers as well.
2023-10-02 19:02:33 +01:00
Alexey Milovidov
5ebd8ef41d Remove Meilisearch 2023-09-30 06:02:38 +02:00
Alexey Milovidov
8ea30b9fed Fix build 2023-09-29 05:35:24 +02:00
avogar
e8ea41e2d4 Add setting to print pretty deep nested Tuples 2023-09-28 22:17:44 +00:00
Alexey Milovidov
383f8c58b6
Merge pull request #55080 from ClickHouse/remove-jaccard
Remove String Jaccard Index
2023-09-28 21:56:53 +03:00
Nikolay Degterinsky
9ebecb5499
Merge pull request #54639 from evillique/timestamp-function
Add `timestamp` function for compatibility with MySQL
2023-09-28 16:44:16 +02:00
凌涛
eab7b34e23 support column query 2023-09-28 17:13:06 +08:00
Nikolay Degterinsky
63253a0243 Fix UBSan error 2023-09-28 07:45:00 +00:00
Amos Bird
51f603bdfc
Rename as suggested. 2023-09-28 15:11:56 +08:00
Amos Bird
056b2693a3
Reorganize combinators into dedicated folder 2023-09-28 15:11:55 +08:00
Yong Wang
8c9da6bacf Merge remote-tracking branch 'origin/master' into Kusto-phase2-oss-pr 2023-09-27 22:35:14 -07:00
Alexey Milovidov
e1afc64c79 Fix wrong names 2023-09-28 07:24:39 +02:00
Alexey Milovidov
4a01136dc9 Fixup 2023-09-28 07:22:16 +02:00
Alexey Milovidov
f5d8573232 Remove String Jaccard Index 2023-09-28 06:30:45 +02:00
Robert Schulze
675819be6b
Minor fixes 2023-09-27 21:15:20 +00:00
Nikolay Degterinsky
c1f59eccd5 Add fraction part to the time argument, add docs, better test 2023-09-27 20:17:32 +00:00
Robert Schulze
2d750e9e2f
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks 2023-09-27 12:15:29 +00:00
凌涛
0d256a381a add doc
fix tests

modify code stype and spelling

add tests and modify code style
2023-09-27 17:03:53 +08:00
robot-ch-test-poll3
aa139774a0
Merge pull request #55042 from ucasfl/review-fix
Review fix for #54935
2023-09-27 09:36:55 +02:00
flynn
3d299d5f9d Review fix 2023-09-27 03:16:52 +00:00
Robert Schulze
cde10fe7b5
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks 2023-09-26 18:59:41 +00:00
avogar
d5de17f6aa Fix bad cast to ColumnVector<Int128> in function if 2023-09-26 12:19:25 +00:00
Robert Schulze
9fff447716
Re-enable clang-tidy checks 2023-09-26 09:34:12 +00:00
Robert Schulze
0149e4226f
Cosmetics 2023-09-25 17:09:22 +00:00
vdimir
70ae994e77
Merge pull request #54935 from ucasfl/hamming-distance
Add several string distance functions
2023-09-25 17:06:16 +02:00
Priyansh Agrawal
f27a76b923 Add function byteSwap.
byteSwap accepts an integer `operand` and returns the integer which is
obtained by swapping the **endianness** of `operand` i.e. reversing the
bytes of the `operand`.

Issue: #54734
2023-09-24 21:02:09 +01:00
zvonand
9559a6949b added subseconds to formatReadableTimeDelta and add tests 2023-09-24 13:04:56 +02:00
Alexey Milovidov
776c6adfe6
Merge pull request #54553 from Avogar/better-types-inference
Better integer types inference for Int64/UInt64 fields
2023-09-24 02:07:48 +03:00
flynn
661ba85865 add more functions 2023-09-23 17:17:35 +00:00
flynn
c264bb5fad fix 2023-09-23 04:11:20 +00:00
Robert Schulze
ec09fd124d
Merge pull request #54856 from slvrtrn/to-days-since-year-zero-datetime
`DateTime`/`DateTime64` support in `toDaysSinceYearZero()`
2023-09-22 20:39:54 +02:00
flynn
f8056ee282 Add function hammingDistance 2023-09-22 17:43:52 +00:00
Robert Schulze
a7c4efb845
Simpler 2023-09-22 13:13:55 +00:00
Robert Schulze
7f82765787
Some fixups 2023-09-22 11:52:02 +00:00
Robert Schulze
9a91f97ac4
Merge pull request #53831 from rschu1ze/clang-17
Switch CI to Clang 17
2023-09-22 12:28:35 +02:00
Robert Schulze
be1e92a2ac
Merge pull request #54518 from rschu1ze/split-better
Provide fallback to Python/Spark-like splitting in splitBy*() functions
2023-09-22 12:07:45 +02:00
Robert Schulze
5209bd2d51
Merge remote-tracking branch 'rschu1ze/master' into clang-17 2023-09-21 14:45:55 +00:00
Robert Schulze
f5137dd0b4
More clang-tidy fixes 2023-09-21 14:40:57 +00:00
slvrtrn
4d3b127a1f clang-format to resolve style issues 2023-09-21 16:16:03 +02:00
slvrtrn
da6b856c32 Merge remote-tracking branch 'origin' into to-days-since-year-zero-datetime 2023-09-21 14:22:37 +02:00
Nikolay Degterinsky
5a599610ca
Merge pull request #54793 from HarryLeeIBM/hlee-s390x-string-hash
Fix SimHash function endian issue for s390x
2023-09-20 23:20:07 +02:00
Vitaly Baranov
b3d3ad01f1
Merge pull request #54628 from vitlibar/fix-optimize-read-in-order-from-view
Fix optimize read in order from a view.
2023-09-20 19:14:25 +02:00
slvrtrn
e2649b5e1d Remove unnecessary function 2023-09-20 18:08:02 +02:00
slvrtrn
859e1a266e toDaysSinceYearZero DateTime/DateTime64 support 2023-09-20 17:59:37 +02:00
Nikolai Kochetov
0bc41bab74
Merge pull request #54544 from kitaisreal/key-condition-in-function-different-types
KeyCondition IN function support different types
2023-09-20 12:54:01 +02:00
János Benjamin Antal
eb841d59c4
Merge pull request #54735 from bigo-sg/improve_json_query_2
Improve json sql functions by resuing `GeneratorJSONPath`
2023-09-20 12:50:08 +02:00
凌涛
9e3c54ddb9 add function getHttpHeader 2023-09-20 10:07:02 +08:00
lgbo-ustc
e9e5c7a09b update 2023-09-20 08:44:30 +08:00
Nikolay Degterinsky
e217c8b1fd
Merge pull request #54636 from ClickHouse/evillique-patch-1
Fix a bug in addData and subData functions
2023-09-19 20:24:50 +02:00
HarryLeeIBM
c66b60f00f Fix SimHash function issue for s390x 2023-09-19 07:12:14 -07:00
Robert Schulze
774c4b52da
Rework 2023-09-19 12:20:53 +00:00
Maksim Kita
c7ddbab9bc Updated implementation 2023-09-19 13:06:19 +03:00
lgbo-ustc
834ec7b382 reuse GeneratorJSONPath 2023-09-19 17:30:27 +08:00
robot-clickhouse
6564743794
Merge pull request #54608 from yariks5s/arr_scalar_mult_div_modulo
Added support for array&scalar operations
2023-09-18 17:26:42 +02:00
Robert Schulze
cf12563df1
Fix style check 2023-09-18 07:43:00 +00:00
Robert Schulze
2a5aa289e8
Implement true Python/Spark split behavior 2023-09-18 07:42:57 +00:00
Robert Schulze
b5b2cc511b
Pythonic vs Spark splitting 2023-09-18 07:42:52 +00:00
Robert Schulze
68cdfbcc6c
Refactorings and cleanups (semantics did not change) 2023-09-18 07:41:58 +00:00
Robert Schulze
f5e8028bb1
Merge pull request #54642 from rschu1ze/broken-re2st
Remove broken lockless variant of re2
2023-09-17 15:30:57 +02:00
robot-clickhouse
51851ecc21
Merge pull request #54613 from bigo-sg/improve_json_query
Improve json sql functions by serializing json element into column's buffer direclty
2023-09-15 19:35:30 +02:00
Robert Schulze
3935c2bfb2
Merge pull request #54509 from rschu1ze/yyyymmdd
Add YYYYMMDD[hhmmss]to[Date, Date32, DateTime, DateTime64]()
2023-09-15 15:47:34 +02:00
avogar
2e8ac2bdf9 Fix function if 2023-09-15 12:53:50 +00:00
Robert Schulze
aff9dfa630
Minor docs fixes 2023-09-15 11:26:24 +00:00
Robert Schulze
70c95c7410
+ minimal in-source docs 2023-09-15 11:21:56 +00:00
lgbo-ustc
8f057f17fd update 2023-09-15 16:05:17 +08:00
Alexey Milovidov
f6d5ed281c
Merge pull request #54546 from kitaisreal/function-helpers-remove-are-types-equal-function
FunctionHelpers remove areTypesEqual function
2023-09-14 20:37:37 +03:00
Yarik Briukhovetskyi
f758839b8c
style check 2023-09-14 20:36:47 +03:00
yariks5s
3a9e41a684 fixed review and added reversed order 2023-09-14 17:00:35 +00:00
Robert Schulze
7b378dbad3
Remove broken lockless variant of re2 2023-09-14 16:40:42 +00:00
Nikolay Degterinsky
6918cc97ea Add timestamp function 2023-09-14 16:01:45 +00:00
Nikolay Degterinsky
ca57eb9546
Fix addData function 2023-09-14 15:55:37 +02:00
Maksim Kita
310dc22266 FunctionHelpers remove areTypesEqual function 2023-09-14 13:51:06 +03:00
Vitaly Baranov
f427ca771e Fix optimize read in order for views. 2023-09-14 12:44:43 +02:00
lgbo-ustc
e8d217634e improve json sql functions by serilizing data into column direclty 2023-09-14 12:41:17 +08:00
yariks5s
0fff859bf1 added impl of mult div and modulo 2023-09-13 18:35:07 +00:00
Nikolay Degterinsky
140a466a1e
Merge pull request #54400 from evillique/adddate-function
Add `addDate` function for compatibility with MySQL
2023-09-13 18:59:26 +02:00
Itay Israelov
8b35bd35f1 fix comments 4 - fix getReturnTypeImpl implemention impl
use FunctionArgumentDescriptors && validateFunctionArgumentTypes
2023-09-13 17:01:41 +03:00
Itay Israelov
46c863a1d1 Support multi-row implementation, but samples is const 2023-09-13 16:01:12 +03:00
Itay Israelov
8569c1cad0 fix empty array bug 2023-09-13 13:11:53 +03:00
Itay Israelov
f1a4523228 clang-format 2023-09-13 13:11:53 +03:00
Itay Israelov
d28859caee fix comments 3 2023-09-13 13:11:53 +03:00
Itay Israelov
6cfed0a660 fix comments 2 2023-09-13 13:11:53 +03:00
Itay Israelov
69ba32940e fix comments: rname randomSampleFromArray --> arrayRandomSample 2023-09-13 13:11:53 +03:00
Itay Israelov
66841d064c implement randomSampleFromArray function 2023-09-13 13:11:52 +03:00
Robert Schulze
f552194166
Even more UB safety 2023-09-13 08:30:02 +00:00
Nikolay Degterinsky
e648646598 Fixes 2023-09-12 23:11:58 +00:00
Suzy Wang
b90dd62409 ngramDistance* queries fix for big endian platform 2023-09-12 12:55:08 -07:00
Nikolay Degterinsky
cf662712ea Add new subDate function, apply review suggestions 2023-09-12 16:47:43 +00:00
Robert Schulze
e406467346
More UB safety 2023-09-12 16:28:08 +00:00
robot-clickhouse
63243fbc03
Merge pull request #54480 from amosbird/fix_54406
Fix aggregate projections with normalized states
2023-09-12 13:43:41 +02:00
Robert Schulze
3e16bdbcc7
Fix UB 2023-09-12 11:10:17 +00:00
Amos Bird
667426f1f2
DataTypeAggregateFunction::strictEquals 2023-09-12 03:54:19 +08:00
Amos Bird
9e56cff588
Better lambda capture 2023-09-12 02:49:27 +08:00
Robert Schulze
49f29861a0
Merge pull request #54479 from rschu1ze/todayssinceyearzero
Add function toDaysSinceYearZero()
2023-09-11 17:05:28 +02:00
Robert Schulze
73ce1993fb
Continue #45070 2023-09-11 13:47:06 +00:00
Yarik Briukhovetskyi
97f4625037
Merge pull request #54443 from yariks5s/non_const_timezone_fixup
ToString() performance improvement and code cleanup
2023-09-11 10:50:56 +03:00
robot-ch-test-poll
6f3374d684
Merge pull request #54481 from ucasfl/hints
Refactor IHints
2023-09-10 15:46:36 +02:00
Robert Schulze
caadfe393b
Fixes 2023-09-10 13:34:02 +00:00
flynn
6ec783a746 Refactor IHints 2023-09-10 03:48:12 +00:00
Amos Bird
fb0f9ff565
Fix aggregate projections with normalized states 2023-09-10 03:21:22 +08:00
Robert Schulze
1ce84774f0
Implement toDaysSinceYearZero() / to_days() (MySQL alias)
Fixes: #54277
2023-09-09 16:59:39 +00:00
Robert Schulze
0a05831839
Cosmetics 2023-09-09 16:52:42 +00:00
Robert Schulze
4d2223defe
Merge pull request #54119 from mkmkme/mkmkme/aklomp-base64
Replace Turbo-Base64 with aklomp/base64
2023-09-09 16:24:26 +02:00
Alexey Milovidov
71d37d64ab
Revert "Fix issues in accurateCastOrNull" 2023-09-09 06:37:02 +03:00
Yarik Briukhovetskyi
12ce57369b
Update FunctionsConversion.h 2023-09-08 15:36:33 +02:00
yariks5s
66479b6966 code cleanup and performance improvement 2023-09-08 10:54:25 +00:00
Robert Schulze
7fef4c8cb6
Merge pull request #53680 from yariks5s/todatatime-non-const-data
Support non-constant timezone arguments in toString() and formatDateTime()
2023-09-07 22:11:17 +02:00
Robert Schulze
e761532d7a
Fix style 2023-09-07 15:00:06 +02:00
yariks5s
5afca8a903 optimized toString() 2023-09-07 12:41:01 +00:00
Nikolay Degterinsky
b06412ae60 Add addDate function for compatibility with MySQL 2023-09-07 11:15:49 +00:00
Robert Schulze
cd3c121a62
Various fixups 2023-09-07 10:32:49 +00:00
Joey Wang
872f981416 add doc 2023-09-07 16:19:17 +08:00
Joey Wang
2755fc045e add function jsonMerge 2023-09-07 10:01:27 +08:00
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