avogar
4ab3e90382
Validate types in table function arguments/CAST function arguments/JSONAsObject schema inference
2022-12-21 21:21:30 +00: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
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
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
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
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
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
yuanyimeng
1147a41524
Add support for signed arguments in range() #43333
2022-12-10 23:48:24 +08:00
Robert Schulze
29c975ae41
Merge pull request #44011 from ClickHouse/cleanup-isdeterministic
...
Some cleanup of isDeterministic(InScopeOfQuery)()
2022-12-08 12:59:01 +01:00
Robert Schulze
f998d0c16b
Merge pull request #43228 from HarryLeeIBM/hlee-s390x-wide-int-order
...
Fix byte order issue of wide integers for s390x
2022-12-08 09:50:54 +01:00
Robert Schulze
c3effce3da
Merge branch 'master' into cleanup-isdeterministic
2022-12-07 22:28:49 +01:00
Robert Schulze
4abc36774e
Some cleanup of isDeterministic(InScopeOfQuery)()
...
In cases where the implementation simply repeates the implementation
inherited from the base class, it can be omitted.
2022-12-07 14:34:31 +00:00
李扬
c297f9d22a
Merge branch 'master' into improve_concat
2022-12-07 19:59:01 +08:00
Robert Schulze
8e07e37fe7
Update FunctionsBinaryRepresentation.cpp
2022-12-07 09:38:03 +01:00
Robert Schulze
b14de0017c
Merge pull request #43788 from arenadata/ADQM-626
...
Add support of array parameters in `cutURLParameter` function
2022-12-05 16:18:42 +01:00
taiyang-li
fb3c6ed691
add alias concat_ws
2022-12-05 20:55:23 +08:00
taiyang-li
a50482ecd3
rename files
2022-12-05 17:42:33 +08:00
taiyang-li
88c9438515
rename function
2022-12-05 17:38:25 +08:00
Robert Schulze
3c1a721da4
Merge branch 'master' into hlee-s390x-wide-int-order
2022-12-04 18:47:00 +01:00
Roman Vasin
a09e7fddcc
Merge branch 'master' into ADQM-626
2022-12-04 20:34:55 +03:00
Roman Vasin
bcb65eb420
Merge branch 'master' into ADQM-623
2022-12-04 20:21:27 +03:00
Roman Vasin
c002d0944b
Refactor to do erase() on small fragment
2022-12-02 17:25:55 +00:00
Roman Vasin
298a7055fa
Replace time_t with DateLUTImpl::Time
2022-12-02 16:40:36 +00:00
Robert Schulze
68ac76d60e
Merge pull request #43312 from lanesket/typo-third
...
Fixed: Typo
2022-12-02 13:36:47 +01:00
Roman Vasin
59523864b9
Merge branch 'master' into ADQM-623
2022-12-02 15:00:09 +03:00
Roman Vasin
fe2e0987eb
Remove unneeded header files
2022-12-02 11:05:54 +00:00
Antonio Andelic
f804fbb375
Merge pull request #43790 from ClickHouse/udf-substitute-cont
...
Polish UDF substitution visitor
2022-12-02 10:39:18 +01:00
Roman Vasin
1a2bdf14fa
Small refactor: renaming various vars
2022-12-01 14:09:37 +00:00
Roman Vasin
1cce8c023d
Refactor cutURLParameter to work directly on result column
2022-12-01 13:02:37 +00:00
Roman Vasin
620df1ec6f
Merge branch 'master' into ADQM-623
2022-12-01 15:30:36 +03:00
Roman Vasin
80598eebc9
FIx age() for case startdate > enddate
2022-12-01 12:20:20 +00:00
Vladimir C
a03fc9293c
Merge pull request #43274 from canhld94/ch_canh_fix_array_first_last
...
Close https://github.com/ClickHouse/ClickHouse/issues/43160
2022-12-01 13:14:48 +01:00
Roman Vasin
cea63dbca0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-626
2022-12-01 07:32:06 +00:00
taiyang-li
cae27d9536
fix code style
2022-12-01 11:01:14 +08:00
taiyang-li
f14582334c
Add function concatWs
2022-12-01 10:56:53 +08:00
Roman Vasin
96d7cf319b
Merge branch 'master' into ADQM-623
2022-11-30 19:25:53 +03:00
Roman Vasin
48d808e475
Replace is_date_diff with is_relative
2022-11-30 16:22:30 +00:00
Roman Vasin
8160b286e2
Fix bug with week parameter for age()
2022-11-30 15:26:02 +00:00