Robert Schulze
68181ab00f
Revert "Revert "Add toMillisecond
function""
...
This reverts commit 5225fc6a14
.
2024-03-01 13:14:44 +00:00
Alexander Tokmakov
5225fc6a14
Revert "Add toMillisecond
function"
2024-03-01 13:59:03 +01:00
Nikolai Kochetov
9211495fed
Merge branch 'master' into constant-folding-scalar-subqueries
2024-03-01 12:06:26 +00:00
Robert Schulze
6d89455525
Merge pull request #60523 from rschu1ze/clang-tidy-src
...
Fix a bunch of clang-tidy warnings in headers
2024-03-01 12:37:48 +01:00
Robert Schulze
44c3de1a0b
Merge pull request #60281 from Blargian/54746_to_millisecond_function
...
Add `toMillisecond` function
2024-03-01 11:34:20 +01:00
Robert Schulze
52b1fc6db9
Minor fixes
2024-03-01 10:06:54 +00:00
李扬
0820fd49e9
Merge branch 'ClickHouse:master' into opt_multiif_decimal
2024-03-01 10:32:17 +08:00
Blargian
6594219943
Fix style-check
2024-02-29 20:52:30 +01:00
Blargian
f1c9b1abcd
Fix millisecond calculation
2024-02-29 18:05:49 +01:00
Robert Schulze
4ee1aa8c7c
Fixing more headers
2024-02-29 15:40:30 +00:00
Amos Bird
3b04f5c605
Improve the performance of serialized aggregation method when involving multiple [nullable] columns.
2024-02-29 21:48:15 +08:00
Robert Schulze
278ad6f491
Fixing tukey even more
2024-02-29 12:51:23 +00:00
Robert Schulze
e760c082bf
More fixups for tukey
2024-02-29 12:23:17 +00:00
Robert Schulze
cfed36e8a9
Merge remote-tracking branch 'rschu1ze/master' into byteSlice
2024-02-29 11:29:15 +00:00
taiyang-li
46f9fddc4d
fix code style
2024-02-29 15:11:02 +08:00
taiyang-li
656412c93e
fix failed uts
2024-02-29 15:03:59 +08:00
taiyang-li
f7d1739808
fix failed uts
2024-02-29 15:00:09 +08:00
Alexey Milovidov
414e6eb600
General sanity in function seriesOutliersDetectTukey
2024-02-29 06:30:28 +01:00
taiyang-li
f89cb57d02
fix failed ut
2024-02-29 12:32:27 +08:00
Alexey Milovidov
3749618ba1
Add a test
2024-02-28 23:28:46 +01:00
Alexey Milovidov
98be049e66
Fix bad error message
2024-02-28 23:08:29 +01:00
Robert Schulze
42f29c01cf
Merge remote-tracking branch 'rschu1ze/master' into byteSlice
2024-02-28 19:10:48 +00:00
Kruglov Pavel
a7eabbbe3a
Merge branch 'master' into variant-improvements
2024-02-28 17:38:54 +01:00
Alexey Milovidov
b0ab0b37db
Merge pull request #60434 from ClickHouse/revert-60216-revert-59697-check-stack-size-in-parser
...
Revert "Revert "Check stack size in Parser""
2024-02-28 19:20:49 +03:00
taiyang-li
4beb6fdcb0
fix code stule
2024-02-28 22:39:49 +08:00
Robert Schulze
e02c083e60
Add convenience alias byteSlice for substring
2024-02-28 13:32:56 +00:00
Ilya Yatsishin
6473023ad5
Merge pull request #60359 from Avogar/fix-ipv6-hashing
...
Fix use-of-uninitialized-value and invalid result in hashing functions with IPv6
2024-02-28 15:32:57 +04:00
Robert Schulze
613e426484
Some fixups
2024-02-28 11:14:53 +00:00
taiyang-li
4f2ab335af
fix some bugs
2024-02-28 17:07:49 +08:00
taiyang-li
28c4c8e821
Merge branch 'master' into opt_multiif_decimal
2024-02-28 16:00:43 +08:00
Alexey Milovidov
9ea7ff231b
Merge pull request #60448 from ClickHouse/clang-19
...
Update to clang-19
2024-02-27 23:38:08 +03:00
Blargian
8b8dcf01b6
Add toMillisecond
2024-02-27 19:32:38 +01:00
Nikolai Kochetov
dd458932c9
Try to avoid calculation of scalar subqueries for CREATE TABLE.
2024-02-27 17:46:13 +00:00
Alexey Milovidov
0f3c9963d1
Merge branch 'master' of github.com:ClickHouse/ClickHouse into revert-60216-revert-59697-check-stack-size-in-parser
2024-02-27 17:30:32 +01:00
Raúl Marín
2a44eeff90
Merge pull request #60211 from jlmadurga/ulid_short_circuit
...
Ulid short circuit
2024-02-27 16:04:15 +01:00
avogar
416638461f
Try to fix logical error 'Cannot capture column because it has incompatible type' in mapContainsKeyLike
2024-02-27 15:02:13 +00:00
Alexey Milovidov
c192a448d0
Update to clang-19
2024-02-27 14:37:21 +01:00
Alexey Milovidov
0b90076a36
Revert "Revert "Check stack size in Parser""
2024-02-27 01:34:50 +03:00
HowePa
0b72f7b182
Make all format names case insensitive.
2024-02-26 22:46:51 +08:00
Nikolai Kochetov
ef8dab52c6
Merge pull request #57767 from jsc0218/DictShortCircuit
...
Dict Short Circuit
2024-02-26 15:16:15 +01:00
Juan Madurga
556b9897d0
update FunctionULIDStringToDateTime for short circuit
2024-02-26 15:01:17 +01:00
taiyang-li
ff4231186f
merge master and fix conflicts
2024-02-26 10:19:14 +08:00
taiyang-li
584ede2fad
opt for multiIf with decimal
2024-02-25 23:54:11 +08:00
avogar
39ad054e94
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements
2024-02-23 18:59:34 +00:00
avogar
0b012a56ba
Fix use-of-uninitialized-value in hashing functions with IPv6
2024-02-23 14:49:55 +00:00
Blargian
7175eec931
add toMilliseconds implementation, update docs and reference file of test
2024-02-22 12:32:29 +01:00
Robert Schulze
ae597d86dd
Merge remote-tracking branch 'rschu1ze/master' into vector-dot-product
2024-02-22 10:16:28 +00:00
Nikolai Kochetov
0e9d7f3540
Merge pull request #60037 from ClickHouse/fix-01656_test_query_log_factories_info-for-analyzer
...
Fix 01656_test_query_log_factories_info with analyzer.
2024-02-21 17:37:15 +01:00
avogar
bd2390996e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements
2024-02-21 13:16:07 +01:00
Robert Schulze
8f0f8bf294
Fix typo
2024-02-21 11:54:20 +00:00
Robert Schulze
9f37f17900
Further refactorings to make the code more similar to arrayDistance.cpp
2024-02-21 10:59:58 +00:00
Antonio Andelic
fee1565780
Revert "Check stack size in Parser"
2024-02-21 11:33:08 +01:00
Robert Schulze
daa61a8576
Manualy vectorize arrayDotProduct()
...
Measurements go down from
- 0.34 sec --> 0.30 sec (Float32)
- 0.68 sec --> 0.54 sec
2024-02-20 22:51:11 +00:00
Robert Schulze
e57b8f64e0
Help the compiler a bit with auto-vectorization
...
For query
SELECT sum(dp) FROM (SELECT dotProduct(v, v) AS dp FROM vectors)
with vectors of type
Array(Float32) and
Array(Float64)
and dimension = 150, runtimes go down from
0.46 sec to 0.34 sec (Float32) and
0.74 sec to 0.68 sec (Float64))
The latter (only a minor improvement) is independent of the number of
lanes (VEC_SIZE = 4 vs. 2 which is the theoretical optimal for Float64).
2024-02-20 22:24:18 +00:00
Robert Schulze
db974098d0
More refactoring and cleanup
2024-02-20 21:22:58 +00:00
avogar
122dc6769d
Fixes and improvements for Variant type
2024-02-20 18:58:06 +00:00
Raúl Marín
32130d7f78
Fix low cardinality too
2024-02-20 15:55:22 +01:00
Raúl Marín
5267e6b0ce
Fix arrayReduce with nullable aggregate function name
2024-02-20 13:38:33 +01:00
Robert Schulze
0fff496ad3
Refactoring and cleanup
2024-02-20 11:57:08 +00:00
Raúl Marín
793ae52bf8
Fix cosineDistance crash with Nullable
2024-02-19 17:30:00 +01:00
Yarik Briukhovetskyi
491a4cd1e7
Merge pull request #59243 from yariks5s/div_int_with_decimal
...
Fix bug with `intDiv` for decimal arguments
2024-02-19 15:28:07 +01:00
Yarik Briukhovetskyi
cfa198c477
remove comment
...
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2024-02-19 13:34:00 +01:00
Alexey Milovidov
fa1ca348a4
Miscellaneous
2024-02-19 03:19:21 +01:00
Alexey Milovidov
6fd563df52
Miscellaneous
2024-02-19 02:58:51 +01:00
Alexey Milovidov
096a679d6b
Insignificant changes
2024-02-18 10:47:18 +01:00
Alexey Milovidov
2f315e0eb5
Style check for abbreviations
2024-02-17 02:14:15 +01:00
Nikolai Kochetov
0c00e58353
Fixing build.
2024-02-16 17:22:22 +00:00
Alexey Milovidov
0787e9f402
Merge remote-tracking branch 'origin/master' into print-cpu-flags-at-startup
2024-02-16 13:07:03 +01:00
Alexey Milovidov
5b83e771ed
Print CPU flags at startup
2024-02-16 13:06:57 +01:00
Raúl Marín
f17d58cced
Add comment
2024-02-15 20:53:22 +01:00
Nikolai Kochetov
ef7e8e0c5d
Fixing style.
2024-02-15 17:35:44 +00:00
Nikolai Kochetov
365530c463
Fix 01656_test_query_log_factories_info with analyzer.
2024-02-15 17:12:22 +00:00
Raúl Marín
91f54f44b6
Fix several logical errors in arrayFold
2024-02-15 13:21:39 +01:00
Robert Schulze
ddaef8d342
Merge pull request #59752 from rschu1ze/countMatches-fuzzed
...
Fix AST fuzzer issue in function `countMatches`
2024-02-15 10:02:48 +01:00
Alexey Milovidov
0b58f16938
Merge pull request #59964 from ClickHouse/cleanups
...
Cleanups
2024-02-15 02:59:54 +01:00
jsc0218
0f6564627b
correctly use maskedExecute
2024-02-14 17:20:13 +00:00
Nikolai Kochetov
70d456dc28
Update greater.cpp
2024-02-14 17:44:06 +01:00
Nikolai Kochetov
078ec9a97f
Update notEquals.cpp
2024-02-14 17:43:49 +01:00
yariks5s
c1897e74a8
fix
2024-02-14 14:04:25 +00:00
Yarik Briukhovetskyi
41304c3e11
Update src/Functions/FunctionBinaryArithmetic.h
...
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2024-02-14 14:08:20 +01:00
Nikolai Kochetov
32a23244c9
Remove context from comparison functions.
...
(cherry picked from commit 57608cc6f9
)
2024-02-14 12:38:13 +00:00
Yarik Briukhovetskyi
941e179be2
Merge branch 'ClickHouse:master' into div_int_with_decimal
2024-02-14 13:16:13 +01:00
李扬
90d07ba82c
Trivial optimize of function coalesce. ( #59627 )
...
* reuse result of functionfactory::get
* add perf test
* Update src/Functions/coalesce.cpp
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
* change as requested
---------
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2024-02-14 11:29:45 +01:00
Robert Schulze
25667d9c9a
Attempt II at fixing the Fuzzer issue
2024-02-14 08:49:14 +00:00
Alexey Milovidov
2b4949bd18
Cleanups
2024-02-14 00:21:13 +01:00
yariks5s
ac601a0cb9
fix build
2024-02-13 23:12:21 +00:00
jsc0218
84e8755aae
rename a setting
2024-02-13 19:27:29 +00:00
yariks5s
4125070791
Merge branch 'div_int_with_decimal' of https://github.com/yariks5s/ClickHouse into div_int_with_decimal
2024-02-13 18:38:36 +00:00
yariks5s
ed5591e68c
changes due to review
2024-02-13 18:20:57 +00:00
jsc0218
c2b2a7f903
Merge branch 'ClickHouse:master' into DictShortCircuit
2024-02-12 12:48:08 -05:00
Robert Schulze
b1099e181d
Add check for NULL pattern argument
2024-02-11 11:38:33 +00:00
Robert Schulze
a6337fb6b0
Incorporate review feedback
2024-02-10 13:42:14 +00:00
Robert Schulze
4e2d0e8bf6
Merge remote-tracking branch 'rschu1ze/master' into countMatches-fuzzed
2024-02-10 13:22:30 +00:00
Alexey Milovidov
a7c30098b6
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-02-09 22:52:49 +01:00
Alexey Milovidov
a6fcd63159
Merge pull request #58866 from rschu1ze/distance-with-cpu-dispatch
...
AVX vectorization of distance functions
2024-02-09 03:32:26 +01:00
Alexey Milovidov
cd0acc512d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-02-08 22:08:15 +01:00
Robert Schulze
ccafc523a9
Fix style
2024-02-08 15:51:27 +00:00
Raúl Marín
5b16d6b958
Merge pull request #59754 from ClickHouse/revert-59683-rename-setting
...
Revert "Rename a setting"
2024-02-08 13:19:48 +01:00
Raúl Marín
697f7b28a7
Merge pull request #59739 from Algunenano/padstring_fix
...
Fix leftPad / rightPad function with FixedString input
2024-02-08 13:15:26 +01:00
Raúl Marín
284ed191ab
Revert "Rename a setting"
2024-02-08 13:13:22 +01:00
Robert Schulze
fc003497bb
Fix bug 59749
2024-02-08 11:50:20 +00:00
Robert Schulze
f7bb000b51
Refactorings, pt. II: disallow FixedString patterns
2024-02-08 11:38:04 +00:00
Robert Schulze
cfa1a452e1
Refactorings, pt. I
2024-02-08 11:33:34 +00:00
jsc0218
71f0d82c90
merge short circuit logic into getColumn
2024-02-08 00:34:59 +00:00
Alexey Milovidov
02c0b4c67f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-02-07 22:45:50 +01:00
Alexey Milovidov
393abebf64
Merge pull request #59683 from ClickHouse/rename-setting
...
Rename a setting
2024-02-07 22:43:14 +01:00
Raúl Marín
48a48be135
Fix leftPad / rightPad function with FixedString input
2024-02-07 22:31:21 +01:00
Robert Schulze
7edcb86c08
Merge pull request #58632 from ClibMouse/series_outlier
...
Added function `seriesOutliersTukey` for outlier detetion in series data
2024-02-07 13:08:53 +01:00
Alexey Milovidov
d65a56d967
Merge branch 'master' into enable-coverage-for-debug-build
2024-02-07 04:58:21 +01:00
Alexey Milovidov
5991ea4dc3
Rename the setting
2024-02-07 00:00:34 +01:00
Raúl Marín
25738c8313
Remove no longer needed specialization
2024-02-06 20:34:12 +01:00
Raúl Marín
0a4e73a98d
Strict aliasing for Int8
2024-02-06 20:33:32 +01:00
Anton Popov
3b22c3849f
Merge pull request #59621 from bigo-sg/opt_if_not_null
...
Trivial optimize on ifNotNull with intel AVX2
2024-02-06 19:13:06 +01:00
taiyang-li
bc9c1bf345
improve ifnotnull
2024-02-06 11:48:13 +08:00
taiyang-li
2c882f012e
opt isNotnull
2024-02-06 11:35:14 +08:00
Bhavna Jindal
c9954a7eb8
added check for NaN and infinite values
2024-02-05 09:23:11 -08:00
Raúl Marín
c4e1d09c66
Reserve enough memory for memcpySmallAllowReadWriteOverflow15
2024-02-05 17:33:14 +01:00
taiyang-li
b4972bf5fb
revert files
2024-02-04 16:59:26 +08:00
jsc0218
db7e312c0c
switch default filling values to make the logic easier
2024-02-04 02:16:35 +00:00
yariks5s
e79ddd54af
fix tests
2024-02-03 00:56:37 +00:00
Bhavna Jindal
28e6e29004
Minor fixes
2024-02-02 07:46:36 -08:00
Bhavna Jindal
ce31fa912b
removed unnecessary method overloading and fixed documentation
2024-02-01 09:24:12 -08:00
yariks5s
d5eec2d85b
trying to fix (casting the result to int)
2024-02-01 16:27:57 +00:00
jsc0218
4ce770aebf
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-02-01 15:29:27 +00:00
taiyang-li
1d8de1d345
fix style
2024-02-01 19:39:22 +08:00
taiyang-li
d9820f9704
change as request
2024-02-01 11:13:26 +08:00
taiyang-li
ddc6aad8ff
merge master
2024-02-01 10:58:33 +08:00
jsc0218
237776c4d4
remove unnecessary column expand and shared_ptr
2024-01-31 20:06:29 +00:00
Bhavna Jindal
6d24ffc976
Fix filename and spelling errors
2024-01-31 10:57:43 -08:00
Bhavna Jindal
4bc26fe45f
Added support for custom percentiles and K
2024-01-31 10:41:05 -08:00
Bhavna Jindal
487ef67e97
Added custom tukey
2024-01-31 10:39:58 -08:00
Bhavna Jindal
90dfacd5a6
added a fix for failing testcase
2024-01-31 10:39:58 -08:00
Bhavna Jindal
f4c14e15a2
added a fix for failing testcase
2024-01-31 10:39:58 -08:00
Bhavna Jindal
d2ce39387f
implemented series_outlier method
2024-01-31 10:39:39 -08:00
Kruglov Pavel
325419b096
Merge pull request #59398 from Avogar/variant-type-func
...
Add function variantType
2024-01-31 13:06:54 +01:00
Raúl Marín
f67bff12b7
Merge pull request #59148 from bigo-sg/improve_if_with_floating
...
Continue optimizing branch miss of if function when result type is float*/decimal*/int*
2024-01-31 12:42:06 +01:00
taiyang-li
dc7b9d8208
fix conflicts
2024-01-31 17:37:37 +08:00
taiyang-li
2ad7607bad
opt if when input type is map
2024-01-31 17:33:47 +08:00
taiyang-li
818fb9802a
change as request
2024-01-31 11:48:02 +08:00
jsc0218
8583192948
refactior short circuit setting
2024-01-30 21:26:43 +00:00
Kruglov Pavel
bd3bb05308
Fix
2024-01-30 20:32:59 +01:00
Kruglov Pavel
46432da743
Remove unneded file
2024-01-30 20:30:17 +01:00
Kruglov Pavel
8c69a6e28d
Fix build
2024-01-30 20:28:56 +01:00
avogar
584694ed51
Add function variantType
2024-01-30 18:01:12 +00:00
yariks5s
0576aa2b7f
fix fuzzer
2024-01-30 16:45:36 +00:00
yariks5s
0557cdb8a9
fix due to review
2024-01-30 15:31:04 +00:00
Raúl Marín
b3483eede3
Fix translate() return type
2024-01-30 13:41:04 +01:00
Alexey Milovidov
b7a8933b2c
Merge pull request #59319 from bigo-sg/improve_regexp_extract
...
Improve exception message of function regexp_extract
2024-01-30 08:13:14 +01:00
Alexey Milovidov
b4a5b6060e
Merge pull request #59341 from rschu1ze/non-string-concat-with-separator
...
Allow non-string arguments in `concatWithSeparator()`
2024-01-30 04:10:06 +01:00
Alexey Milovidov
eb54432cbe
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-01-30 03:53:11 +01:00
taiyang-li
815c73f1e5
change as request
2024-01-30 10:41:42 +08:00
Robert Schulze
7683b44bf6
Merge pull request #58961 from ClibMouse/seriesDecompose
...
Return baseline component from function `seriesDecomposeSTL()`
2024-01-29 20:41:09 +01:00
Robert Schulze
8ddda0caf0
Merge pull request #59229 from rschu1ze/cleanup-msan-usage
...
Minor cleanup of msan usage
2024-01-29 20:39:06 +01:00
yariks5s
1ab29bef62
fixes
2024-01-29 15:33:09 +00:00
Alexey Milovidov
cb69a1b25d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-01-29 15:35:04 +01:00
Robert Schulze
c2b7d2047e
Support arguments of arbitary type in function concatWithSeparator()
...
Follow-up to #56540
2024-01-29 14:11:21 +00:00
Robert Schulze
1aae7d7d95
Cosmetics: Rename variable
2024-01-29 13:35:19 +00:00
Robert Schulze
2191569d6b
Cosmetics: remove superfluous inline
2024-01-29 13:24:43 +00:00
taiyang-li
7aea3847db
improve exception message of function regexp_extract
2024-01-29 11:54:19 +08:00
taiyang-li
49fc8a7099
Merge branch 'master' into improve_if_with_floating
2024-01-29 11:02:05 +08:00
Alexey Milovidov
4a94ae5a1b
Merge branch 'master' into enable-coverage-for-debug-build
2024-01-28 22:24:26 +01:00
avogar
5833641fa5
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-data-type
2024-01-26 16:54:02 +00:00
avogar
7908f69d84
Fix special builds and tests
2024-01-26 14:01:06 +00:00
Yarik Briukhovetskyi
0cbadc9b52
Merge pull request #59190 from yariks5s/fix_to_string_nullable_timezone
...
Fix crash with nullable timezone for `toString`
2024-01-26 13:33:12 +01:00
taiyang-li
56db02c953
Merge branch 'master' into improve_if_with_floating
2024-01-26 19:21:49 +08:00
taiyang-li
29b3cf60a6
fix perf regression
2024-01-26 16:45:09 +08:00
taiyang-li
626e30609a
change as request
2024-01-26 10:43:27 +08:00
Alexey Milovidov
aedffeaab0
Merge pull request #58959 from Algunenano/fix_sum_map
...
Fix sumMapFiltered with NaN values
2024-01-25 23:50:28 +01:00
yariks5s
36055bd008
init
2024-01-25 21:44:46 +00:00
avogar
ff15ab12b8
Remove bad implementation of DataTypeVariant::createColumnConst, support use_variant_as_common_type setting in functions array/map
2024-01-25 21:06:50 +00:00
Nikita Taranov
368ef60c77
Merge pull request #59093 from ClickHouse/nickitat-patch-18
...
Add `[[nodiscard]]` to a couple of methods
2024-01-25 17:03:05 +01:00
Robert Schulze
16a9e95605
Minor cleanup of msan usage
2024-01-25 15:40:11 +00:00
Yarik Briukhovetskyi
da1cf46b14
Fix fuzzer
2024-01-25 15:47:32 +01:00
avogar
4b26de9660
Rename setting to use it not only in if/multiIf in future
2024-01-25 13:26:13 +00:00
taiyang-li
aca8e90ec9
optimize when if condition is constant
2024-01-25 20:09:26 +08:00
yariks5s
c277148ee1
enhanced tests, fix
2024-01-25 12:01:51 +00:00
Maksim Kita
2a327107b6
Updated implementation
2024-01-25 14:31:49 +03:00
taiyang-li
e8629cf4f5
add another perf and tests
2024-01-25 18:02:55 +08:00
jsc0218
311276252e
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-01-24 19:29:56 +00:00
yariks5s
4deb1eab19
init
2024-01-24 18:17:19 +00:00
Bhavna Jindal
926982856d
Merge remote-tracking branch 'upstream/master' into seriesDecompose
2024-01-24 10:11:00 -08:00
taiyang-li
2418798e3c
fix code style
2024-01-24 20:02:07 +08:00
taiyang-li
4e337f8317
add perf tests
2024-01-24 20:00:26 +08:00
taiyang-li
eae7878609
fix style
2024-01-24 19:53:50 +08:00
taiyang-li
393cab820e
add some comment
2024-01-24 18:48:29 +08:00
taiyang-li
622a0f65b3
optimize for float
2024-01-24 18:46:06 +08:00
taiyang-li
aed8ffe3d8
optimize for decimal
2024-01-24 16:30:37 +08:00
Nikita Taranov
c7be7363cf
fix
2024-01-23 14:46:33 +01:00
Bhavna Jindal
084ee74b68
minor fix
2024-01-22 13:32:57 -08:00
Bhavna Jindal
d9edd5a7f3
fix spell check
2024-01-22 13:32:57 -08:00
Bhavna Jindal
f935493f28
fix trailing whitespaces
2024-01-22 13:32:57 -08:00
Bhavna Jindal
c59f3e164f
Return baseline component as fourth array
2024-01-22 13:32:57 -08:00
Raúl Marín
f5ffe4e473
Try getting a better error
2024-01-22 18:58:06 +01:00
Nikolai Kochetov
6dfedc5f06
Fix columns size for flat dictionary. Add check.
2024-01-22 14:31:44 +00:00
avogar
b4dcd6755a
Use ColumnConst instead of Field in IColumn::createWithOffsets
2024-01-22 13:41:58 +00:00
Robert Schulze
68fc97089e
Revert "(Futile) unrolling attempt at vectorization"
...
This reverts commit df30a990545eafdf5e6a09034d81a97fb0188ba0.
2024-01-22 10:25:10 +00:00
Robert Schulze
68d0f4e421
(Futile) unrolling attempt at vectorization
2024-01-22 10:25:10 +00:00
Robert Schulze
d2c671c17e
1st attempt at vectorization
...
80 mio arrays with 150 elements each, runtimes in sec
WITH
(SELECT vec FROM vectors limit 1) AS const_vec
SELECT sum(dist)
FROM
(SELECT <distance>(const_vec, vec) AS dist FROM vectors)
auto-vectorized hand-vectorized
L2 Float32 0.61 0.57
L2 Float64 1.15 0.99
cos Float32 0.78 0.65
cos Float64 1.35 1.05
2024-01-22 10:25:09 +00:00
Alexey Milovidov
eb4f61ba31
Update visibleWidth.cpp
2024-01-21 17:50:21 +03:00
Alexey Milovidov
735708e9bb
Merge branch 'master' into enable-coverage-for-debug-build
2024-01-20 21:40:53 +01:00
Alexey Milovidov
a8022ed624
Better behavior of visibleWidth
2024-01-20 11:22:23 +01:00
Kruglov Pavel
20379d34d5
Merge branch 'master' into variant-data-type
2024-01-19 23:17:42 +01:00
Alexey Milovidov
0c1e92aea5
Less threads in clickhouse-local
2024-01-19 04:53:14 +01:00
Alexey Milovidov
7c0b167e2d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-01-19 03:59:27 +01:00
Kruglov Pavel
5444cde408
Merge branch 'master' into variant-data-type
2024-01-18 18:31:27 +01:00
Dmitry Novik
ba2dad98bb
Merge pull request #58913 from ClickHouse/fix-style
...
Style fix
2024-01-18 14:24:39 +01:00
Alexey Milovidov
c098f41dbc
Merge branch 'master' into enable-coverage-for-debug-build
2024-01-17 22:35:51 +01:00
Robert Schulze
226f1804b7
Fix spelling and style
2024-01-17 15:26:18 +00:00
Dmitry Novik
3a1c3638e8
Style fix
2024-01-17 15:04:50 +00:00
Robert Schulze
84ab20ff77
Some fixups
2024-01-17 12:01:52 +00:00
Robert Schulze
22534c69c4
Merge remote-tracking branch 'ClickHouse/master' into u/zhengmiao/AddArrayFunctionShingles
2024-01-17 10:49:11 +00:00
vdimir
8b108365f5
Merge pull request #58808 from ClickHouse/vdimir/json_extract_lc_fix
...
Fix JSONExtract function for LowCardinality(Nullable) columns
2024-01-16 11:01:10 +01:00
Alexey Milovidov
779f738cb9
Merge branch 'master' of github.com:ClickHouse/ClickHouse into enable-coverage-for-debug-build
2024-01-16 05:07:17 +01:00
jsc0218
0d46bfe66a
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-01-15 14:52:49 +00:00
Azat Khuzhin
48a700edba
Support query parameters in ALTER TABLE ... PART
...
But, to make this happen it is not enough to simply fix the parser, the
whole ASTs for ALTER should be fixed as well, since they store `ASTPtr`
instead of `IAST *`, and so because of `ReplaceQueryParameterVisitor`
does not work for ALTER query.
So this patch converts ASTPtr to `IAST *` for ASTAlterQuery and
ASTAlterCommand (plus it also fixes when the children for
ASTAlterCommand had not been updated sometimes).
And only after this it is possible to adjust the parser (see
places with `parser_string_and_substituion` in the parser code).
v2: also fix ASTAlterCommand::clone (add missing components) and ParserAlterCommand::parseImpl
v3: fix APPLY DELETED MASK
v4: fix mutations_execute_nondeterministic_on_initiator/mutations_execute_subqueries_on_initiator
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-01-15 14:16:54 +03:00
vdimir
2970812cb1
Fix JSONExtract function for LowCardinality(Nullable) columns
2024-01-15 10:38:56 +00:00
Alexey Milovidov
3e09feda33
More functions
2024-01-15 00:36:07 +01:00
Alexey Milovidov
33d9a1d4e8
Documentation
2024-01-14 22:03:47 +01:00
Alexey Milovidov
d112492c56
Remove some code
2024-01-13 03:48:04 +01:00
Ilya Yatsishin
2c86b7ae6a
Merge pull request #58557 from yariks5s/to_start_of_interval_bug_fix
...
toStartOfInterval for milli- microsencods values rounding
2024-01-12 20:39:27 +04:00
jsc0218
0312ea0379
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-01-12 01:17:57 +00:00
avogar
9e639df12e
Add fixes, add new mode to getLeastSupertype and use it in if/multiIf
2024-01-11 18:44:05 +00:00
Robert Schulze
52d75ab68f
Merge pull request #58458 from rschu1ze/replace-std_regexp-by-re2
...
Replace `std::regex` by re2
2024-01-10 17:46:54 +01:00
Robert Schulze
a0128e0f51
Merge pull request #58544 from rschu1ze/sqid-decode
...
Add `sqidDecode()` function
2024-01-10 13:47:13 +01:00
Robert Schulze
499227b9cf
Merge remote-tracking branch 'rschu1ze/master' into replace-std_regexp-by-re2
2024-01-10 10:02:53 +00:00
taiyang-li
231de4ac49
Merge branch 'master' into ch_opt_array_element
2024-01-10 15:49:43 +08:00
Nikolay Degterinsky
24733700fb
Merge pull request #57745 from KevinyhZou/imporve_multi_if_nullable
...
Improve `MultiIf` function performance while type is nullable
2024-01-09 23:17:58 +01:00
Robert Schulze
4db26ad56b
Merge pull request #58531 from rschu1ze/string-similarity
...
Implement Damerau-Levenshtein distance and Jaro[-Winkler] string distance functions
2024-01-09 22:46:57 +01:00
Robert Schulze
69ba1a706a
Merge remote-tracking branch 'rschu1ze/master' into string-similarity
2024-01-09 15:22:52 +00:00
Robert Schulze
db3b430d41
Stylistic changes
2024-01-09 12:53:17 +00:00
Kruglov Pavel
22a0e085b7
Merge pull request #58597 from rschu1ze/makedatetime64-nonconst-fraction
...
`makeDateTime64()`: Allow non-const fraction argument
2024-01-09 12:17:12 +01:00
Robert Schulze
64ab30f446
Merge pull request #57078 from ClibMouse/seriesDecompose
...
Seasonal decompose of time series into seasonal, trend and residue components
2024-01-09 11:18:13 +01:00
Raúl Marín
803d8d6320
Merge pull request #58594 from Algunenano/missing_includes
...
Add some missing LLVM includes
2024-01-09 11:01:44 +01:00
taiyang-li
e5b4bc8f45
Merge branch 'master' into ch_opt_array_element
2024-01-09 17:17:38 +08:00
Bhavna Jindal
b2434d0c10
minor refactoring and cosmetic changes
2024-01-08 10:49:09 -08:00
Robert Schulze
08e687c847
Incorporate review feedback
2024-01-08 15:55:27 +00:00
Kruglov Pavel
b947609b8e
Merge branch 'master' into variant-data-type
2024-01-08 15:04:51 +01:00
Robert Schulze
f3c77c046a
makeDateTime64(): Allow non-const fraction argument
2024-01-08 11:58:32 +00:00
Raúl Marín
c1b95560db
Add some missing LLVM includes
2024-01-08 11:25:57 +01:00
kevinyhzou
a293ade11b
modify code
2024-01-08 14:43:29 +08:00
taiyang-li
9f8ff87bf8
change as request
2024-01-08 11:19:38 +08:00
taiyang-li
5c0ea7db94
Merge branch 'master' into ch_opt_array_element
2024-01-08 10:41:20 +08:00
Robert Schulze
f553b55e3a
Merge remote-tracking branch 'rschu1ze/master' into regex-std-re2
2024-01-07 22:31:35 +00:00
Robert Schulze
8e804487f3
Some fixups
2024-01-07 22:28:08 +00:00
Robert Schulze
5f105a56af
Fix style
2024-01-07 08:34:41 +00:00
Robert Schulze
ee0738e3df
Implement jaroSimilarity + jaroWinklerSimilarity
2024-01-07 08:34:41 +00:00
Robert Schulze
7d98fdede7
Implement Dramerau-Levenshtein distance
2024-01-07 08:34:41 +00:00
Robert Schulze
43896784a6
Cosmetics
2024-01-07 08:34:41 +00:00
Robert Schulze
dd2d9ff168
Minor fixes
2024-01-07 08:25:19 +00:00
Robert Schulze
d54e500832
Merge remote-tracking branch 'rschu1ze/master' into punycode-revert-revert
2024-01-07 08:08:46 +00:00