Arthur Passos
0569620a81
remove all usages of the word enclosed and use quoted instead
2023-03-17 09:59:16 -03:00
Arthur Passos
c22475a531
minor changes
2023-03-17 09:46:29 -03:00
Robert Schulze
f8980c582e
CMake: More removal of gold linker (follow-up to #47660 )
...
+ fix a linker warning
2023-03-17 11:01:46 +00:00
Aleksei Filatov
886b530963
[rev: 1] Fix review remarks
2023-03-17 13:56:05 +03:00
Aleksei Filatov
cf6ca10c83
Tests for replicated system.functions
2023-03-17 13:56:05 +03:00
Aleksei Filatov
690d8355ca
Add classes for backup/restore UDF
2023-03-17 13:56:04 +03:00
Aleksei Filatov
f84aa2f4ca
Add classes for replication UDF to ZooKeeper
2023-03-17 13:56:04 +03:00
Arthur Passos
c4cb3a565a
add some more input validation
2023-03-16 17:41:49 -03:00
Anton Popov
e536c80274
add test with array of tuples
2023-03-16 20:30:54 +00:00
HarryLeeIBM
1ba75c6408
Refactored by using std::byteswap
2023-03-16 10:03:43 -07:00
Arthur Passos
09faf121d6
cross check parameters
2023-03-16 14:01:40 -03:00
Arthur Passos
ee210bd6df
input parameter validation, still draft
2023-03-16 11:26:27 -03:00
HarryLeeIBM
808f2c0cb4
Fix hashing tuples for s390x
2023-03-16 08:44:28 -04:00
Arthur Passos
40639fade9
remove support for multiple quoting characters
2023-03-15 11:18:14 -03:00
Vitaly Baranov
00c05f7f8b
Merge pull request #47546 from vitlibar/use-server-side-copy-for-restore
...
Use server-side copy for restore from S3 to S3.
2023-03-15 11:28:29 +01:00
Robert Schulze
5cee479f0c
Merge pull request #47424 from ClickHouse/rs/compile-with-cpp23
...
Compile with C++23
2023-03-15 10:55:42 +01:00
Alexey Milovidov
399634a1bc
More tests
2023-03-15 00:38:46 +01:00
Arthur Passos
b74faae9b8
add first noescaping impl, add tests
2023-03-14 19:39:40 -03:00
Alexey Milovidov
e074a154dd
Fix style
2023-03-14 22:47:22 +01:00
Alexey Milovidov
e952ecae8c
Add Decimal256 to a lot of places
2023-03-14 22:10:52 +01:00
Ilya Yatsishin
82a6d75050
Merge pull request #47535 from ucasfl/insrt
...
Add INSTR as alias of positionCaseInsensitive for MySQL compatibility
2023-03-14 22:00:40 +01:00
Arthur Passos
6672821653
remove unwanted files
2023-03-14 15:13:54 -03:00
Arthur Passos
166bbae6cd
add a few more tests
2023-03-14 15:13:07 -03:00
Arthur Passos
363c898c12
refactor to find_first logic instead of character validation
2023-03-14 14:56:14 -03:00
Vitaly Baranov
1cf1ce07fe
Use server-side copy during restore from S3 to S3.
2023-03-13 23:50:13 +01:00
Arthur Passos
6922cf7de0
seems functional
2023-03-13 17:35:06 -03:00
Antonio Andelic
914e0fbb0a
Fix monotonic check with DateTime64
2023-03-13 16:30:32 +00:00
flynn
81b04977fd
Add INSTR as alias of posionCaseInsensitive for MySQL compatibility
2023-03-13 15:44:38 +00:00
Alexey Milovidov
f445649845
Merge branch 'master' into rs/compile-with-cpp23
2023-03-12 21:33:20 +03:00
Anton Popov
6ba79c2737
better support of identifiers from compound expressions
2023-03-12 16:24:50 +00:00
Maksim Kita
114d30d2bb
Merge pull request #47383 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
...
Analyzer planner fixes before enable by default
2023-03-11 22:09:04 +03:00
Maksim Kita
3d34247998
Fixed tests
2023-03-11 11:51:54 +01:00
Alexey Milovidov
6ba54ab421
Merge branch 'master' into rs/compile-with-cpp23
2023-03-11 06:33:14 +03:00
Alexey Milovidov
eead7fcbac
Fix error in decodeURLComponent
2023-03-11 02:24:44 +01:00
Robert Schulze
348a40aa5d
Compile with C++23
2023-03-10 19:11:58 +00:00
Arthur Passos
2530b60fb2
tmp
2023-03-10 09:59:31 -03:00
Sema Checherinda
1260f6910f
Merge pull request #47398 from CheSema/additional-asserts
...
add checks for ptr
2023-03-10 12:32:51 +01:00
Nikolay Degterinsky
44531e5f85
Merge pull request #47322 from evillique/running_difference
...
Add support for big int types to runningDifference() function
2023-03-09 12:39:35 +01:00
Sema Checherinda
7bf1b83414
add checks
2023-03-09 12:37:57 +01:00
Alexander Tokmakov
38f9f08e1a
Merge pull request #47268 from myrrc/improvement/more-to-base-3
...
use std::lerp, constexpr hex.h
2023-03-08 19:07:34 +03:00
Vladimir C
b298fbeecc
Merge pull request #47134 from KevinyhZou/enable_int_types_repeat_function
2023-03-08 10:09:20 +01:00
Nikolay Degterinsky
e1b309a904
Better docs, add timezone
2023-03-08 06:20:49 +00:00
Nikolay Degterinsky
51edcf232c
Add support for big int types to runningDifference() function
2023-03-08 00:52:58 +00:00
Mike Kot
9920a52c51
use std::lerp, constexpr hex.h
2023-03-07 22:50:17 +00:00
Arthur Passos
91651b18f3
Merge branch 'ClickHouse:master' into extract_key_value_pairs_find_delimiter_approach
2023-03-07 12:21:33 -03:00
taiyang-li
b2757a65a5
Merge branch 'master' into to_timestamp
2023-03-07 16:26:24 +08:00
taiyang-li
5723e1f3a3
fix code style
2023-03-07 16:24:00 +08:00
taiyang-li
ea73f68ab4
rename symbols
2023-03-07 15:50:11 +08:00
taiyang-li
b303fb5630
finish docs
2023-03-07 15:30:38 +08:00
taiyang-li
6eafdc57a3
fix failed uts
2023-03-07 14:35:50 +08:00
taiyang-li
1ab4ef0ffa
add some comments
2023-03-07 11:45:32 +08:00
Arthur Passos
c0da2810d7
temp
2023-03-06 14:19:22 -03:00
Mike Kot
4bc443f3c7
initial solution
2023-03-06 19:35:00 +03:00
taiyang-li
3979ad1348
remove usedless vectors
2023-03-06 17:35:08 +08:00
taiyang-li
89a2329e62
change as requested
2023-03-06 17:08:55 +08:00
taiyang-li
4fc1f131d3
change as requested
2023-03-06 12:39:02 +08:00
Anton Popov
6f3e4d4137
Merge pull request #46118 from CurtizJ/fix-issues-with-sparse
...
Randomize setting `ratio_of_defaults_for_sparse_serialization`
2023-03-05 22:28:18 +01:00
taiyang-li
d7cb43a20b
change as requested
2023-03-05 16:24:05 +08:00
Robert Schulze
74fcffb067
Merge pull request #31125 from taiyang-li/map_from_arrasy
...
Implement spark function mapFromArrays()
2023-03-03 09:28:54 +01:00
taiyang-li
6feee40ee9
change as request
2023-03-03 10:42:35 +08:00
Maksim Kita
3cd88003dd
Merge pull request #47101 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
...
Analyzer Planner fixes before enable by default
2023-03-02 22:16:39 +03:00
Maksim Kita
eab29f4a4e
Fixed tests
2023-03-02 13:09:18 +01:00
KevinyhZou
cdc8596f81
enable int type in repeat function
2023-03-02 20:08:39 +08:00
Mikhail f. Shiryaev
be1cd6cbe4
Merge branch 'master' into map_from_arrasy
2023-03-02 12:36:25 +01:00
Robert Schulze
cd42cdc57d
Merge pull request #47115 from HarryLeeIBM/hlee-s390x-xxhash-2
...
Fix halfMD5 and cityhash for s390x
2023-03-02 11:09:37 +01:00
taiyang-li
09a3bad3e0
remove std::cout
2023-03-02 17:01:16 +08:00
taiyang-li
b5a24b34fd
fix fast tests
2023-03-02 16:58:34 +08:00
李扬
2d37e3e7ba
Merge branch 'master' into map_from_arrasy
2023-03-02 14:37:31 +08:00
HarryLeeIBM
b84e9fdaac
Fix halfMD5 and cityhash for s390x
2023-03-01 13:36:35 -08:00
Robert Schulze
15fec805fb
Merge pull request #46950 from ClickHouse/rs/uninline-likePatternToRegexp
...
Un-inline likePatternToRegexp()
2023-03-01 21:38:40 +01:00
Anton Popov
c4a999ce29
Merge remote-tracking branch 'upstream/master' into HEAD
2023-03-01 19:33:16 +00:00
Nikolai Kochetov
d469f138dc
Merge pull request #46790 from avoiderboi/add-width-bucket
...
Add `WIDTH_BUCKET` function
2023-03-01 18:35:36 +01:00
Maksim Kita
d39be3ac9c
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
6209d13ad5
Analyzer support _shardNum column to shardNum() function rewrite
2023-03-01 18:03:42 +01:00
Nikolay Degterinsky
85e0a57974
Add function ULIDStringToDateTime
2023-03-01 16:22:59 +00:00
Anton Popov
a7f70036c4
Merge pull request #47046 from CurtizJ/fix-json-type-bool
...
Support `Bool` type in `JSONType` function.
2023-03-01 16:18:45 +01:00
taiyang-li
e8847f2fb6
change as request
2023-03-01 21:15:01 +08:00
taiyang-li
f84eee778b
Merge branch 'master' into map_from_arrasy
2023-03-01 20:41:25 +08:00
taiyang-li
8edc677805
Merge branch 'master' into map_from_arrasy
2023-03-01 20:37:21 +08:00
taiyang-li
e85c4f1d3a
fix code styles and typos
2023-03-01 20:24:50 +08:00
taiyang-li
d7b83608c5
finish performance profile
2023-03-01 17:15:29 +08:00
taiyang-li
d47452a1e5
remove useless code
2023-03-01 11:25:38 +08:00
taiyang-li
573c674dc2
refactor some functions
2023-03-01 11:02:41 +08:00
Anton Popov
2c41ddf609
support Bool in JSONType
2023-03-01 02:07:09 +00:00
taiyang-li
ad48ad3787
some refactor works
2023-02-28 23:02:02 +08:00
taiyang-li
8d33a961ab
fix all bugs
2023-02-28 20:42:16 +08:00
Nikolai Kochetov
8531b17462
Try to add a very stupid fix for aarch64. Mute ubsan for overflow.
2023-02-28 10:03:33 +00:00
taiyang-li
fe9c4ea0ce
add test of joda syntax
2023-02-28 17:27:59 +08:00
taiyang-li
beced6fd52
fix all bugs in mysql syntax
2023-02-28 14:52:13 +08:00
taiyang-li
e288c92d62
fix some bugs
2023-02-28 14:08:03 +08:00
Yakov Olkhovskiy
f4a8b099de
allow IPv4 in range()
2023-02-27 21:36:21 +00:00
Robert Schulze
35f4b42608
Move likePatternToRegexp from Functions/ to Common/
2023-02-27 16:41:15 +00:00
Anton Popov
caa1d22759
Merge branch 'master' into fix-issues-with-sparse
2023-02-27 15:25:19 +01:00
taiyang-li
05823ffb9a
finish dev joda parsing
2023-02-27 21:41:38 +08:00
Robert Schulze
5c8edcc2e7
Merge pull request #46940 from ClickHouse/rs/sizes-of-arrays-dont-match
...
Typo: SIZES_OF_ARRAYS_DOESNT_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH
2023-02-27 14:33:09 +01:00
Robert Schulze
ff9c2fb9fc
Un-inline likePatternToRegexp()
2023-02-27 11:41:37 +00:00
Robert Schulze
3880ac97af
Merge pull request #46875 from ClickHouse/rs/fix-incorrect-LIKE-to-substring-search-translation
...
Fix wrong results of some LIKE searches when the LIKE pattern contains quoted non-quotable characters
2023-02-27 12:34:07 +01:00
Vladimir C
6a4d0849f6
Merge pull request #46841 from azat/url-functions-fixes
2023-02-27 11:16:25 +01:00
Robert Schulze
22d09caea2
SIZES_OF_ARRAYS_DOESN_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH
2023-02-27 08:31:40 +00:00
Robert Schulze
f53d38cf85
Merge branch 'master' into rs/like-with-trailing-percentage
2023-02-26 14:43:27 +01:00
Robert Schulze
a402b61ceb
Merge pull request #46819 from ClickHouse/rs/fix-slowhyperscanchecker
...
Fix SlowWithHyperscanChecker
2023-02-25 21:41:38 +01:00
Alexey Milovidov
c0de7be37c
Merge pull request #46845 from ClickHouse/a-new-trap
...
Add a trap
2023-02-25 22:53:08 +03:00
Robert Schulze
15ece2ab16
Fix incorrect LIKE-to-substring translation
...
To be backported
2023-02-25 19:46:59 +00:00
Robert Schulze
cf062f0c5b
Small optimization of LIKE patterns with > 1 trailing %
...
Previously, LIKE pattern '%%%ab' became '.*.*ab'. Now, it becomes 'ab'
which is a bit faster (perhaps).
+ minor code cleanup + a minor doc update
2023-02-25 18:50:32 +00:00
Alexander Gololobov
7606d2406b
Check that argument sizes and result size match
2023-02-25 14:47:45 +01:00
Alexey Milovidov
21ba6b70e6
Fix MSan report in Map data type
2023-02-25 08:47:48 +01:00
Alexey Milovidov
c659d84b47
Fix MSan report in Map data type
2023-02-25 08:46:21 +01:00
Alexey Milovidov
ae230e3a82
Update trap.cpp
2023-02-25 02:24:29 +03:00
Alexey Milovidov
d6b618565e
Add a trap
2023-02-24 22:35:51 +01:00
avoiderboi
f500de6657
Fix typo
2023-02-24 21:51:52 +01:00
avoiderboi
7f159b9e2d
Handle Inf
and NaN
properly
2023-02-24 21:21:49 +01:00
Azat Khuzhin
78bc48236b
Relax symbols that are allowed in userinfo in *domain*RFC()
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-24 20:51:48 +01:00
Azat Khuzhin
066389e6ff
Relax symbols that are allowed in userinfo in netloc()
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-24 20:51:44 +01:00
avoiderboi
71538c8536
Eliminate unreachable code
2023-02-24 20:33:34 +01:00
avoiderboi
eb5122b00b
Protect against bugs outside the function
2023-02-24 20:33:01 +01:00
Azat Khuzhin
83071164cc
Fix off-by-one error in netloc()
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-02-24 20:15:29 +01:00
avoiderboi
16db805526
Exlude count
argument from check that meant to the other parameters
2023-02-24 12:45:56 +01:00
avoiderboi
3c61afb1ca
Add docs and proper aliasing to WIDTH_BUCKET
2023-02-24 12:31:05 +01:00
Robert Schulze
d2c49265bb
Cosmetics
2023-02-24 11:29:45 +00:00
Robert Schulze
52a088f82d
Fix new start position
2023-02-24 11:29:16 +00:00
avoiderboi
baad4448dd
Use WhichDataType::isNativeUInt()
2023-02-24 11:39:39 +01:00
taiyang-li
65caf40c3d
fix style
2023-02-24 18:34:46 +08:00
taiyang-li
00edf977f8
finish debug
2023-02-24 18:27:21 +08:00
taiyang-li
203048eedb
wip
2023-02-24 17:07:27 +08:00
avoiderboi
059bb1df01
Rename min
/max
to low
/high
2023-02-24 01:04:47 +01:00
avoiderboi
6ead388932
Fix handling invalid count values
2023-02-24 00:41:43 +01:00
Anton Popov
d926713cf5
Merge remote-tracking branch 'upstream/master' into HEAD
2023-02-23 23:04:22 +00:00
avoiderboi
a938f276d1
Handle ColumnConst
efficiently
2023-02-23 22:40:22 +01:00
avoiderboi
cfa9573c3a
Remove unused declaration
2023-02-23 20:03:03 +01:00
avoiderboi
2ee3e4c577
Add first implementation
2023-02-23 19:30:21 +01:00
Robert Schulze
9914d4c591
Cosmetics
2023-02-23 14:35:45 +00:00
taiyang-li
d4793afec3
finish dev of to_timestamp in mysql syntax
2023-02-23 19:56:03 +08:00
Robert Schulze
7d34822c7c
Merge branch 'master' into hlee-s390x-xxhash
2023-02-23 11:29:26 +01:00
HarryLeeIBM
776d4d9bb4
More refactoring
2023-02-22 15:19:25 -08:00
HarryLeeIBM
e979a86604
Minor change for adding constexpr
2023-02-22 12:50:46 -08:00
HarryLeeIBM
18b93fc212
More refactoring for better style
2023-02-22 12:41:00 -08:00
Arthur Passos
f2b8e3cd7b
small refactoring
2023-02-22 14:02:53 -03:00
taiyang-li
81d0a3bca3
wip
2023-02-22 20:42:59 +08:00
taiyang-li
bb43e2c4e8
wip
2023-02-22 18:05:53 +08:00
HarryLeeIBM
ef33d11e3f
Refactor code according to code review
2023-02-21 18:40:11 -08:00
Arthur Passos
0b42e965ea
touching up
2023-02-21 22:12:29 -03:00
Kruglov Pavel
36870f0801
Merge pull request #46569 from ClickHouse/add-bug
...
Fix processing Const(LowCardinality) in arrayMap
2023-02-21 13:11:06 +01:00
Kruglov Pavel
2924e8e802
Merge pull request #46631 from bigo-sg/json_array_length
...
Add new function JSONArrayLength
2023-02-21 12:50:27 +01:00
taiyang-li
fcd3e44297
finish dev
2023-02-21 10:55:13 +08:00
Arthur Passos
20f6783dad
Merge branch 'master' into parsey_key_value_function
2023-02-20 16:24:45 -03:00
Alexey Milovidov
5ef159fa10
Merge pull request #46565 from ClickHouse/remove-pvs-studio
...
Remove PVS-Studio
2023-02-20 17:10:53 +03:00
avogar
1539f812b3
Fix processing Const(LowCardinality) in arrayMap
2023-02-20 13:48:52 +00:00
Yakov Olkhovskiy
d9bc4bcccb
Merge pull request #46296 from jh0x/feature-array-partial-sort
...
Add arrayPartialSort and arrayPartialReverseSort
2023-02-20 02:49:38 -05:00
Alexey Milovidov
d8cda3dbb8
Remove PVS-Studio
2023-02-19 23:30:05 +01:00
Alexey Milovidov
fa7f7e1d3a
Merge pull request #37870 from zzachimed/Aggregate_Sum_AVX512
...
Add avx512 support for Aggregate Sum, function unary arithmetic, func…
2023-02-19 17:21:16 +03:00
Alexey Milovidov
1adfbac19f
Merge pull request #37894 from yaqi-zhao/lower_upper
...
add avx512 support for Lower/Upper function
2023-02-19 17:18:10 +03:00
Yakov Olkhovskiy
2b9ce319b8
remove unnecessary include
2023-02-19 08:37:51 -05:00
Maksim Kita
6dffe52e68
Merge pull request #46471 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
...
Analyzer planner fixes before enable by default
2023-02-19 13:49:18 +03:00
Alexander Gololobov
1b8cae8ee5
Merge pull request #46529 from ClickHouse/regexp_extract
...
Merge #46469
2023-02-19 10:28:35 +01:00
Alexey Milovidov
417158f59f
Merge branch 'master' into lower_upper
2023-02-19 04:05:10 +03:00
Alexey Milovidov
a22f0eee2a
Merge branch 'master' into Aggregate_Sum_AVX512
2023-02-19 04:03:45 +03:00
Alexander Gololobov
1480fce688
Removed extra identation
2023-02-18 21:41:30 +01:00
Alexander Gololobov
91b15caa8b
Simplify arguments validation
2023-02-18 21:41:18 +01:00
Joanna Hulboj
cae064822c
FIXUP: FunctionArrayMapped - Simpler arg passing for check/exec
2023-02-18 17:20:57 +00:00
Joanna Hulboj
c2f5331a2d
Revert "FIXUP: Into FunctionArrayMapped: Simplify the dispatch in case of positional params"
...
This reverts commit d48bdcc754
.
2023-02-18 12:54:52 +00:00
Alexander Gololobov
3d9b3c1b76
Fix for read buffer overrun
2023-02-17 19:38:43 +01:00
Arthur Passos
5916283a9b
remove logical error extern
2023-02-17 13:16:15 -03:00
Arthur Passos
df9a081b54
fix empty special value character allowlist
2023-02-17 13:14:35 -03:00
Maksim Kita
6c1436f78e
Fixed tests
2023-02-17 16:50:46 +01:00
Alexander Gololobov
bcb196a11f
Extracted common logic into saveMatch()
2023-02-17 14:42:37 +01:00
Joanna Hulboj
3771d97936
FIXUP: Unused error code
2023-02-17 07:40:54 +00:00
Joanna Hulboj
d48bdcc754
FIXUP: Into FunctionArrayMapped: Simplify the dispatch in case of positional params
2023-02-16 20:17:49 +00:00
Joanna Hulboj
8747e23dbb
FIXUP: PR comments
2023-02-16 20:17:49 +00:00
HarryLeeIBM
3a635e428a
Fix xxhash endian issue for s390x
2023-02-16 11:03:41 -08:00
Alexander Gololobov
e0cc1b9ae4
Fix assertion when index argument is not passed
2023-02-16 19:29:26 +01:00
Alexander Gololobov
7b4219e23a
Added documentation field
2023-02-16 19:26:10 +01:00
Joanna Hulboj
5e32e20abb
FIXUP: arrayPartialSort arg check and few tests
2023-02-16 17:59:12 +00:00
Joanna Hulboj
221e4942b2
FIXUP: check in FunctionArrayMapped refactor
2023-02-16 17:59:12 +00:00
Joanna Hulboj
4ee665b158
FIXUP: Missing ErrorCodes
2023-02-16 17:59:12 +00:00
Joanna Hulboj
7bb7ea6913
Added arrayPartialSort and arraySort functions
2023-02-16 17:59:12 +00:00
Joanna Hulboj
23d173a53c
Refactor FunctionArrayMapped to allow for a fixed number of extra positional arguments
2023-02-16 17:59:12 +00:00
Robert Schulze
0ff404da9c
Merge pull request #46302 from JakeBamrah/master
...
Expand date formatters and add `DATE_FORMAT` function for better MySQL compatibility
2023-02-16 17:54:12 +01:00
Maksim Kita
0cba5848ac
Fixed tests
2023-02-16 12:17:03 +01:00
Maksim Kita
af38660cf5
Analyzer support ARRAY JOIN with Nested
2023-02-16 12:17:03 +01:00
Maksim Kita
d3b604de5a
FunctionToSubcolumnsPass mapContains map argument result type fix
2023-02-16 12:17:02 +01:00
Maksim Kita
440f2f5834
Function fromModifiedJulianDay argument types fix
2023-02-16 12:17:02 +01:00
Nikolay Degterinsky
e61947bf47
Merge pull request #44662 from evillique/ulid
...
Add generateULID function
2023-02-16 11:21:23 +01:00
Jake Bamrah
4ea814a843
add DATE_FORMAT alias and remaining mySQL date formatters
2023-02-16 09:52:19 +00:00
taiyang-li
4a7dd63f41
add new function regexp_extract, like in spark
2023-02-16 17:12:58 +08:00
Nikolay Degterinsky
3feb164c75
Add doc
2023-02-14 22:54:30 +00:00
Anton Popov
4af836a592
Merge remote-tracking branch 'upstream/master' into HEAD
2023-02-14 18:42:03 +00:00
Han Fei
32050acde5
Merge branch 'master' into dev-prewhere
2023-02-14 18:39:13 +01:00
Arthur Passos
9e989d4e4d
performance improvements and optional escaping
2023-02-14 14:04:48 -03:00
Nikolay Degterinsky
94d52d2b28
Fix include
2023-02-14 16:45:46 +00:00
Nikolay Degterinsky
09da5575e3
Merge remote-tracking branch 'upstream/master' into ulid
2023-02-14 13:41:17 +00:00
Kruglov Pavel
8d15a019a2
Merge pull request #46073 from zk-kiger/improve_format_datetime_joda
...
Add new functionality to the function FormatDataTime
2023-02-13 13:33:09 +01:00
Alexey Milovidov
44bd95a410
Merge pull request #46167 from ClickHouse/rs/reject-dos-patterns
...
Reject hyperscan regexes which are prone to ReDoS
2023-02-11 06:04:03 +03:00
Robert Schulze
17561c3dae
Fix build
2023-02-10 11:25:59 +00:00
Vladimir C
bd39e29cab
Merge pull request #46065 from aiven-sal/aiven-sal/siphash128
2023-02-10 10:41:45 +01:00
taiyang-li
ae7a657a3f
merge master and solve conflicts
2023-02-10 14:21:10 +08:00
Alexey Milovidov
786aa069e1
Merge pull request #46187 from ClickHouse/speed-up-count-digits
...
Speed up `countDigits`
2023-02-10 07:41:12 +03:00
Anton Popov
94407682b4
fix function with sparse columns arguments
2023-02-09 18:07:27 +00:00
Robert Schulze
74937cf27b
Reject DoS-prone hyperscan regexes
2023-02-09 17:17:35 +00:00
pufit
f0366e4614
Merge branch 'master' into improve-into-date-from-uint16
2023-02-09 08:44:31 -05:00
Alexey Milovidov
8392b35d50
Speed up countDigits
2023-02-09 04:39:12 +01:00
zk_kiger
886e821d1e
Merge branch 'master' into improve_format_datetime_joda
2023-02-09 10:08:29 +08:00
Alexander Tokmakov
4fd4058259
Merge pull request #45629 from arthurpassos/fix_cares_crash
...
Cancel c-ares failed requests and retry on system interrupts to prevent callbacks with dangling references and premature resolution failures
2023-02-09 02:29:29 +03:00
Anton Popov
62dfac1425
Merge pull request #46103 from bigo-sg/improve_pad_string
...
Fix doc and enable int types for pad
2023-02-08 14:24:04 +01:00
Alexander Gololobov
a7c30eecf4
Merge pull request #46141 from ClickHouse/fix-assertion-in-statistics
...
Fix assertion in statistical functions
2023-02-08 13:42:02 +01:00
Robert Schulze
b79ead9c84
Move poco to base/poco/ ( #46075 )
...
* Replicate poco into base/poco/
* De-register poco submodule
* Build poco from ClickHouse
* Exclude poco from stylecheck
* Exclude poco from whitespace check
* Exclude poco from typo check
* Remove x bit from sources/headers (the style check complained)
* Exclude poco from duplicate include check
* Fix fasttest
* Remove contrib/poco-cmake/*
* Simplify poco build descriptions
* Remove poco stuff not used by ClickHouse
* Glob poco sources
* Exclude poco from clang-tidy
2023-02-08 12:04:11 +01:00
Kruglov Pavel
0e5ceae896
Merge pull request #45296 from bigo-sg/improve_multi_if
...
Improve performance of function multiIf by columnar executing
2023-02-08 11:33:12 +01:00
Vladimir C
8385263ba9
Add in code doc to sipHash128Reference
2023-02-08 11:04:58 +01:00
kigerzhang
a6d7e37815
fix test reference
2023-02-08 15:41:17 +08:00
taiyang-li
51f565a470
fix ast fuzzer error
2023-02-08 12:13:29 +08:00
Alexey Milovidov
55c3bbb739
Fix assertion in statistical functions
2023-02-08 00:09:41 +01:00
taiyang-li
f41f41c78c
fix doc; enable int type for pad
2023-02-07 18:25:36 +08:00
Salvatore Mesoraca
476342602b
Functions: Hashing: add sipHash128Reference{,Keyed}
2023-02-07 11:19:04 +01:00
kigerzhang
1dbfd5b3f4
Merge remote-tracking branch 'origin/improve_format_datetime_joda' into improve_format_datetime_joda
2023-02-07 10:05:59 +08:00
kigerzhang
46161bc4e9
fix style
2023-02-07 10:03:03 +08:00
Arthur Passos
21b6b37272
well wlel, context switching
2023-02-06 10:56:01 -03:00
Arthur Passos
bcacbc1cc6
partially fix tests
2023-02-06 10:56:01 -03:00
Arthur Passos
9250e29b67
mess, i guess all bugs are fixed and performance a bit better
2023-02-06 10:56:01 -03:00
Arthur Passos
b848189726
tmp
2023-02-06 10:56:01 -03:00
Arthur Passos
296a19129b
alphanumeric as key start
2023-02-06 10:56:01 -03:00
Arthur Passos
65188a565f
Remove state from Extractor. It's usually a bad idea that bites us in the future, it did.
2023-02-06 10:56:01 -03:00
Arthur Passos
89ece4ab6d
escp
2023-02-06 10:56:01 -03:00
Arthur Passos
421c842a87
fix escape function
2023-02-06 10:56:01 -03:00
Arthur Passos
1104f218aa
fix escape function
2023-02-06 10:56:01 -03:00
Arthur Passos
51e71bd10e
move to object libs
2023-02-06 10:56:01 -03:00
Arthur Passos
304c1531c1
add control characters validation
2023-02-06 10:56:01 -03:00
Arthur Passos
ace23bacbc
address comments
2023-02-06 10:56:01 -03:00
Arthur Passos
7f8d51f73e
style
2023-02-06 10:56:01 -03:00
Arthur Passos
383e9264b7
improve lib cmakefiles, add state docs and minor changes
2023-02-06 10:56:01 -03:00
Arthur Passos
e1c6d15714
remove redundant base class constructor call
2023-02-06 10:56:01 -03:00
Arthur Passos
252fdcaf36
remove double whitespaces to make style happy
2023-02-06 10:56:01 -03:00
Arthur Passos
4c1d9fa177
improve docs
2023-02-06 10:56:01 -03:00
Arthur Passos
b54f82b483
throw exception on no arguments
2023-02-06 10:56:01 -03:00
Arthur Passos
1d48eaeae5
yet another loremipsum
2023-02-06 10:56:01 -03:00
Arthur Passos
3430b806de
style
2023-02-06 10:56:01 -03:00
Arthur Passos
2a43f9315d
add tests
2023-02-06 10:56:01 -03:00
Arthur Passos
c6fbec5d6a
fix typo and remove double whitespaces from test strings just to make formatter happy
2023-02-06 10:56:01 -03:00
Arthur Passos
1b703d38a5
formatting
2023-02-06 10:56:01 -03:00
Arthur Passos
c303f644f7
formatting challenge
2023-02-06 10:56:01 -03:00
Arthur Passos
afbb4dd138
hopefully I reformatted everything
2023-02-06 10:56:01 -03:00
Arthur Passos
07a589c63f
finish renaming to extractkeyvaluepairs
2023-02-06 10:56:01 -03:00
Arthur Passos
10c24c560e
rename to exrtactKeyValue and improve code
2023-02-06 10:56:01 -03:00
Arthur Passos
85d1d9ab61
first test, big file
2023-02-06 10:56:00 -03:00
Arthur Passos
ed032f6440
Make KeyValuePairExtractor response generic and introduce no-op escaping processor
2023-02-06 10:56:00 -03:00
Arthur Passos
ce23a7ad9a
reduce state management in lazyescapingkvpextractor by keeping part of it in state handlers
2023-02-06 10:56:00 -03:00
Arthur Passos
08c33f4766
rename methods
2023-02-06 10:56:00 -03:00
Arthur Passos
e6b97c4f85
small change
2023-02-06 10:56:00 -03:00
Arthur Passos
4fbf7177a6
add tests & incorporate ch replace function
2023-02-06 10:56:00 -03:00
Arthur Passos
c4a0993ac0
progress
2023-02-06 10:56:00 -03:00
Arthur Passos
06a6426bae
progress
2023-02-06 10:56:00 -03:00
Arthur Passos
857a64c08d
progress
2023-02-06 10:56:00 -03:00
Arthur Passos
61b3b244b8
Move everything to DB namespace
2023-02-06 10:56:00 -03:00
Arthur Passos
c49abad441
add value allowlist
2023-02-06 10:56:00 -03:00
Arthur Passos
30ff98d511
tmp commit
2023-02-06 10:56:00 -03:00
zk_kiger
602e697b31
Merge branch 'ClickHouse:master' into improve_format_datetime_joda
2023-02-06 20:18:23 +08:00
zk_kiger
b13eaf5e68
Merge branch 'master' into improve_format_datetime_joda
2023-02-06 19:16:10 +08:00
李扬
444373679a
Merge branch 'master' into improve_decimal
2023-02-06 13:08:51 +08:00
Joanna Hulboj
e1f345cc6b
Improve behaviour of conversion into Date for boundary value 65535 - with fixed tests
2023-02-04 18:47:42 +00:00
Han Fei
061204408a
Merge pull request #45952 from ucasfl/tuple
...
Fix tupleElement with Null arguments
2023-02-03 16:15:54 +01:00
Antonio Andelic
cb0e338d70
Revert "Improve behaviour of conversion into Date for boundary value 65535"
2023-02-03 12:10:39 +01:00
flynn
3d9b8ba991
Merge branch 'master' of github.com:ClickHouse/ClickHouse into tuple
2023-02-03 07:48:57 +00:00
李扬
8b339611b9
Merge branch 'master' into improve_decimal
2023-02-03 11:00:19 +08:00
Alexey Milovidov
0ba246ca53
Merge pull request #45914 from jh0x/improve-into-date-from-uint16
...
Improve behaviour of conversion into Date for boundary value 65535
2023-02-02 18:54:53 +03:00
flynn
8513e5a721
Fix tupleElement with Null arguments
2023-02-02 08:48:13 +00:00
taiyang-li
52d5428d0a
improve performance of ColumnArray::filter
2023-02-02 15:42:58 +08:00
Joanna Hulboj
e57492c214
Improve behaviour of conversion into Date for boundary value 65535
2023-02-01 18:22:06 +00:00
Yakov Olkhovskiy
f4ef21cb2f
allow implicit narrowing conversion UInt64 => IPv4
2023-01-31 19:04:21 +00:00
Anton Popov
9f4658151e
Merge pull request #45799 from ClickHouse/func-iptypes-empty
...
Add empty/notEmpty function support for IP types
2023-01-31 13:37:23 +01:00
Robert Schulze
44a5e9cb17
Minor doc follow-up to #45382
2023-01-31 10:31:01 +00:00
Robert Schulze
fdd6c77480
Merge pull request #45382 from bigo-sg/improve_position
...
Add fastpath for function position when needle is empty
2023-01-31 11:22:31 +01:00
taiyang-li
d2e97fb94d
remove columnar impl when instructions contains short
2023-01-31 18:13:01 +08:00
taiyang-li
2d7c357d61
implement columnar version for multiIf when instructions contains short
2023-01-31 18:00:31 +08:00
taiyang-li
4cf11d9a84
change as request
2023-01-31 10:48:02 +08:00
kigerzhang
e1c9b8c155
Add new functionality to the function FormatDataTime
2023-01-31 10:20:59 +08:00
Yakov Olkhovskiy
79d82a3587
add empty/notEmpty function support for IP types
2023-01-30 20:37:08 +00:00
Arthur Passos
7b1ceaa2c5
Merge branch 'master' into fix_cares_crash
2023-01-30 12:05:56 -03:00
Arthur Passos
513f430334
Add setting to enable/disable reverseDNSQuery function
2023-01-30 12:04:37 -03:00
Vladimir C
e7e8ae979f
Merge pull request #45271 from jh0x/feature-array-shuffle
2023-01-30 11:54:07 +01:00
Robert Schulze
66392b873c
Merge pull request #45513 from aiven-sal/aiven-sal/siphash_pr
...
Keyed SipHash
2023-01-30 11:10:00 +01:00
taiyang-li
c45111349f
Merge branch 'master' into improve_multi_if
2023-01-30 16:32:55 +08:00
taiyang-li
d25740da83
change as request
2023-01-30 16:13:12 +08:00
taiyang-li
5db514fb05
Merge branch 'master' into improve_position
2023-01-30 15:29:32 +08:00
Robert Schulze
15ae2d1de5
Merge branch 'master' into aiven-sal/siphash_pr
2023-01-29 21:06:52 +01:00
Robert Schulze
e88aa18a8c
Fix typo
2023-01-29 20:01:30 +00:00
Arthur Passos
ebf3145598
extern bad arguments
2023-01-29 10:18:21 -03:00
Arthur Passos
f67560058d
Add argument validation to reverseDNSQuerying and make stateless test more about function validation
2023-01-29 09:20:17 -03:00
Joanna Hulboj
df030a56f0
FIXUP: Remove use of legacy exceptions api
2023-01-27 21:27:09 +00:00
Joanna Hulboj
9a559b5475
FIXUP: More comments about shuffle
2023-01-27 20:07:56 +00:00
Joanna Hulboj
8791a44e01
FIXUP: Added info and test for materialized array
2023-01-27 20:07:56 +00:00
Joanna Hulboj
3b472eb2dd
FIXUP: Darwin compilation issue
2023-01-27 20:07:56 +00:00
Joanna Hulboj
e1d281206f
Clamp the limit for arrayPartialShuffle
2023-01-27 20:07:56 +00:00
Joanna Hulboj
b0ba8c02be
FIXUP: Darwin compilation issue
2023-01-27 20:07:55 +00:00
Joanna Hulboj
d378e453c1
FIXUP: fix in arrayPartialShuffle
2023-01-27 20:07:55 +00:00
Joanna Hulboj
a8b78abc54
Added arrayPartialShuffle function
2023-01-27 20:07:55 +00:00
Joanna Hulboj
09789b027f
FIXUP: PR comments
2023-01-27 20:07:55 +00:00
Joanna Hulboj
a65b2cf861
FIXUP: Simplify logic by using permute function
2023-01-27 20:07:55 +00:00
Joanna Hulboj
c09a4dd132
FIXUP: Docs into code
2023-01-27 20:07:55 +00:00
Joanna Hulboj
8d8d1bb887
FIXUP: make clang-tidy happier
2023-01-27 20:07:55 +00:00
Joanna Hulboj
01624e2f23
FIXUP: style
2023-01-27 20:07:55 +00:00
Joanna Hulboj
2355780737
Minor formatting
2023-01-27 20:07:55 +00:00
Joanna Hulboj
4adb6288eb
Add arrayShuffle function
2023-01-27 20:07:55 +00:00
Arthur Passos
c586de599a
string formatting
2023-01-27 14:01:34 -03:00
Arthur Passos
e559a6b1d2
address some comments
2023-01-27 12:07:00 -03:00
Alexander Tokmakov
c366806c3e
Merge pull request #45527 from ClickHouse/exception_message_patterns4
...
Better formatting for exception messages 2
2023-01-27 15:31:52 +03:00
Salvatore Mesoraca
59c17a7719
functions: hashing: add sipHash{64,128}Keyed
2023-01-27 13:00:54 +01:00
Salvatore Mesoraca
31e4d042f8
function: hashing: add generic support for keyed algos
2023-01-27 13:00:53 +01:00
Alexey Milovidov
5b257ab806
Merge pull request #45233 from ClickHouse/improve_week_day
...
Revert "Revert "Improve week day""
2023-01-27 02:44:17 +03:00
Alexander Tokmakov
68a60ad4f6
fix
2023-01-26 20:20:56 +01:00
Alexander Tokmakov
d7c697ee38
fix
2023-01-26 15:24:39 +01:00
Alexander Tokmakov
14db798191
fix
2023-01-26 13:56:16 +01:00
Arthur Passos
433eda70fd
add reverseDNSQuery docs
2023-01-26 07:57:43 -03:00
Alexander Tokmakov
a584ad0eb1
forbid runtime strings
2023-01-26 10:52:47 +01:00
Alexander Tokmakov
9b670946db
Merge branch 'master' into exception_message_patterns5
2023-01-26 00:41:32 +01:00
Arthur Passos
9942fe7b5b
cancel ares failed requests, listen to POLLRDNORM and retry on EINTR
2023-01-25 19:07:58 -03:00
Nikolay Degterinsky
d8d85d9bbd
Merge remote-tracking branch 'upstream/master' into fix-msan-build
2023-01-24 22:57:47 +00:00
Nikolay Degterinsky
fb6838b043
Review suggestions
2023-01-24 22:54:01 +00:00
Alexander Tokmakov
dceeae995e
Merge branch 'master' into exception_message_patterns4
2023-01-24 23:22:38 +01:00
Robert Schulze
7f010d2b61
Merge pull request #45522 from HarryLeeIBM/hlee-s390x-transform
...
Fix endian issue in transform function for s390x
2023-01-24 22:12:25 +01:00
Alexander Tokmakov
dd57215934
Merge branch 'master' into exception_message_patterns4
2023-01-24 17:03:12 +01:00
Kseniia Sumarokova
dd18dd2953
Merge pull request #45341 from ClibMouse/feature/non-throwing-hastoken
...
Introduce non-throwing variants of hasToken
2023-01-24 15:37:36 +01:00
Alexander Tokmakov
6ecae8388e
Merge branch 'master' into exception_message_patterns4
2023-01-24 14:42:36 +01:00
Nikolai Kochetov
e4c0608a01
Merge pull request #45150 from ClickHouse/fix-ip-function-mod
...
Binary arithmetic for IPv4
2023-01-24 13:11:02 +01:00
ltrk2
ee5818f27b
Fix the build with ENABLE_VECTORSCAN disabled
2023-01-23 16:43:03 -08:00
Alexander Tokmakov
414693feb2
fixes
2023-01-24 00:46:03 +01:00
ltrk2
9710b8643c
Refine the solution
2023-01-23 14:27:48 -08:00
Alexander Tokmakov
bb4c8e169f
check number of parameters in format string
2023-01-23 23:16:16 +01:00
Alexander Tokmakov
3f6594f4c6
forbid old ctor of Exception
2023-01-23 22:18:05 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
HarryLeeIBM
61f55ebb8a
Fix endian issue in transform function for s390x
2023-01-23 11:54:35 -08:00
Nikolay Degterinsky
f9960361db
Fix MSan build
2023-01-23 14:38:07 +00:00
Robert Schulze
97d1bed114
Merge branch 'master' into improve_week_day
2023-01-21 20:40:33 +01:00
Alexander Tokmakov
910d6dc0ce
Merge pull request #45342 from ClickHouse/exception_message_patterns
...
Save message format strings for DB::Exception
2023-01-20 18:46:52 +03:00
ltrk2
810c9ba50c
Produce a null map of the correct size
2023-01-20 10:24:42 -05:00
ltrk2
9d798ea1bc
Document functions
2023-01-20 10:24:42 -05:00
ltrk2
65b9c69c90
Introduce non-throwing variants of hasToken
2023-01-20 10:24:42 -05:00
Alexander Tokmakov
ec5d7d0a3a
Update src/Functions/FunctionsConversion.h
...
Co-authored-by: Alexander Gololobov <440544+davenger@users.noreply.github.com>
2023-01-20 17:33:01 +03:00
taiyang-li
01048c6568
change as request
2023-01-20 17:05:28 +08:00
Anton Popov
089d1f5b62
fix fuzzer
2023-01-19 17:03:24 +00:00
Anton Popov
7f2e37860d
allow to convert float stored in string field to integer in JSONExtract
2023-01-19 14:24:55 +00:00
taiyang-li
8d63dc2608
fix tests
2023-01-18 20:13:26 +08:00
taiyang-li
1c120ee751
add fastpath for vectorConstant when needle is empty
2023-01-18 15:13:47 +08:00
Alexander Tokmakov
5cd90c1a3e
Merge branch 'master' into exception_message_patterns
2023-01-17 20:04:04 +01:00
Alexander Tokmakov
72e8615bec
formatting of some exception messages
2023-01-17 20:03:56 +01:00
taiyang-li
54d2ae4a78
add some debug logs
2023-01-17 14:44:33 +08:00
taiyang-li
d23e456f9e
remove no_inline
2023-01-17 11:41:49 +08:00
taiyang-li
9d2844e689
last optimization: convert memcpy to assign operation of fixed type T
2023-01-17 11:40:06 +08:00
taiyang-li
3b4ac825ba
another optimization: adjuest type of inserts according to the size of instructions, which makes more parallalism
2023-01-17 11:27:28 +08:00
Alexander Tokmakov
522686f78b
less empty patterns
2023-01-17 01:19:44 +01:00
Alexander Tokmakov
870cfcc36a
less fmt::runtime usages
2023-01-17 00:11:59 +01:00
taiyang-li
87f869a129
reorder branches
2023-01-16 21:02:33 +08:00
taiyang-li
5b3f9eb62e
vectorize function calculateInserts
2023-01-16 20:35:26 +08:00
Robert Schulze
ff493c439c
Merge pull request #45244 from bigo-sg/improve_like
...
Add fast path for col like '%%' or col like '%' or match(col, '.*')
2023-01-16 08:36:20 +01:00
taiyang-li
4448bfe8a7
try to improve performance of function multiif
2023-01-16 15:08:12 +08:00
taiyang-li
2f7ea79d94
change as request
2023-01-16 10:42:58 +08:00
Robert Schulze
bd41c74ddf
Various test, code and docs fixups
2023-01-15 13:47:34 +00:00
Robert Schulze
4ea836b87e
Revert "Revert "update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability""
...
This reverts commit e37f572c34
.
2023-01-13 14:00:16 +00:00
Robert Schulze
9779d034eb
Merge pull request #45144 from ClibMouse/crc-power-fix
...
Changes to support the CRC32 in PowerPC.
2023-01-13 11:24:18 +01:00
taiyang-li
de5474c9f9
optimize match(a, '.*')
2023-01-13 14:55:54 +08:00
taiyang-li
45df745011
add fast path for like '%%' or like '%'
2023-01-13 12:20:03 +08:00
Alexander Tokmakov
e37f572c34
Revert "update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability"
2023-01-12 15:01:36 +03:00
MeenaRenganathan22
28d5c3cf7f
Addressed the review comments
2023-01-11 17:00:10 -08:00
MeenaRenganathan22
5fa5ae8099
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into crc-power-fix
2023-01-11 09:31:41 -08:00
Robert Schulze
9bb1e31369
Merge pull request #44860 from bigo-sg/improve_week_day
...
update function DAYOFWEEK and add new function WEEKDAY for mysql/spark compatiability
2023-01-11 13:58:45 +01:00
Yakov Olkhovskiy
92caf20323
binary arithmetic for IPv4
2023-01-11 08:59:27 +00:00
MeenaRenganathan22
25c94dfa83
Changes to support the CRC32 in PowerPC to address the WeakHash collision issue. Update the reference to support the hash values based on the specific platform
2023-01-10 21:20:13 -08:00
Yakov Olkhovskiy
9e327306a3
Merge pull request #45043 from ClickHouse/fix-ip-function-hash
...
Fix hash functions for IPv4
2023-01-10 07:48:12 -05:00
taiyang-li
09c1cecb01
fix build error
2023-01-10 10:56:13 +08:00
Yakov Olkhovskiy
2559c49810
make only IPv4 as numeric, fix hash functions for IPv6, add more hash functions to test
2023-01-10 02:03:06 +00:00
Alexey Milovidov
d6748f9fae
Merge pull request #45065 from ClickHouse/fix-low-cardinality-in-nested-lambda-capture
...
Fix Cannot capture column for nested lambda with LowCardinality
2023-01-10 04:50:46 +03:00
Nikolai Kochetov
86324e231c
Fix Cannot capture column for nested lambda with LowCardinality
2023-01-09 14:57:09 +00:00
taiyang-li
4bc2c61406
change as request
2023-01-09 20:37:16 +08:00
taiyang-li
64bbdee824
fix stule
2023-01-09 19:36:51 +08:00
taiyang-li
20c7c0b1ef
change as request
2023-01-09 18:21:31 +08:00
Yakov Olkhovskiy
6ec1592a9f
fix hash functions for IPv4
2023-01-08 20:58:09 +00:00
Alexey Milovidov
13a045dce4
Fix bad code: postfix increment, multiple effects in one statement
2023-01-08 02:55:02 +01:00
Alexey Milovidov
56d8c4730e
Fix function range
2023-01-08 02:50:28 +01:00
Yakov Olkhovskiy
d77178194f
fix cutIPv6 function and IPv4 hashing
2023-01-07 21:48:02 +00:00
Anton Popov
1f32ffedf8
Merge pull request #43221 from ClickHouse/refactoring-ip-types
...
Replace domain IP types (IPv4, IPv6) with native
2023-01-07 12:01:21 +01:00
Yakov Olkhovskiy
1be48f706b
Merge pull request #43706 from ClibMouse/s390x_crc32
...
s390x weakhash32 support
2023-01-05 14:45:20 -05:00
Yakov Olkhovskiy
7a5a36cbed
Merge branch 'master' into refactoring-ip-types
2023-01-04 11:11:06 -05:00
Kruglov Pavel
59263f3ae1
Merge pull request #44501 from Avogar/validate-types
...
Validate data types according to settings.
2023-01-04 14:48:09 +01:00
Nikolay Degterinsky
aa41e9b775
Merge pull request #44857 from evillique/fix-msan-build
...
Try to fix MSan build
2023-01-04 04:31:28 +01:00
Alexey Milovidov
fb68fc1bee
Merge pull request #44870 from ClickHouse/fix_flaky_test
...
Fix flaky test and several typos
2023-01-04 05:14:14 +03:00
Alexey Milovidov
3a027d285f
Merge pull request #44828 from ClickHouse/remove-two-lines-of-code
...
What if I will remove two lines of code?
2023-01-04 04:50:52 +03:00
Kruglov Pavel
826d11bfb1
Merge branch 'master' into validate-types
2023-01-04 01:22:12 +01:00
Nikolay Degterinsky
c6daf0a6eb
Merge remote-tracking branch 'upstream/master' into ulid
2023-01-03 19:58:50 +00:00
Nikolay Degterinsky
fc54ee5faf
Add comment about the reason for a separate file
2023-01-03 19:43:25 +00:00
Robert Schulze
cfb6feffde
What happens if I remove these 139 lines of code?
2023-01-03 18:35:31 +00:00
Alexey Milovidov
bdd3ef8920
Merge pull request #44830 from ClickHouse/fix-monotonicity-fuzz-2
...
Fix fuzzer report
2023-01-03 19:42:58 +03:00
alesapin
6c8dbcc040
Fix flaky test 01459_manual_write_to_replicas_quorum_detach_attach and several typos
2023-01-03 16:27:51 +01:00
Robert Schulze
421473e974
Merge pull request #44421 from ClickHouse/revert-of-revert-of-age-function
...
Revert revert of age function
2023-01-03 10:02:18 +01:00
Nikolay Degterinsky
c4431e9931
Fix MSan build
2023-01-03 02:21:26 +00:00
Alexey Milovidov
fcefaa602f
Fix error
2023-01-03 01:24:56 +01:00
Alexey Milovidov
fa16abe05e
Fix error
2023-01-03 01:23:57 +01:00
Alexey Milovidov
e855d3519a
Merge branch 'master' into refactoring-ip-types
2023-01-02 21:58:53 +03:00
Nikita Taranov
563b27f648
Provide monotonicity info for toUnixTimestamp64*
( #44116 )
...
* impl
* fix
2023-01-02 16:34:06 +01:00
Kruglov Pavel
0a43976977
Merge branch 'master' into validate-types
2023-01-02 16:10:14 +01:00
Kruglov Pavel
966f57ef68
Merge pull request #42777 from Avogar/improve-streaming-engines
...
Refactor and Improve streaming engines Kafka/RabbitMQ/NATS and data formats
2023-01-02 15:59:06 +01:00
Robert Schulze
24a3085251
Merge pull request #44527 from mrcrypster/patch-3
...
Fixed minor errors in functions docs
2023-01-02 15:05:59 +01:00
Robert Schulze
545576fe01
Merge pull request #43818 from bigo-sg/improve_from_unixtime
...
Add new functions to format datetime in joda datetime style
2023-01-02 13:41:50 +01:00
Alexey Milovidov
d95aca1b32
Fix fuzzer
2023-01-02 01:51:50 +01:00
Alexey Milovidov
e20eb570c5
Fix bad cast in monotonicity analysis
2023-01-01 20:42:15 +01:00
Kruglov Pavel
894726bd8f
Merge branch 'master' into improve-streaming-engines
2022-12-29 22:59:45 +01:00
Nikolay Degterinsky
945d50af87
Fix build
2022-12-29 02:17:52 +00:00
taiyang-li
5ae280611b
merge master and solve conflict
2022-12-28 14:44:10 +08:00
Nikolay Degterinsky
7bb8db4bb3
Add generateULID function
2022-12-28 00:54:50 +00:00
avogar
411f98306a
Merge branch 'master' of github.com:ClickHouse/ClickHouse into validate-types
2022-12-27 19:24:15 +00:00
Kruglov Pavel
f95eabc192
Merge pull request #44469 from Avogar/low-card-if
...
Don't execute and/or/if/multiIf on LowCardinality dictionary
2022-12-27 16:59:42 +01:00
Alexey Milovidov
3a4d4703d6
Fix "too large allocation" message from MSan
2022-12-26 21:21:58 +01:00
Alexander Gololobov
0788269c25
Merge pull request #44410 from ClickHouse/fix_unicode_bar
...
Fix buffer overrun in UnicodeBar::render
2022-12-23 13:17:24 +01:00
Denys Golotiuk
3d340efd7c
Fixed minor errors in functions docs
2022-12-23 12:05:04 +02:00
Duc Canh Le
188de7969a
fix error code
2022-12-23 10:25:37 +08:00
Duc Canh Le
475d06b216
Merge branch 'master' into ch_canh_fix_lc_in
2022-12-23 10:12:15 +08:00
Duc Canh Le
a3a601ff85
fix style
2022-12-23 10:06:43 +08:00
Dmitry Novik
cff882d506
Merge remote-tracking branch 'origin/master' into refector-function-node
2022-12-22 21:34:29 +00:00
Alexander Gololobov
0ae7f03516
Merge branch 'master' into fix_unicode_bar
2022-12-22 14:53:33 +01:00
Vladimir C
9a38911d5d
Merge pull request #43239 from bigo-sg/array_join_support_map
2022-12-22 12:18:34 +01:00
Duc Canh Le
24d7d9de90
Merge branch 'master' into ch_canh_fix_lc_in
2022-12-22 19:11:22 +08:00
Duc Canh Le
29f3af86ec
remove junk logs
2022-12-22 18:23:44 +08:00
Vladimir C
6a0210fb0f
Merge pull request #43785 from mo-avatar/binhexstringliterals
2022-12-22 10:56:18 +01:00
Duc Canh Le
9083091ee5
fix LC in bug
2022-12-22 16:20:25 +08:00
Yakov Olkhovskiy
a8cb29da4b
Merge branch 'master' into refactoring-ip-types
2022-12-21 23:56:24 -05:00
avogar
41c63152cf
Don't check internal CAST
2022-12-21 23:47:56 +00:00
avogar
4ab3e90382
Validate types in table function arguments/CAST function arguments/JSONAsObject schema inference
2022-12-21 21:21:30 +00:00
Alexander Gololobov
269700df42
Merge branch 'master' into feature/format-datetime-fractional-second
2022-12-21 21:34:46 +01:00
Alexander Gololobov
92c609eb2c
Fix case with DateTime64 with precision=0; do not split decimal again in every instruction
2022-12-21 21:00:39 +01:00
Kruglov Pavel
5e01a3d74e
Merge branch 'master' into improve-streaming-engines
2022-12-21 10:51:50 +01:00
Kruglov Pavel
1bedd57355
Merge pull request #44241 from ClibMouse/bugfix/subtract-subseconds
...
Bring interval subtraction from datetime in line with addition
2022-12-21 10:30:07 +01:00
taiyang-li
091cebf861
fix clang-tidy warning
2022-12-21 12:20:08 +08:00
avogar
a7129332af
Don't execute and/or/if/multiIf on LowCardinality dictionary
2022-12-20 22:07:59 +00:00
Dmitry Novik
4793412887
Merge branch 'master' into refector-function-node
2022-12-20 18:26:19 +01:00
Sema Checherinda
7627786af7
Merge pull request #43733 from wineternity/issue_43333
...
Add support for signed arguments in range() #43333
2022-12-20 13:56:02 +01:00
Robert Schulze
3f03b0b53d
Revert "Revert "Add function 'age'""
...
This reverts commit 4549b14027
.
2022-12-20 10:18:43 +00:00
Alexander Gololobov
2ab6b7d033
Check remaining space to avoid buffer overruns; some cleanups
2022-12-20 02:39:44 +01:00
Alexey Milovidov
2fc2fecd5d
Merge pull request #44193 from ClickHouse/igor/block_number_relaxed_counter
...
Make atomic counter relaxed in blockNumber()
2022-12-18 06:45:23 +03:00
Alexey Milovidov
a3dc5e8b0a
Merge pull request #44132 from azat/bump-libdivide
...
Bump libdivide (to gain some new optimizations)
2022-12-17 04:07:08 +03:00
Alexey Milovidov
d7cf0915c8
Merge pull request #44242 from jh0x/fix-use-after-free-blake3
...
Fixed use-after-free of BLAKE3 error message
2022-12-17 03:21:16 +03:00
Dmitry Novik
875a24a650
Merge remote-tracking branch 'origin/master' into refector-function-node
2022-12-16 16:07:30 +00:00
李扬
6ce9c7b8c2
Merge branch 'master' into improve_from_unixtime
2022-12-16 15:05:20 +08:00
avogar
755b08a49e
Fix comments
2022-12-15 19:47:10 +00:00
Kruglov Pavel
c5b2e4cc23
Merge branch 'master' into improve-streaming-engines
2022-12-15 18:44:35 +01:00
Zhiguo Zhou
8b20e9f505
Vectorize AssociativeGenericApplierImpl::apply ( #43669 )
...
* Vectorize AssociativeGenericApplierImpl::apply
This commit achieved the auto-vectorization by redefining numerical
values of ternary representations and corresponding implementations
of And/Or operators, caching the intermediate ternary values in a
continuous range of memory for the SIMD instructions to consume,
and removing the short-circuit for the ternary logic evaluation.
* Optimize TernaryValueBuilder for ColumnNullable
The numerical representation of a ColumnNullable is calculated from
the data column of any data type and the null map column of UInt8
with a bitwise operation expression, which is efficient for auto-
vectorization. However, when this expression is applied to a data
column of a type other than UInt8, the SIMD register is not fully
utilized due to the mismatch of data types, and the data throughput
regresses.
To optimize the SIMD register usage, the has_value flag is firstly
evaluated from the data column and stored in a UInt8 array. Then it
is loaded from memory before the calculation of bitwise operation
expression, so that the types of the operands are both UInt8.
2022-12-15 18:27:19 +01:00
Alexey Milovidov
d835bfe416
Merge branch 'master' into fix-use-after-free-blake3
2022-12-15 06:15:14 +03:00
李扬
db0091d5f2
Merge branch 'master' into improve_from_unixtime
2022-12-15 10:11:32 +08:00
李扬
873f4b6e61
Merge branch 'master' into array_join_support_map
2022-12-15 10:00:22 +08:00
Igor Nikonov
c099fa9fa3
Merge pull request #44194 from ClickHouse/igor/minor_unix_timestamp_fixes
...
Minor clang-tidy fixes in fromUnixTimestamp64()
2022-12-14 23:18:07 +01:00
ltrk2
47455fa1f0
Bring interval subtraction from datetime in line with addition
2022-12-14 15:39:41 -05:00
Joanna Hulboj
d32452d90c
Fixed use-after-free of BLAKE3 error message
...
As std::string is not POD there sadly was no warning from the compiler.
2022-12-14 19:57:41 +00:00
Dmitry Novik
1df038e39c
Merge remote-tracking branch 'origin/master' into refector-function-node
2022-12-14 14:55:30 +00:00
vdimir
4c17903010
update getArrayJoinDataType/getArrayJoinColumn
2022-12-14 13:02:03 +00:00
taiyang-li
26b5a74b0c
finish debug
2022-12-14 11:28:54 +00:00