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