Commit Graph

3613 Commits

Author SHA1 Message Date
bharatnc
a4cf3303f9 fix fuzzer segfault 2022-02-19 08:41:21 -08:00
bharatnc
b7678c1bc1 fix s2 functions having const columns 2022-02-18 22:42:27 -08:00
bharatnc
7c9a581af6 convert const cols to full cols 2022-02-18 16:34:50 -08:00
Maksim Kita
3dd6b91cbe
Merge pull request #34731 from kitaisreal/performance-tests-fix-h3
Performance tests fix H3
2022-02-18 19:21:38 +01:00
Vladimir C
9b7d011ee7
Merge pull request #34529 from vdimir/join-nullable-on-pipeline
Apply join_use_nulls on types before join
2022-02-18 18:34:44 +01:00
Maksim Kita
80b0efb367 Performance tests fix H3 2022-02-18 15:57:54 +00:00
zvonand
9367a8df68 no_sanitize_undefined 2022-02-18 14:53:22 +03:00
zvonand
8d34797212 AST fix try 123 2022-02-18 13:45:47 +03:00
zvonand
6d47a715dc fix decimal overflow 2022-02-18 10:18:07 +03:00
Nikolay Degterinsky
c09275f0da
Merge pull request #34368 from usurai/sw
Add startsWith & endsWith function for arrays
2022-02-18 08:34:48 +03:00
zvonand
71b7b6605e fixed maths 2 2022-02-18 00:17:29 +03:00
zvonand
1f24f3a5e2 fixed overflow 2022-02-17 23:17:06 +03:00
Maksim Kita
5c92ad0d57 Function encodeURLComponent minor fixes 2022-02-17 18:34:23 +00:00
Maksim Kita
562f1ec01a
Merge pull request #34607 from zzsmdfj/issue/#31092_add_encodeURLComponent_function
add encode url component function
2022-02-17 17:57:23 +01:00
zvonand
90c857c5e3 merge 2022-02-17 18:23:37 +03:00
Kruglov Pavel
07098fc597
Merge pull request #34619 from vdimir/fix_aarch64/01662_date_ubsan
Check overflow in addSeconds/Minues/etc functions
2022-02-17 15:55:55 +03:00
zvonand
1afe815bda fix maths 2022-02-17 15:33:26 +03:00
Alexander Tokmakov
dae044f86b Merge branch 'master' into mvcc_prototype 2022-02-17 13:49:37 +03:00
zvonand
d37003e4b6 mustfix fuzzer 2022-02-17 10:28:09 +03:00
zzsmdfj
1c068f1295 to issue/#31092_add_encodeURLComponent_function 2022-02-17 11:55:06 +08:00
zzsmdfj
6b78da6f02 to issue/#31092_add_encodeURLComponent_function 2022-02-17 11:32:47 +08:00
zvonand
a5a742e22b updated negative fracs 2022-02-17 01:39:46 +03:00
zvonand
fca314aa11 fixed clang-tidy 2022-02-16 19:23:10 +03:00
vdimir
65452ac089
Fix checkOverflow in FunctionDateOrDateTimeAddInterval 2022-02-16 14:30:37 +00:00
usurai
9fe920500d
Apply suggestions from code review
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2022-02-16 20:58:43 +08:00
zvonand
cf244689a2 fixed filling transform 2022-02-16 15:14:25 +03:00
zzsmdfj
4dcb411f4f to #31092_add_encodeURLComponent_function 2022-02-16 10:19:20 +08:00
zvonand
f60a944483 fixed toStartOfInterval 2022-02-16 02:43:08 +03:00
vdimir
a5c34fafd4
Check overflow in addSeconds/Minues/etc functions 2022-02-15 19:04:59 +00:00
Maksim Kita
37f7e6a216
Merge pull request #34562 from bigo-sg/fix_round
Fix round bug
2022-02-15 13:01:57 +01:00
Alexander Tokmakov
1e4e569151 Merge branch 'master' into mvcc_prototype 2022-02-15 02:26:47 +03:00
vdimir
99ca89c0ca
Fix StorageJoin and Asof or join_use_nulls in pipeline 2022-02-14 14:14:27 +00:00
achimbab
054d691685
Merge branch 'ClickHouse:master' into minSampleSize 2022-02-14 09:32:15 +09:00
zvonand
888542e29b add[interval] no longer oses decimal components
Not only support for better subsecond logic, but also fewer conversions
-> faster operation
2022-02-14 02:52:56 +03:00
zvonand
2454f1dd13 Decimal components attempt 2022-02-14 00:04:09 +03:00
bharatnc
c29e16fb74 add tests for h3GetPentagonIndexes 2022-02-13 12:56:43 -08:00
bharatnc
8654691b96 add h3GetPentagonIndexes func 2022-02-13 12:56:43 -08:00
bharatnc
88b6fc6432 add h3GetRes0Indexes func 2022-02-13 12:56:43 -08:00
bharatnc
9646bb0c91 add func h3PointDistRads 2022-02-13 12:56:43 -08:00
bharatnc
982e6aae42 add h3PointDistKm func 2022-02-13 12:56:42 -08:00
bharatnc
d5f2312c2f add func h3PointDistM 2022-02-13 12:56:42 -08:00
zvonand
196ffb4827 toStartOf[...]second works 2022-02-13 18:41:45 +03:00
zvonand
dcc0f53f8e updated Interval definitions 2022-02-13 17:54:03 +03:00
achimbab
c5c2e83435 Remove some codes 2022-02-13 23:27:06 +09:00
taiyang-li
e759af2dd4 fix round bug 2022-02-13 18:52:25 +08:00
zvonand
48c1b8b62b Updated IntervalParser 2022-02-13 13:01:48 +03:00
bharatnc
4dadc7e15b fix style check 2022-02-12 23:36:40 -08:00
bharatnc
b50005e702 add check for max h3 resolution 2022-02-12 22:05:28 -08:00
achimbab
674032afb9 An integer type can be used for the baseline and sigma. 2022-02-13 14:43:12 +09:00
bharatnc
e02bd7d785 check and get columns in geoToH3 func 2022-02-12 19:08:40 -08:00
zvonand
0c5e8a0beb upload 2022-02-12 19:37:06 +03:00
Alexander Tokmakov
07e66e690d Merge branch 'master' into mvcc_prototype 2022-02-11 15:53:32 +03:00
zvonand
da1ba60202 upload 2022-02-11 13:35:50 +03:00
RogerYK
45296fd039 Merge remote-tracking branch 'upstream/master' into fix-substring-negative-offset-length 2022-02-10 15:58:33 +08:00
Anton Popov
18940b8637 Merge remote-tracking branch 'upstream/master' into HEAD 2022-02-09 23:38:38 +03:00
zvonand
0fe1fdb6ca add[...]Seconds basically work 2022-02-09 20:19:01 +03:00
zvonand
d8b40e7deb basic add[...]seconds added
TODO: fix DT64 scale resolution when input and func's scale are not the
same
2022-02-09 10:28:15 +03:00
Habibullah Oladepo
57ff05b6e6 Add new function toLastDayOfMonth 2022-02-08 23:48:44 +01:00
zvonand
0633174b10 Merge branch 'master' of github.com:ClickHouse/ClickHouse into issue_33147 2022-02-08 11:42:31 +03:00
cmsxbc
a33bd4c623
Merge branch 'master' into addressToLineWithInlines 2022-02-08 08:54:15 +08:00
zvonand
9456d89fad Move current work from old laptop
skip-checks: true
2022-02-07 21:44:14 +03:00
achimbab
28e6cfb753 Modify the sample_size type from UInt64 to Float64 2022-02-07 22:25:00 +09:00
Kruglov Pavel
b35f479dea
Delete empty file DateOrDateTimeFunctionsConvertion.cpp 2022-02-07 12:26:50 +03:00
usurai
8076e1ef30 Remove whitespace 2022-02-07 17:23:43 +08:00
usurai
e242192ab8 Declare error code 2022-02-07 16:36:49 +08:00
usurai
550d80201e Fix endsWith, add test for endsWith 2022-02-07 16:36:49 +08:00
usurai
e6f5c74c17 Remove redundent header 2022-02-07 16:36:49 +08:00
usurai
6dd482136f Add startsWith & endsWith for array 2022-02-07 16:36:49 +08:00
alexey-milovidov
fb9ed9acad
Merge pull request #34175 from kitaisreal/bitset-sort-performance-check
bitsetsort peformance check
2022-02-07 05:34:57 +03:00
achimbab
938aa88e40 Validate arguments and unwrap arguments and the result to each columns. 2022-02-07 01:28:27 +09:00
Maksim Kita
60cc5fff56
Merge pull request #34344 from bharatnc/ncb/s2-fixes
explicitly check and get columns for s2 funcs
2022-02-06 17:24:52 +01:00
achimbab
ce40acefa9 Implement functions for minimum-sample-size-calculators 2022-02-06 22:12:22 +09:00
Maksim Kita
5f43fdbfd2
Merge pull request #34140 from bigo-sg/max_splits
Maxsplit argument for splitByChar.
2022-02-06 13:38:14 +01:00
Maksim Kita
7492280ada
Merge pull request #34334 from bigo-sg/alias_function
REGEXP_MATCHES and REGEXP_REPLACE function aliases for compatibility with PostgreSQL.
2022-02-06 13:37:56 +01:00
bharatnc
d666b2250c fix failing tests 2022-02-05 19:15:20 -08:00
bharatnc
008af0e0c2 update src/Functions/geoToS2.cpp 2022-02-05 19:07:25 -08:00
taiyang-li
5fc2e46dd0 make aliases case insensitive 2022-02-06 09:38:05 +08:00
bharatnc
3df4929b63 minor fixes 2022-02-05 16:45:12 -08:00
bharatnc
557cf6ecc1 check and get column remaining s2 funcs 2022-02-05 16:32:15 -08:00
bharatnc
8ba93354b0 check and get column for s2 funcs 2022-02-05 16:29:02 -08:00
taiyang-li
829a9a4d83 as alias functions 2022-02-05 19:44:21 +08:00
taiyang-li
b9c42effb4 change as requested 2022-02-05 19:30:40 +08:00
Maksim Kita
4646cac075 Fixed tests 2022-02-04 21:49:39 +00:00
Maksim Kita
b81d9d20b7 Fixed tests 2022-02-04 21:25:06 +00:00
Maksim Kita
1202fec927 Fixed tests 2022-02-04 20:25:30 +00:00
Maksim Kita
4c9ba1dfd7 Fixed tests 2022-02-04 19:52:18 +00:00
Maksim Kita
a5306396dd Function mapPopulateSeries refactoring 2022-02-04 14:53:22 +00:00
cmsxbc
9f9fce07e2 Merge branch 'master' into addressToLineWithInlines 2022-02-04 20:43:00 +08:00
Alexander Tokmakov
6a646b413e fix 2022-02-04 00:40:17 +03:00
Alexander Tokmakov
ca5f951558 Merge branch 'master' into mvcc_prototype 2022-02-03 18:56:44 +03:00
Anton Popov
836a348a9c Merge remote-tracking branch 'upstream/master' into HEAD 2022-02-01 15:23:07 +03:00
cmsxbc
8b916a67e5 Merge branch 'master' into addressToLineWithInlines 2022-02-01 19:37:18 +08:00
Azat Khuzhin
bedf208cbd Use fmt::runtime() for LOG_* for non constexpr
Here is oneliner:

    $ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'

Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:

    $ cat fmt.cocci
    @@
    expression log;
    expression var;
    @@

    -LOG_DEBUG(log, var)
    +LOG_DEBUG(log, fmt::runtime(var))

I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
Anton Popov
aab6ef60b2 better performance of parsing json data 2022-02-01 14:17:29 +03:00
Alexander Tokmakov
2e4ae37d98 Merge branch 'master' into mvcc_prototype 2022-02-01 13:20:03 +03:00
youenn lebras
9ec7e61f5f
Add Unsigned version for Int8, Int16, Int32, Int64 for SS4.2 and AVX2 (aka AVX256) 2022-01-31 12:15:20 +01:00
youenn lebras
c0864e6cd9
Update branch - Merge master 2022-01-31 10:22:25 +01:00
Maksim Kita
5ef83deaa6 Update sort to pdqsort 2022-01-30 19:49:48 +00:00
taiyang-li
e9c435a23f fix style 2022-01-30 13:23:11 +08:00
taiyang-li
c9d5251e12 finish dev 2022-01-30 09:10:27 +08:00
Anton Popov
78b9f15abb Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-30 03:24:37 +03:00
taiyang-li
5228a3e421 commit again 2022-01-29 23:42:04 +08:00
Alexander Tokmakov
fb9b2d5326 Merge branch 'master' into mvcc_prototype 2022-01-28 21:18:36 +03:00
mergify[bot]
81c841a89c
Merge branch 'master' into addressToLineWithInlines 2022-01-28 08:20:48 +00:00
mergify[bot]
ebbfc0fd2f
Merge branch 'master' into remove-decimal-padded-pod-array 2022-01-27 20:12:41 +00:00
alexey-milovidov
5a4ad04ae6
Merge pull request #33505 from zvonand/issue_14648
Fix fromUnixTimestamp64 functions
2022-01-27 22:54:53 +03:00
Maksim Kita
24267c8cfb Fixed tests 2022-01-27 16:02:31 +00:00
Nikolay Degterinsky
c5ca5b608e
Merge pull request #33314 from evillique/classification
Merge functions for text classification
2022-01-27 17:15:08 +03:00
mergify[bot]
61ac72ca32
Merge branch 'master' into addressToLineWithInlines 2022-01-27 12:02:56 +00:00
Maksim Kita
af5ad2f370 Remove DecimalPaddedPODArray 2022-01-27 10:07:53 +00:00
Anton Popov
90b74c2aeb better unflattenTuple 2022-01-27 03:24:34 +03:00
zvonand
1384f9e89d moved common code out of template 2022-01-26 20:15:34 +03:00
RogerYK
6fab7ec882 Merge remote-tracking branch 'upstream/master' into fix-substring-negative-offset-length 2022-01-26 19:42:08 +08:00
zvonand
3879137994 Merge branch 'master' of github.com:ClickHouse/ClickHouse into issue_14648 2022-01-26 12:33:21 +03:00
cmsxbc
c3e541376d
fix style: add pragma once 2022-01-26 00:47:43 +08:00
cmsxbc
4c34d8f563
fix function names 2022-01-26 00:30:27 +08:00
cmsxbc
4d7073ceed
1. generic addressToLine and addressToLineWithInlines, 2. improve addressToLineWithInlines document 2022-01-26 00:20:19 +08:00
cmsxbc
58dd1a2d5c
add function addressToLineWithInlines 2022-01-25 19:13:47 +08:00
Nikolay Degterinsky
5edbae6734 Merge branch 'master' into classification 2022-01-25 10:22:47 +00:00
Kruglov Pavel
ed43abbaeb
Update FunctionsConversion.h 2022-01-25 12:32:21 +03:00
avogar
ad01d68f36 Fix parsing IPv6 from query parameter and fix IPv6 to string conversion 2022-01-25 10:09:17 +03:00
zvonand
3594cdbeeb updated dt64 value return 2022-01-23 23:06:32 +03:00
zvonand
86cc9419ba Merge branch 'master' of github.com:ClickHouse/ClickHouse into issue_14648 2022-01-23 22:30:31 +03:00
Maksim Kita
818966c1a2
Merge pull request #33921 from bharatnc/ncb/h3-improve
explicitly checkAndGetColumn for remaining H3 funcs
2022-01-23 18:08:30 +01:00
bharatnc
6faad9366b fix tests 2022-01-23 06:29:57 -08:00
Maksim Kita
711451f497
Merge pull request #33916 from kitaisreal/function-math-unary-remove-macro
FunctionMathUnary remove macro usage
2022-01-23 13:34:09 +01:00
bharatnc
d91caa0d3f better arg check for h3kRing func 2022-01-23 00:45:40 -08:00
bharatnc
12d135346c fix build 2022-01-22 23:48:53 -08:00
bharatnc
59ecdeb3ef fixes to exception message 2022-01-22 23:05:06 -08:00
bharatnc
7d62593bb1 h3 remaining funcs checkAndGetColumn 2022-01-22 23:02:14 -08:00
bharatnc
d2bc0712f7 h3 explicitly checkAndGetColumn 2022-01-22 23:02:14 -08:00
Maksim Kita
333bd24aca Fixed tests 2022-01-23 00:09:29 +00:00
Maksim Kita
4be393fba5 Support cast from Map to Array of Tuple 2022-01-22 20:40:18 +00:00
Maksim Kita
ee146b555f FunctionMathUnary remove macro usage 2022-01-22 18:44:36 +00:00
Maksim Kita
4100512818
Merge pull request #33621 from bharatnc/ncb/h3-misc-funcs
add h3 misc functions - part 2
2022-01-22 12:20:06 +01:00
alexey-milovidov
8cabd373e1
Merge pull request #32170 from FrankChen021/hex
Allows hex() to work on type of UUID
2022-01-22 13:03:22 +03:00
alexey-milovidov
eb6849f7c7
Merge pull request #33842 from azat/cmake-contrib-fixes
More cmake external modules cleanups
2022-01-22 10:34:54 +03:00
bharatnc
9f17706f62 better fix for build failure 2022-01-21 12:36:12 -08:00
bharatnc
526f350ce2 fix build failure 2022-01-21 11:29:16 -08:00
Anton Popov
e8ce091e68 Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
bharatnc
6f9b82dd2c update src/Functions/h3HexAreaM2.cpp 2022-01-21 08:47:22 -08:00
bharatnc
6de6c1c5bf use UInt8 for resolution 2022-01-21 08:30:48 -08:00
bharatnc
e418bf9f65 update src/Functions/h3EdgeLengthM.cpp 2022-01-21 08:28:31 -08:00
Alexander Tokmakov
e3b1397001 Merge branch 'master' into mvcc_prototype 2022-01-21 18:59:01 +03:00
Kruglov Pavel
daba57a933
Merge pull request #33737 from Avogar/bool-type
Some improvements and fixes for Bool data type
2022-01-21 15:24:58 +03:00
Maksim Kita
a7f666c07b FunctionBase64Conversion warning fix 2022-01-21 11:26:39 +00:00
Maksim Kita
ace483fb5b
Merge pull request #33769 from bharatnc/ncb/degrees-radians-funcs
add DEGREES and RADIANS funcs
2022-01-21 11:50:11 +01:00
Maksim Kita
1fd79e732b
Merge pull request #33852 from bharatnc/ncb/updates
updates to min2 and max2 funcs
2022-01-21 11:37:13 +01:00
RogerYK
93c58c25e0 Fix substring negative offset length 2022-01-21 18:04:59 +08:00
Azat Khuzhin
e81586cd8d contrib/murmurhash: add ALIAS library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-21 10:11:23 +03:00
Azat Khuzhin
dc7affd813 contrib/libmetrohash: add ALIAS library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-21 10:11:23 +03:00
Azat Khuzhin
03fc3895bd contrib/libdivide: add ALIAS library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-21 10:11:23 +03:00
Azat Khuzhin
81880ac20c contrib/consistent-hashing: add ALIAS library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-21 10:11:22 +03:00
Vladimir C
cd75d221cd
Merge pull request #33779 from vdimir/base64enc-arm64 2022-01-21 08:42:50 +03:00
bharatnc
3342c64110 Merge remote-tracking branch 'upstream/master' into ncb/h3-misc-funcs 2022-01-20 20:21:56 -08:00
bharatnc
2bbf8dc9bc updates to min2 and max2 funcs 2022-01-20 15:39:05 -08:00
mergify[bot]
8e7b26bae0
Merge branch 'master' into ncb/degrees-radians-funcs 2022-01-20 22:30:27 +00:00
mergify[bot]
b32e2a8624
Merge branch 'master' into functions-conversion-fix-typo 2022-01-20 17:56:46 +00:00
Maksim Kita
9acba98b77 FunctionsConversion fix typo 2022-01-20 16:21:34 +00:00
Bharat Nallan
adbdc3153a
improvements to tests for h3kRing and h3ToChildren funcs (#33311) 2022-01-20 17:08:13 +03:00
Alexander Tokmakov
0ea0a8ccc7 Merge branch 'master' into mvcc_prototype 2022-01-20 17:05:55 +03:00
Vladimir C
7156e64ee2
Merge pull request #33360 from RogerYK/feat/bitSlice 2022-01-20 16:20:27 +03:00
avogar
2d975057d0 Make result Bool only if arguments contain Bool 2022-01-20 14:16:11 +03:00
avogar
ba54a5ff80 Some improvements and fixes for Bool data type 2022-01-20 14:16:11 +03:00
Azat Khuzhin
b23053d1f6 Remove USE_XXHASH (reduntant) 2022-01-20 10:02:02 +03:00
Azat Khuzhin
66a210410f Fix build w/o hyperscan 2022-01-20 10:02:02 +03:00
Azat Khuzhin
6dcb09f9e1 Cleanup llvm 2022-01-20 10:02:01 +03:00
Azat Khuzhin
3889f79a3d Remove unbundled h3 support 2022-01-20 10:01:59 +03:00
Azat Khuzhin
8cca397fcb Fix config header for functions 2022-01-20 10:01:59 +03:00
Azat Khuzhin
cbf8867f50 Remove unbundled fastops support 2022-01-20 10:01:59 +03:00
Azat Khuzhin
126aa4b65c Remove unbundled base64 support 2022-01-20 10:01:58 +03:00
Azat Khuzhin
133e00a43d Remove unbundled rapidjson support 2022-01-20 10:01:12 +03:00
Azat Khuzhin
db468b6fae Remove unbundled simdjson support 2022-01-20 10:01:12 +03:00
Azat Khuzhin
4524a19391 Remove unbundled ICU support 2022-01-20 10:01:12 +03:00
Azat Khuzhin
48b5c098dd Remove unbundled farmhash support 2022-01-20 10:01:12 +03:00
Azat Khuzhin
f1cc63d900 Remove unbundled cityhash support 2022-01-20 10:01:12 +03:00
Azat Khuzhin
8ede97925e Remove unbundled sparsehash support 2022-01-20 10:01:11 +03:00
Azat Khuzhin
789dfd9f3b Remove unbundled re2 support
v2: preserve re2_st name to make PVS check pass (since docker image
update fails)
2022-01-20 10:00:49 +03:00
bharatnc
6e8439e764 review fixes 2022-01-19 22:35:21 -08:00
bharatnc
9c79ba3151 minor fix 2022-01-19 22:18:45 -08:00
bharatnc
cd4d12c443 add degrees and radians funcs 2022-01-19 22:18:44 -08:00
Azat Khuzhin
94ba901fbd Remove unbundled s2geometry support 2022-01-20 08:47:16 +03:00
Azat Khuzhin
cf30669cc9 Remove unbundled openssl/boringssl (crypo/ssl) support 2022-01-20 08:47:16 +03:00
Azat Khuzhin
8485abd52b Remove unbundled lz4 support 2022-01-20 08:47:16 +03:00
Azat Khuzhin
ca8525a733 Remove unbundled zlib support 2022-01-20 08:47:16 +03:00
Alexander Tokmakov
e9a5a64a71 Merge branch 'master' into mvcc_prototype 2022-01-19 21:41:23 +03:00
Maksim Kita
6de52464e5
Merge pull request #33772 from ucasfl/bit-hamming
rewrite bitHammingDistance with FunctionBinaryArithmetic
2022-01-19 15:18:05 +01:00
Bharat Nallan
4dd8b65a1c
add h3ToCenterChild function (#33313) 2022-01-19 16:04:23 +03:00
vdimir
34765765ad Use tb64senc for base64Decode on aarch64 2022-01-19 12:00:24 +00:00
Nikolay Degterinsky
8c1c3f0ce8 Small fix 2022-01-19 10:31:04 +00:00
feng lv
53fde56cb7 rewrite bitHammingDistance with FunctionBinaryArithmetic
fix

fix typo
2022-01-19 09:07:05 +00:00
bharatnc
a2a5beaedc fix style check 2022-01-18 22:52:13 -08:00
bharatnc
28a7366130 fix spacing 2022-01-18 22:52:13 -08:00
bharatnc
5e58767de8 add check for h3 empty column arguments 2022-01-18 22:52:13 -08:00
Frank Chen
94a2490664
Fix style checking 2022-01-19 10:13:12 +08:00
Nikolay Degterinsky
9d45025c7d Merge branch 'master' into classification 2022-01-18 21:41:03 +00:00
Nikolay Degterinsky
3a414eb1da Fix detectLanguage 2022-01-18 21:32:32 +00:00
Dmitry Novik
43838c1b4c
Merge pull request #33355 from ucasfl/decimal-binary-op
Enable binary arithmetic between Decimal and Float
2022-01-18 14:04:26 +03:00
frank chen
3391f3f06e Change the order
Signed-off-by: frank chen <frank.chen021@outlook.com>
2022-01-18 14:27:08 +08:00
alexey-milovidov
19fadd8d41
Merge pull request #33707 from kitaisreal/h3-remove-functions-rads-to-degs
H3 remove functions degsToRads, radsToDegs
2022-01-18 03:32:38 +03:00
Maksim Kita
110b39add4 H3 remove functions degsToRads, radsToDegs 2022-01-17 14:42:50 +00:00
Nikolay Degterinsky
6424311773 Fix 2022-01-17 10:01:06 +00:00
zvonand
32dc865203 Merge branch 'master' of github.com:ClickHouse/ClickHouse into issue_14648 2022-01-17 11:42:06 +03:00
Maksim Kita
ff15e5af1d Fixed tests 2022-01-16 11:45:36 +00:00
Maksim Kita
0df98140af Functions dictGet, dictHas implicit key cast 2022-01-15 23:25:05 +00:00
bharatnc
3660438325 Merge remote-tracking branch 'upstream/master' into ncb/h3-misc-funcs 2022-01-14 16:46:17 -08:00
Mikhail Artemenko
698364f7b0 add tests 2022-01-14 20:58:56 +03:00
Alexander Tokmakov
4dd216ce8f Merge branch 'master' into mvcc_prototype 2022-01-14 17:11:32 +03:00
bharatnc
8b10bd9221 fix style check 2022-01-14 00:52:02 -08:00
bharatnc
9f35c0affc fix res type in various funcs 2022-01-14 00:44:18 -08:00
bharatnc
f303e0b23b fix return type 2022-01-14 00:20:34 -08:00
bharatnc
f0bffbfee5 check max H3 resolution 2022-01-14 00:11:52 -08:00
bharatnc
a680604335 add h3NumHexagons func 2022-01-14 00:02:41 -08:00
bharatnc
c9aca0d7c6 add h3ExactEdgeLengthRads func 2022-01-13 23:42:56 -08:00
bharatnc
905d4abdd6 add h3ExactEdgeLengthKm func 2022-01-13 23:40:07 -08:00
bharatnc
e4d8b60745 add column check for h3EdgeLengthKm 2022-01-13 22:25:17 -08:00
bharatnc
2d6801aa95 add h3ExactEdgeLengthM func 2022-01-13 21:05:54 -08:00
bharatnc
a037d286fb add func h3EdgeLengthKm 2022-01-13 19:19:23 -08:00
mergify[bot]
48f8706869
Merge branch 'master' into comp-decimal-float 2022-01-13 04:33:28 +00:00
feng lv
abea81789e fix and add more tests 2022-01-13 03:25:01 +00:00
Nikolay Degterinsky
1c24667f20 Refactor 2022-01-12 16:49:21 +00:00
RogerYK
1dd903f28d fix undefined behavior 2022-01-12 19:13:08 +08:00
RogerYK
b6e40427a0 fix style 2022-01-11 23:35:34 +08:00
RogerYK
8707e3bea1 make implementation clear and add more test 2022-01-11 23:22:16 +08:00
feng lv
bf0a6570c0 Merge branch 'decimal-binary-op' of https://github.com/ucasfl/ClickHouse into decimal-binary-op 2022-01-11 12:28:25 +00:00
feng lv
655cf6c315 fix 2022-01-11 12:27:21 +00:00
Maksim Kita
a9f389d546
Merge pull request #33512 from kitaisreal/h3-funcs-bad-arguments-possible-crash-fix
H3 functions bad arguments possible crash fix
2022-01-11 12:31:57 +03:00
Kruglov Pavel
eb65175b6b
Merge pull request #33504 from ClickHouse/fix_nested_lc_default
Fix insert into defalut nested LowCardinality column.
2022-01-11 12:15:27 +03:00
Maksim Kita
ca5e08cef6 H3 functions bad arguments possible crash fix 2022-01-11 11:21:56 +03:00
bharatnc
01f9370d6e fix variable name in h3 misc funcs 2022-01-10 22:41:41 -08:00
Nikolay Degterinsky
85b8985df2 Better 2022-01-10 20:30:26 +00:00
zvonand
3c0acbfbbf Fix fromUnixTimestamp64...() functions 2022-01-10 22:41:05 +03:00
Nikolai Kochetov
776bb0b02c Fix insert into defalut nested LowCardinality column. 2022-01-10 21:30:28 +03:00
Alexander Tokmakov
bf2b6c2c37 Merge branch 'master' into mvcc_prototype 2022-01-10 19:53:50 +03:00
zvonand
ed0f7adb1e Modified type check for fromUnixTimestamp64 2022-01-10 13:15:26 +03:00
mergify[bot]
664eb7d456
Merge branch 'master' into decimal-binary-op 2022-01-10 07:14:56 +00:00
feng lv
8346057be6 fix 2022-01-10 03:05:45 +00:00
bharatnc
fe0e2af033 remove some extra vertical spaces 2022-01-09 09:12:30 -08:00
bharatnc
ab518b282c use checkAndGetColumn to get columns explicitly 2022-01-09 09:08:52 -08:00
feng lv
b06211fb03 fix
fix
2022-01-09 16:32:31 +00:00
bharatnc
1a98c34c98 fix formatting 2022-01-08 15:38:52 -08:00
bharatnc
cced75732a add h3CellAreaRads2 func 2022-01-08 15:23:46 -08:00
bharatnc
deb2ed649a add h3CellAreaM2 func 2022-01-08 15:23:46 -08:00
bharatnc
fb3ad4e0fc add h3HexAreaToKm2 func 2022-01-08 15:23:46 -08:00
bharatnc
3e84a4ee81 add func h3RadsToDegs 2022-01-08 15:23:45 -08:00
bharatnc
70288074e8 change input arg to Float64 2022-01-08 15:23:45 -08:00
bharatnc
c0fa31f28e fix return stmt 2022-01-08 15:23:45 -08:00
bharatnc
d0fd19f28c add h3DegsToRads func 2022-01-08 15:23:45 -08:00
Maksim Kita
ff645a062a
Merge pull request #33465 from kitaisreal/function-array-last-index
Added function arrayLastIndex
2022-01-08 23:08:04 +03:00
feng lv
442a183ec2 fix
fix
2022-01-08 14:17:53 +00:00
Maksim Kita
d6df9d6621 Added function arrayLastIndex 2022-01-08 11:37:31 +03:00
Maksim Kita
4141246c13 Function monthName small fix 2022-01-08 11:04:22 +03:00
alexey-milovidov
df2fede98b
Update decodeURLComponent.cpp 2022-01-08 07:21:12 +03:00
mergify[bot]
905d5be288
Merge branch 'master' into add-decodeURLFormComponent 2022-01-08 01:22:40 +00:00
alexey-milovidov
140d64f785
Merge pull request #33415 from kitaisreal/function-array-last
Added function arrayLast
2022-01-07 20:37:06 +03:00
usurai
d4116d8de2 Fix case style 2022-01-07 23:47:21 +08:00
Maksim Kita
6b9703446d Added function arrayLast 2022-01-07 16:37:21 +03:00
cmsxbc
37349a9d0f
add function decodeURLFormComponent 2022-01-07 20:51:30 +08:00
usurai
9fd8b99b7c Remove maybe_unused 2022-01-07 13:23:22 +08:00
usurai
76848e7a2a Use FunctionFactory to invoke dateName 2022-01-07 13:06:47 +08:00
usurai
aaa45beba1 Revert "Move dataName.cpp to dateName.h"
This reverts commit f919bb8664.
2022-01-07 09:45:34 +08:00
usurai
e849ea4294 Revert "Add monthName"
This reverts commit c0892f6e6c.
2022-01-07 09:45:27 +08:00
usurai
c0892f6e6c Add monthName 2022-01-07 00:32:38 +08:00
usurai
f919bb8664 Move dataName.cpp to dateName.h 2022-01-07 00:11:54 +08:00
Alexey Milovidov
6157f73fb5 Fix UBSan 2022-01-05 22:15:22 +03:00
Alexey Milovidov
eb80dfebf2 Fix style 2022-01-05 07:12:20 +03:00
Alexey Milovidov
c4713ee34b Normalize left, right, leftUTF8, rightUTF8 functions 2022-01-05 06:46:31 +03:00
Alexey Milovidov
bf59114cee Make "left" and "right" real functions 2022-01-05 05:32:40 +03:00
RogerYK
86db17e70f Add comment and docs 2022-01-03 16:31:11 +08:00
Alexey Milovidov
cab5f4fe1e Merge with master 2022-01-03 02:07:08 +03:00
Amos Bird
0b7a94c2be Saturate date/datetime to zero 2022-01-03 02:07:08 +03:00
RogerYK
f2e5399c61 Add function bitSlice for String and FixedString 2022-01-02 18:49:09 +08:00
feng lv
48c0b41ad5 Enable binary arithmetic between Decimal and Float
fix
2022-01-01 09:11:21 +00:00
Alexander Tokmakov
0d91887cdc save versions of parts 2021-12-30 16:15:28 +03:00
Nikolay Degterinsky
fce10091a9 Merge branch 'master' into classification 2021-12-30 10:34:06 +00:00
Nikolay Degterinsky
3dfba6f223 Fix style 2021-12-30 03:46:57 +00:00
Nikolay Degterinsky
b9a75bc39c Fix build 2021-12-30 03:15:21 +00:00
Nikolay Degterinsky
2bdee0b0b8 Merge branch 'master' into classification 2021-12-30 02:17:47 +00:00
Nikolay Degterinsky
ba0083736e Change DetectLanguageMixed output type 2021-12-30 02:14:57 +00:00
vdimir
154e7b03c0
Disable FunctionConvertFromString::canBeExecutedOnDefaultArguments 2021-12-29 13:34:54 +03:00
Alexander Tokmakov
8aec3ae94f Merge branch 'master' into mvcc_prototype 2021-12-28 14:24:36 +03:00
Mikhail Artemenko
58dd32b07b add meiliMatch function 2021-12-28 12:23:39 +03:00
feng lv
5e23126f28 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into decimal-binary-op 2021-12-26 09:24:18 +00:00
feng lv
a32513fd46 fix 2021-12-26 09:23:42 +00:00
feng lv
6734b592bb decimal plus float 2021-12-26 09:04:12 +00:00
mergify[bot]
f5a7e58cb0
Merge branch 'master' into comp-decimal-float 2021-12-26 07:13:00 +00:00
alexey-milovidov
4d99f1016d
Merge pull request #33146 from CurtizJ/fix-column-sparse
Fix functions with sparse arguments in case when result type doesn't support sparse serialization
2021-12-25 06:28:19 +03:00
alexey-milovidov
26a735c52f
Merge pull request #32984 from Avogar/bool-type
Improve Bool data type
2021-12-25 06:22:54 +03:00
Anton Popov
c37f1c40be fix functions with sparse arguments 2021-12-24 19:39:50 +03:00
Alexey Milovidov
29d28c531f Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
feng lv
148fbb82ad fix
fix comment
2021-12-24 05:25:23 +00:00
feng lv
80c5bfcbcb fix
fix
2021-12-24 05:13:12 +00:00
avogar
85d214d560 Fix build 2021-12-23 20:14:54 +03:00
avogar
2e02a6bcca Try to fix build 2021-12-23 19:47:29 +03:00
avogar
ce68c54b03 Fix comments, reduce extra copying 2021-12-23 19:47:29 +03:00
avogar
5e5d6609ed Proper cast to bool 2021-12-23 19:47:29 +03:00
avogar
19faf46b68 Improve Bool data type 2021-12-23 19:47:29 +03:00
Nikolay Degterinsky
52b18b0c56 Refactor 2021-12-23 14:10:12 +00:00
mergify[bot]
caf19e66e3
Merge branch 'master' into hex 2021-12-23 09:00:29 +00:00
feng lv
dc6f7858f8 refactor 2021-12-23 03:55:40 +00:00
Alexander Tokmakov
b7184732d5 Merge branch 'master' into mvcc_prototype 2021-12-22 19:46:09 +03:00
tavplubix
c297c2c4c3
Revert "Dictionaries added Date32 type support" 2021-12-22 19:41:52 +03:00
Maksim Kita
97b0a343f8
Merge pull request #32971 from kitaisreal/dictionaries-added-date32-type-support
Dictionaries added Date32 type support
2021-12-22 19:22:01 +03:00
mergify[bot]
7da6d8b310
Merge branch 'master' into fix_IP_conversion 2021-12-21 12:16:05 +00:00
Alexander Tokmakov
9cd49bc0ec Merge branch 'master' into mvcc_prototype 2021-12-20 22:06:22 +03:00
Maksim Kita
dd0d3de050
Merge pull request #32970 from kitaisreal/loops-remove-postfix-increment
Loops remove postfix increment
2021-12-20 19:51:07 +03:00
Maksim Kita
02b6ad52ef FunctionThrowIf fixed exception 2021-12-20 16:55:15 +03:00
Maksim Kita
60d4295d8a FunctionThrowIf added comment 2021-12-20 16:00:43 +03:00
Maksim Kita
51477adf1b Updated additional cases 2021-12-20 15:55:07 +03:00
Maksim Kita
20e4ce3314 Short circuit evaluation function throwIf support 2021-12-20 14:49:05 +03:00
Maksim Kita
51826c14a0 Dictionaries added Date32 type support 2021-12-20 13:39:07 +03:00
Maksim Kita
7785eac384 Loops remove postfix increment 2021-12-20 13:32:13 +03:00
Maksim Kita
2eb9b3118e
Merge pull request #32805 from kitaisreal/cache-dictionary-dictionary-source-access-race-fix
CacheDictionary dictionary source access race fix
2021-12-20 12:50:16 +03:00
bharatnc
b9787f730e use prefix increment for rows 2021-12-19 20:32:52 -08:00
bharatnc
15c555c161 simplify looping in S2 functions
Previously replaced range based for loops in H3 functions with simple
for loops based on review. Similarly doing the same for the S2 functions
also.
2021-12-19 20:00:28 -08:00
alexey-milovidov
13d1377ad7
Update src/Functions/ReplaceRegexpImpl.h
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
2021-12-19 12:59:28 +03:00
Alexey Milovidov
0d6e8e90eb Proper fix for #30245 2021-12-19 12:44:42 +03:00
alexey-milovidov
cee850b3be
Revert "fix replaceRegexpAll bug" 2021-12-19 11:32:34 +03:00
Anton Popov
99ebabd822 Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-17 19:02:29 +03:00
alesapin
6bd7e425c6
Merge pull request #22535 from CurtizJ/sparse-serialization
Sparse serialization and ColumnSparse
2021-12-17 15:26:17 +03:00
Alexander Tokmakov
32e62ed5c2 Merge branch 'master' into mvcc_prototype 2021-12-17 10:43:46 +03:00
Anton Popov
079b08a28a support nested in json type (wip) 2021-12-16 14:42:12 +03:00
alexey-milovidov
5293555d4d
Merge pull request #31797 from aiven/kmichel-fix-base64encode-too-fast
Fix base64Encode adding trailing bytes on small strings
2021-12-16 01:35:22 +03:00
mergify[bot]
41ae7c8eb1
Merge branch 'master' into fix_IP_conversion 2021-12-15 19:19:47 +00:00
Dmitry Novik
64b0365848 Fix build 2021-12-15 20:40:36 +03:00
Maksim Kita
ac3cb8c12b CacheDictionary dictionary source access race fix 2021-12-15 15:55:28 +03:00
mergify[bot]
4300f77532
Merge branch 'master' into fix_IP_conversion 2021-12-14 20:12:34 +00:00
Alexander Tokmakov
d7ad72838c Merge branch 'master' into mvcc_prototype 2021-12-14 23:07:52 +03:00
Anton Popov
16312e7e4a Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-14 18:58:17 +03:00
cmsxbc
0b4a9ebce0
fix fuzzbits with multiply same fixedstring 2021-12-14 23:26:18 +08:00
youenn lebras
c2b761acf2
Add cmake option to enable or not AVX2 instructions
This reverts commit bca8eca44fe382b6efe80a381d42e6ede8a91fa3.
2021-12-14 09:45:03 +01:00
youenn lebras
72fb56904d
Add cmake option to enable or not AVX2 instructions 2021-12-13 17:57:32 +01:00
Youenn Lebras
2a2eb3a27b
re-enable full AVX2
- change lddqu to loadu
 - Update CmakeList.txt
2021-12-13 17:57:32 +01:00
Youenn Lebras
a810ce5dcb
Remove AVX2 to figure out where is the illegal intruction
Enable AVX2 - int32
2021-12-13 17:57:31 +01:00
Youenn Lebras
62487fe2fc
Pass SSE version to 4.2 and exploiting it's specific loadu 2021-12-13 17:57:31 +01:00
Youenn Lebras
13878d2618
Modify include files according to the processors capabilities 2021-12-13 17:57:29 +01:00
Jakub Kuklis
a3c08acac3
Moving sliceHasImplAnyAll and sliceEqualElements to separate header files to avoid SIMD instructions bloat in Algorithms.h 2021-12-13 17:57:28 +01:00
Jakub Kuklis
169c49c583
Correcting style and resolving warnings 2021-12-13 17:57:28 +01:00
Jakub Kuklis
7dbb217a9a
Correcting { placement 2021-12-13 17:57:27 +01:00
Jakub Kuklis
763bd006a7
Correcting new hasAll implementation for the case with null elements present in 'second' and absent in 'first', refactoring the outer loop remainder into a separate function, improving null checking in the default implementation 2021-12-13 17:57:27 +01:00
Jakub Kuklis
439082aa98
Adding a null map negative test, the new hasAll implementation needs correction for that case 2021-12-13 17:57:26 +01:00
Jakub Kuklis
92ec28a87b
Refactoring the new SIMD hasAll implementation to comply with current hasAll implementation (swapping 'first' and 'second' arguments meaning) and with ClickHouse C++ guidelines 2021-12-13 17:57:26 +01:00
Jakub Kuklis
abecb8114f
Refactoring the hasAll gtest so that it works with the original hasAll 2021-12-13 17:57:25 +01:00
Youenn Lebras
3548e974e1
Implement HasAll specialization for SSE and AVX2 2021-12-13 17:57:21 +01:00
Frank Chen
7cb8171d37
Merge branch 'ClickHouse:master' into hex 2021-12-13 13:24:22 +08:00
Alexey Milovidov
71926a3a97 Fix surprisingly bad code in function "file" 2021-12-13 07:57:54 +03:00
alexey-milovidov
6779196c6b
Merge pull request #32587 from ClickHouse/reinterpret-perf
Slight performance improvement of "reinterpret" function
2021-12-12 12:14:43 +03:00
alexey-milovidov
26d606c158
Merge pull request #32456 from ClickHouse/fix-29890
Fix arraySlice with null args.
2021-12-12 06:38:17 +03:00
Alexey Milovidov
3b0f026827 Slight performance improvement of "reinterpret" function 2021-12-12 03:29:26 +03:00
vxider
d021e13b8c rename window function name 2021-12-10 09:59:50 +00:00
vxider
52fa82b4d4 rename window-view function to time window function 2021-12-10 09:43:44 +00:00
Nikolai Kochetov
b3bd9e6a37 Fix arraySlice with null args. 2021-12-09 16:31:13 +03:00
Nikolay Degterinsky
2b2ffcc8ea Merge branch 'master' into classification 2021-12-09 11:22:01 +00:00
Anton Popov
d8367334a3 Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-08 18:26:19 +03:00
feng lv
c3c69c5f79 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into comp-decimal-float 2021-12-08 13:15:51 +00:00
mergify[bot]
ed0c36bf32
Merge branch 'master' into rename-window-functions 2021-12-07 21:04:53 +00:00
feng lv
8ab2777dd5 fix 2021-12-07 15:51:47 +00:00
Alexander Tokmakov
7fcb79ae72 Merge branch 'master' into mvcc_prototype 2021-12-07 14:39:29 +03:00
Nikita Mikhaylov
7e036d31e9 One more style related commit 2021-12-07 11:29:46 +00:00
Nikita Mikhaylov
d3d4524390 Merge branch 'master' of github.com:ClickHouse/ClickHouse into get_fuzz_data 2021-12-07 10:32:03 +00:00
vxider
c4c517bb8a rename window functions 2021-12-07 08:14:00 +00:00
Nikita Mikhaylov
fb24e7181f Better 2021-12-06 18:27:06 +00:00
Nikita Mikhaylov
fa22fdc097 Merge branch 'master' of github.com:ClickHouse/ClickHouse into get_fuzz_data 2021-12-06 14:30:49 +00:00
vxider
2f4f2d9d5e Merge branch 'master' of https://github.com/ClickHouse/ClickHouse 2021-12-06 14:06:00 +00:00
frank chen
0b6949172c keep leading zeros for UUID
Signed-off-by: frank chen <frank.chen021@outlook.com>
2021-12-06 17:13:32 +08:00
vxider
c522c06755 fix windowview parser 2021-12-04 12:30:04 +00:00
Maksim Kita
2d3f773147 Function accurateCastOrDefault remove separate branch 2021-12-03 13:25:55 +03:00
mergify[bot]
dbc43efa9a
Merge branch 'master' into hex 2021-12-03 07:10:07 +00:00
frank chen
dac61d7c1e Support hex() on UUID
Signed-off-by: frank chen <frank.chen021@outlook.com>
2021-12-03 10:50:35 +08:00
Azat Khuzhin
344298f403 Fix CAST from Nullable with cast_keep_nullable
UBsan report [1]:

    SELECT toUInt32OrDefault(toNullable(0)) SETTINGS cast_keep_nullable = 1

    ../src/Common/assert_cast.h:50:12: runtime error: downcast of address 0x000029461170 which does not point to an object of type 'const DB::ColumnNullable'
    0x000029461170: note: object is of type 'DB::ColumnVector<unsigned int>'
     00 00 00 00  a0 51 3d 09 00 00 00 00  01 00 00 00 00 00 00 00  a0 3f 4e 29 00 00 00 00  a4 3f 4e 29
                  ^~~~~~~~~~~~~~~~~~~~~~~
                  vptr for 'DB::ColumnVector<unsigned int>'
        0 0x1e3e279d in DB::ColumnNullable const& assert_cast<DB::ColumnNullable const&, DB::IColumn const&>(DB::IColumn const&) obj-x86_64-linux-gnu/../src/Common/assert_cast.h:50:12
        1 0x1e3e279d in DB::ColumnNullable::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) obj-x86_64-linux-gnu/../src/Columns/ColumnNullable.cpp:167:43
        2 0x12db4507 in DB::FunctionCastOrDefault::executeImpl() const (/src/ch/tmp/32019/clickhouse-ubsan+0x12db4507)

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/32019/9e1222a50b1805f696f4205e451365f8acdbc8a5/fuzzer_astfuzzerubsan,actions//report.html

And w/o -fsanitize=undefined:

    SELECT toUInt32OrDefault(toNullable(1), toNullable(toUInt32(1))) SETTINGS cast_keep_nullable = 1

    Received exception:
    Code: 12. DB::Exception: Parameters start = 0, length = 1 are out of bound in ColumnVector<T>::insertRangeFrom method (data.size() = 0).: While processing toUInt32OrDefault(toNullable(1), toNullable(toUInt32(1))). (PARAMETER_OUT_OF_BOUND)
2021-12-03 02:02:42 +03:00
Maksim Kita
2d359a5e79
Merge pull request #32110 from bharatnc/ncb/h3-func-looping
make looping in H3 funcs uniform
2021-12-02 13:15:36 +03:00
Maksim Kita
a426ed0a5a
Merge pull request #31800 from kitaisreal/dict-get-with-type-nullable-fix
Function dictGet with type Nullable fix
2021-12-02 12:27:47 +03:00
bharatnc
5614be28ef make looping in H3 funcs uniform
Some of the H3 funcs use `collections::range(0, input_rows_count)`
and some just use simple for loop for iterating over the rows.

In my recent PR reviews, I've been requested to use for loop in favor of
collections in the H3 functions and have been wanting to make the switch
for other functions too to make them uniform

This PR replaces `collections::range` with a simple for loop for this
kind of iteration in the remaining H3 funcs.
2021-12-01 18:14:08 -08:00
Anton Popov
6f4d9a53b2 Merge remote-tracking branch 'origin/sparse-serialization' into HEAD 2021-12-01 15:54:33 +03:00
Anton Popov
54f51444c0 Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-01 15:49:02 +03:00
Kruglov Pavel
cbfd77a394
Merge pull request #31839 from loneylee/master
Fix a bug about function transform with decimal args
2021-12-01 12:56:41 +03:00
Anton Popov
63fceca6a8 support nested in json type (wip) 2021-12-01 05:59:56 +03:00
Kseniia Sumarokova
3c348a2998
Merge pull request #8331 from Vxider/window-view
Support for Stream Processing
2021-11-30 18:20:12 +03:00
feng lv
f27699ccda Enable comparison betwwen Decimal and Float
add tests

update test
2021-11-30 03:29:49 +00:00
loneylee
496c3acd1c
Merge branch 'ClickHouse:master' into master 2021-11-29 15:15:23 +08:00
loneylee
fb159c0227 fix pr's bug @31839 2021-11-29 15:14:27 +08:00
Alexey Milovidov
0e07fe1002 Fix error 2021-11-28 07:18:00 +03:00
Alexey Milovidov
e865b49293 Merge branch 'master' into fix-decrypt-nullable 2021-11-28 06:12:06 +03:00
vxider
98740eec2e fix AST Fuzzer 2021-11-27 17:53:43 +00:00
vxider
d3a68c1498 update code style 2021-11-27 14:46:43 +00:00
vxider
f9a0b1aa13 fix AST Fuzzer 2021-11-27 08:38:53 +00:00
alexey-milovidov
d9292395e8
Merge pull request #31832 from ClickHouse/strange-code-typelist
Fix the issue that LowCardinality of Int256 cannot be created.
2021-11-27 00:36:56 +03:00
alexey-milovidov
75ac0f72bc
Merge pull request #31883 from CurtizJ/fix-empty-uuid
Fix function `empty` with `UUID` type
2021-11-27 00:23:47 +03:00
vxider
d95d181cbe fix code style 2021-11-26 18:30:22 +00:00
Vxider
71d9d80275 timezone support for Tumble/Hop Start/End 2021-11-26 18:03:41 +00:00
Raúl Marín
051dddd8df Reduce dependencies on ASTIdentifier.h
Goes from rebuilding 483 objects to 165 when it's modified
2021-11-26 16:49:40 +01:00
Anton Popov
7237343fd6 fix function 'empty' with uuid type 2021-11-26 17:39:29 +03:00
loneylee
56307bb2fa issue #29730 2021-11-26 10:05:31 +08:00
kssenii
223048d395 Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view 2021-11-26 01:06:06 +03:00
Alexey Milovidov
85cec911be Fix strange code in TypeList 2021-11-25 23:55:02 +03:00
Maksim Kita
1fa57c96b2 FunctionsExternalDictionaries removed areTypesEqual 2021-11-25 19:06:37 +03:00
Kevin Michel
8356d44c70
Fix base64Encode returning corrupted data
The "fast" mode of turbo base64 seem to go too fast on small strings,
disabling the AVX2 optimisation for small string fixes the problem.

See the test named 02113_base64encode_trailing_bytes.sql for an example
of a failing case (only applies when running on a CPU with the AVX2
instruction set).

Ref. 15e044269d/turbob64.h (L106-L111)
2021-11-25 15:24:11 +01:00
Maksim Kita
a480eb89ef Function dictGet with type Nullable fix 2021-11-25 17:06:35 +03:00
Alexey Milovidov
a4e57228cf Add a test from #31662 2021-11-24 23:09:50 +03:00
Alexey Milovidov
bd1964a2eb Fix exception on some of the applications of "decrypt" function on Nullable columns 2021-11-24 16:46:20 +03:00
yandd
7b43608e1f
Fixed function ngrams 2021-11-24 21:18:38 +08:00
Kruglov Pavel
b63b47f0f0
Merge pull request #31265 from Avogar/fix-write-buffers
Fix and refactor WriteBiffer-s a little
2021-11-23 16:46:09 +03:00
Anton Popov
ccd78e3838 Merge remote-tracking branch 'upstream/master' into HEAD 2021-11-22 17:19:35 +03:00
Alexey Milovidov
c5fcef03c3 Remove trash 2021-11-21 18:12:05 +03:00
Kruglov Pavel
d9c1a0c8ec
Merge branch 'master' into fix-write-buffers 2021-11-20 17:48:24 +03:00
kssenii
29978f9707 Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view 2021-11-20 12:13:39 +03:00
kssenii
9bdad8ab64 Rewrite from DataStreams to Processors 2021-11-19 16:09:12 +03:00
kssenii
6a39d871b2 Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view 2021-11-18 17:29:11 +03:00
kssenii
11ab1f1ae5 Fix 2021-11-18 08:46:31 +00:00
kssenii
4016530b99 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into sql-json-fix-2 2021-11-18 08:33:50 +00:00
Nikolay Degterinsky
f2060d48ac Merge branch 'master' 2021-11-17 22:23:41 +00:00
Alexander Tokmakov
06bed68f6e Merge branch 'master' into mvcc_prototype 2021-11-17 23:03:19 +03:00
Kruglov Pavel
f27fcf8372
Merge pull request #31004 from Avogar/output-formats
Small refactoring in formats
2021-11-17 20:44:46 +03:00
Alexander Tokmakov
672157b817 Merge branch 'master' into mvcc_prototype 2021-11-11 22:01:34 +03:00
Alexander Tokmakov
5656203bc6 minor fixes 2021-11-11 21:23:42 +03:00
avogar
c521a9131a Small refactoring of WriteBiffer-s 2021-11-11 02:11:18 +03:00
Anton Popov
a20922b2d3 Merge remote-tracking branch 'origin/sparse-serialization' into HEAD 2021-11-09 15:36:25 +03:00
mergify[bot]
4f6fd49266
Merge branch 'master' into fix_IP_conversion 2021-11-09 12:11:54 +00:00
Dmitry Novik
406bb4d997
Merge pull request #28965 from nicelulu/issues_28774
128bit hash-functions accepting arbitrary list of arguments
2021-11-09 14:40:25 +03:00
Anton Popov
66973a2a28 Merge remote-tracking branch 'upstream/master' into HEAD 2021-11-08 21:27:45 +03:00
kssenii
ab44123f49 Fix 2021-11-08 13:00:42 +03:00
Alexander Tokmakov
92eec74ad7 Merge branch 'master' into mvcc_prototype 2021-11-06 21:08:36 +03:00
kssenii
9cfa2c4578 Merge branch 'master' of github.com:ClickHouse/ClickHouse into sql-json-fix-2 2021-11-04 13:04:00 +03:00
avogar
2dd4393ca1 Small refactoring in formats 2021-11-03 20:07:05 +03:00
kssenii
ae8a451cef Merge branch 'master' of github.com:ClickHouse/ClickHouse into sql-json-fix-2 2021-11-03 14:37:50 +03:00
Vitaly Baranov
1f217aeb5a
Merge pull request #30998 from vitlibar/rename-access-control-manager
Rename AccessControlManager
2021-11-03 12:20:17 +03:00
Anton Popov
2a617e6a5a
Merge pull request #31003 from kssenii/sql-json-fix
Allow spaces in JSONPath.
2021-11-03 00:59:54 +03:00
kssenii
79bb4fdba4 Fix 2021-11-02 21:57:36 +03:00
kssenii
01684ad05a Fix 2021-11-02 16:53:47 +03:00
avogar
62c5951dd7 Fix segfault in formatRow function 2021-11-02 16:26:14 +03:00
Vitaly Baranov
afe2c9c040 Rename AccessControlManager -> AccessControl. 2021-11-02 14:06:20 +03:00
Vitaly Baranov
3ed7f8f0b3 Move access-rights' source files needed for parser to a separate target. 2021-11-01 19:13:49 +03:00
Anton Popov
d50137013c Merge remote-tracking branch 'upstream/master' into HEAD 2021-11-01 16:55:53 +03:00
Vladimir C
9d967e9883
Merge pull request #30840 from nickitat/nickitat_any_type_4_arrayStringConcat 2021-11-01 11:48:45 +03:00
alexey-milovidov
b18e5fcfe4
Merge branch 'master' into issues_28774 2021-10-31 15:07:26 +03:00
Kseniia Sumarokova
2050d0a33d
Merge pull request #30793 from lingtaolf/feature/function_mapExtractKeyLike
Add  new function mapExtractKeyLike
2021-10-29 21:54:39 +03:00
凌涛
921bdbdd7d
Update src/Functions/map.cpp
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2021-10-29 14:51:34 +08:00
Nickita Taranov
734bb5b026 support any serializable column 2021-10-28 23:17:45 +03:00
alexey-milovidov
69bc2a8d2a
Merge pull request #30780 from ClickHouse/remove-cruft
Remove cruft
2021-10-28 17:42:18 +03:00
凌涛
39322cdbe2 add a new function mapExtractKeyLike 2021-10-28 17:15:32 +08:00
Kseniia Sumarokova
fba0e11cff
Merge pull request #29471 from lingtaolf/feature/fucntion-mapContainsKeyLike
New function `mapContainsKeyLike`
2021-10-28 09:21:51 +03:00
Alexey Milovidov
8b4a6a2416 Remove cruft 2021-10-28 02:10:39 +03:00
凌涛
996706101d optimized code 2021-10-27 19:53:53 +08:00
凌涛
d4d97d7b9a add new function mapContainsKeyLike
fixed error because of inconsistent offsets
2021-10-27 00:06:01 +08:00
Nikolai Kochetov
36c3b1d5b1
Merge pull request #30639 from ClickHouse/fix-30545
Fix argument types for now and now64
2021-10-26 16:29:18 +03:00
Kseniia Sumarokova
377b937aa5
Merge pull request #30244 from evillique/fix_like_function
Fix `LIKE` function
2021-10-25 16:35:37 +03:00
Anton Popov
b87c819c10
Merge pull request #30566 from nickitat/nickitat_nullable_4_arrayStringConcat
Support Nullable(String) type in arrayStringConcat
2021-10-25 16:04:20 +03:00
Nikolai Kochetov
a0a5c1a21d Fix argument types for now and now64 2021-10-25 12:06:53 +03:00
Nickita Taranov
877e8b579b fix style 2021-10-24 14:45:12 +03:00
Nickita Taranov
2d23e3b17d support for ColumnString 2021-10-22 18:53:02 +03:00
Nickita Taranov
a211c9ecbc support nullable for ColumnConst 2021-10-22 18:52:59 +03:00
mergify[bot]
86e1bb6b55
Merge branch 'master' into fix_like_function 2021-10-21 12:24:28 +00:00
Kruglov Pavel
27e8a83269
Merge pull request #30426 from amosbird/jsonextractstring3
JSONExtractString raw string support.
2021-10-21 12:29:11 +03:00
Kseniia Sumarokova
feeb572219
Merge pull request #30474 from kssenii/sql-json-fix
sql json change order of arguments
2021-10-21 09:47:12 +03:00
Kseniia Sumarokova
5544e866f8
Merge pull request #30219 from lhuang09287750/master
make date32 type comparable with date/datetime/string
2021-10-21 09:38:55 +03:00
kssenii
c96b884951 Fix 2021-10-20 20:47:34 +00:00
Anton Popov
78c925ddef
Merge pull request #30177 from CurtizJ/initializeAggregation-nullable
Support nullable arguments in function `initializeAggregation`
2021-10-20 15:39:07 +03:00
Amos Bird
ddcf12c83b
JSONExtractString raw string support. 2021-10-20 17:57:14 +08:00
lhuang0928
008a13df8b fix date32 comparison with datetime/datetime64 2021-10-20 03:36:07 +00:00
Nikita Mikhaylov
1114d06bc0 Done 2021-10-19 12:11:18 +00:00
Vladimir C
49685f0b9a
Merge pull request #30292 from Joeywzr/trim_dev 2021-10-19 14:49:43 +03:00
Nikolay Degterinsky
f861da2dd1 Fix [I]LIKE function 2021-10-18 17:19:02 +03:00
Anton Popov
d71ffc355a Merge remote-tracking branch 'upstream/master' into HEAD 2021-10-18 15:18:22 +03:00
lhuang0928
109e664188 fix date32 comparison with datetime/datetime64 2021-10-18 08:53:25 +00:00
Nikolai Kochetov
bfcbf5abe0 Merge branch 'master' into removing-data-streams-folder 2021-10-17 10:42:37 +03:00
WangZengrui
131aa77017 fix style 2021-10-17 11:21:58 +08:00
alexey-milovidov
3e9cf0b5ba
Merge pull request #30243 from Algunenano/multiIf_shortcircuit_fix
Fix crash with shortcircuit and LowCardinality in multiIf
2021-10-17 06:16:09 +03:00
WangZengrui
bd2c016cf3 fix bug 2021-10-17 00:33:57 +08:00
WangZengrui
1541593b2f add notes 2021-10-16 23:28:29 +08:00
WangZengrui
6752be4c4e fix bug and add test 2021-10-16 23:11:45 +08:00
WangZengrui
8a94e26bec init 2021-10-16 18:51:42 +08:00
Nikolai Kochetov
067eaadadd Merge branch 'master' into removing-data-streams-folder 2021-10-16 09:46:05 +03:00
Maksim Kita
a35d7096d8 Added concept HasIndexOperator 2021-10-15 23:26:09 +03:00
Nikolai Kochetov
fd14faeae2 Remove DataStreams folder. 2021-10-15 23:18:20 +03:00
Raúl Marín
01fbd52758 Fix crash with shortcircuit and locardinality in multiIf 2021-10-15 18:52:23 +02:00
Maksim Kita
a744097fb6 Fixed build 2021-10-15 15:34:13 +03:00
Maksim Kita
65aec857ec FunctionsJSON updated 2021-10-15 13:12:59 +03:00
lhuang09287750
766e08567c complete date32 comparison with date/datetime/string and give a test file 2021-10-15 08:09:37 +00:00
Azat Khuzhin
07adc847db Fix clang-tidy warnings in FunctionsJSON code 2021-10-15 10:11:03 +03:00
Maksim Kita
5568461acf FunctionsJSON move to cpp file 2021-10-14 23:10:53 +03:00
Anton Popov
7aa6068fb2 Merge remote-tracking branch 'upstream/master' into HEAD 2021-10-14 19:44:08 +03:00
Maksim Kita
04e07ed86d FunctionsJSON avoid copying object element during iteration 2021-10-14 16:37:52 +03:00
Maksim Kita
4ed28d8e52
Merge pull request #29981 from kitaisreal/added-function-tokens
Added function tokens
2021-10-14 15:36:06 +03:00
Anton Popov
4d020c96e0 support nullable arguments in function initializeAggregation 2021-10-14 15:09:06 +03:00
Maksim Kita
562c8984a4 Added documentation 2021-10-14 13:15:45 +03:00
Maksim Kita
6c6dd7a0c8
Merge pull request #30056 from orloffv/orloffv.JSONExtractKeys
Add JSONExtractKeys function
2021-10-14 12:50:19 +03:00
Maksim Kita
66f2163b60 Added function tokens 2021-10-14 00:08:15 +03:00
Vitaly Orlov
1623bfa1a2
review fixes 2021-10-13 09:55:35 +03:00
Vitaly Orlov
4d2b34a7f0
Review fixes 2021-10-13 00:08:00 +03:00
Vitaly Orlov
65c6605c2c
Add JSONExtractKeys function 2021-10-12 18:00:25 +03:00
Nikita Mikhaylov
7c67d764c0
Merge pull request #29934 from ClickHouse/remove-bayes-ab
Remove function bayesAB
2021-10-12 18:00:25 +03:00
Nikita Mikhaylov
5bf64c62c2 Delete test 2021-10-12 10:19:21 +00:00
Kseniia Sumarokova
b2f8cd07e6
Update normalizeString.cpp 2021-10-12 12:54:02 +03:00
Vladimir C
969999ff10
Merge pull request #29544 from Algunenano/join_deadlock 2021-10-12 12:34:04 +03:00
Maksim Kita
ec898f1a94
Merge pull request #28633 from darkkeks/normalize-utf8-nfc
Add normalizeUTF8 function with NFC normalization
2021-10-12 12:25:07 +03:00
Alexey Milovidov
2370a8d6da Fix PVS-Studio 2021-10-11 14:28:46 +03:00
Vladimir C
dc4bb920d3
Merge branch 'master' into join_deadlock 2021-10-11 10:18:17 +03:00
zhangxiao871
0a2cc1f96e Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2021-10-11 11:53:09 +08:00
zhangxiao871
e1c3f2dd48 RollBack murmurHash3_32 murmurHash3_64 2021-10-11 11:50:43 +08:00
Alexey Milovidov
2a20bf4909 Remove function bayesAB #26233 2021-10-10 04:16:32 +03:00