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
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
taiyang-li
5ae280611b
merge master and solve conflict
2022-12-28 14:44:10 +08: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
taiyang-li
2f03146941
wip
2022-12-14 11:28:50 +00:00
taiyang-li
58cbd8162f
Add new functions to format datetime in joda datetime style
2022-12-14 14:28:43 +08:00
Alexey Milovidov
4549b14027
Revert "Add function 'age'"
2022-12-13 23:28:09 +03:00
Vladimir C
fd1f32ceec
Merge pull request #44200 from ClickHouse/fix-error-in-decimal-functions
2022-12-13 20:02:06 +01:00
Vladimir C
5b354b1248
Fix style
2022-12-13 19:40:08 +01:00
Alexey Milovidov
bb20733120
Fix documentation after #42438
2022-12-13 19:13:37 +01:00
Igor Nikonov
7765137371
Minor fixes (local clang-tidy warnings)
2022-12-13 13:41:02 +00:00
Igor Nikonov
436de24cf8
Make atomic counter relaxed
2022-12-13 13:34:41 +00:00
Azat Khuzhin
cdfe62f303
Update libdivide
...
This will includes at least [1].
[1]: https://github.com/ridiculousfish/libdivide/pull/94
v2: Define LIBDIVIDE_* macros mutually exclusive
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-13 10:45:01 +01:00
李扬
6e5e2d5923
Merge branch 'master' into improve_concat
2022-12-13 12:12:48 +08:00
Yakov Olkhovskiy
746cd8debd
IPv6CIDRToRange to always return IPv6 so to make it backward compatible, revert test relying on this
2022-12-12 23:42:17 +00:00
Dmitry Novik
3d2fccab87
Merge branch 'master' into refector-function-node
2022-12-12 21:36:39 +01:00
ltrk2
5e7558b1a5
Correct an instance of overindexing
2022-12-12 11:53:29 -08:00