Commit Graph

6938 Commits

Author SHA1 Message Date
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
Robert Schulze
adebc372d7
Improve wording in docs 2024-01-07 08:07:03 +00:00
Robert Schulze
394ade4080
Update submodule 2024-01-05 22:01:35 +00:00
Robert Schulze
44b9547fba
Rename decode/encodeSqid() to sqidDecode/Encode() 2024-01-05 21:40:35 +00:00
Bhavna Jindal
22474f6b38 changed 2nd argument type to UInt and other cosmetic changes 2024-01-05 11:39:52 -08:00
Yarik Briukhovetskyi
cd00481e46
review fix 2024-01-05 19:02:14 +01:00
Yarik Briukhovetskyi
94533ecb9f
Update DateTimeTransforms.h 2024-01-05 17:59:21 +01:00
Yarik Briukhovetskyi
90a986e262
Update DateTimeTransforms.h 2024-01-05 17:58:22 +01:00
yariks5s
12585ded09 init 2024-01-05 16:51:35 +00:00
Robert Schulze
f6ecf2b617
Add decode function for sqids 2024-01-05 13:33:40 +00:00
Robert Schulze
8169b3e17f
Merge remote-tracking branch 'rschu1ze/master' into punycode-revert-revert 2024-01-05 12:19:46 +00:00
Robert Schulze
2cc2a9089c
Incorporate review feedback 2024-01-05 12:18:21 +00:00
Robert Schulze
76b7cddb18
Update docs 2024-01-04 16:29:43 +00:00
Robert Schulze
98d602c3d5
Reserve enough space in result column upfront 2024-01-04 16:21:08 +00:00
Robert Schulze
03e344c36a
Fix preprocessor guard 2024-01-04 16:15:51 +00:00
Robert Schulze
296e1ac8aa
FunctionSqid.cpp --> sqid.cpp 2024-01-04 16:11:39 +00:00
Bhavna Jindal
c2ebb9a5d9 fix for const column input 2024-01-03 13:05:52 -08:00
Robert Schulze
f652c6050c
Implement idnaEn/Decode() 2024-01-03 18:08:32 +00:00
Bhavna Jindal
62521d30ce fix style-check 2024-01-03 09:34:58 -08:00
Bhavna Jindal
8a7eaed07e Added additional testcases 2024-01-03 09:16:32 -08:00
Zheng Miao
49c244db01
Merge branch 'ClickHouse:master' into u/zhengmiao/AddArrayFunctionShingles 2024-01-04 00:59:33 +08:00
Blacksmith
46d3758444 Throw exception when second argument is not valid. 2024-01-04 00:45:06 +08:00
Kruglov Pavel
4d8cf71ba7
Merge branch 'master' into variant-data-type 2024-01-03 15:21:23 +01:00
Raúl Marín
ff90f64bc1 Merge remote-tracking branch 'blessed/master' into speedup_numbers 2024-01-03 13:33:22 +00:00
Robert Schulze
9a49f0cbb3
Factorize common code 2024-01-03 11:26:52 +00:00
Robert Schulze
b5d7ea2b02
Introduce OrNull() overloads for punycodeEncode/Decode() 2024-01-03 10:50:00 +00:00
Robert Schulze
45613f1d14
Refactor punycodeEncode/Decode() functions to inerit from IFunction directly 2024-01-03 09:18:25 +00:00
Robert Schulze
2186aa8f21
Revert "Revert "Implement punycode encoding/decoding""
This reverts commit 345d29a3c1.
2024-01-03 08:03:01 +00:00
Alexey Milovidov
029b1326e0
Merge pull request #58399 from ClickHouse/minor-fixes-lambda
Fix a comment; remove unused method; stop using pointers
2024-01-02 19:21:00 +01:00
Bhavna Jindal
c4ebc75209 remove stl-cpp submodule 2024-01-02 08:53:35 -08:00
Bhavna Jindal
d4eb8c7352 handled NaN and inf values 2024-01-02 08:52:28 -08:00
Bhavna Jindal
c0cff7b4f3 handled edge cases and addresses review comments 2024-01-02 08:52:28 -08:00
Bhavna Jindal
6d58c99408 fixed the failing fasttest and style-check 2024-01-02 08:52:28 -08:00
Bhavna Jindal
5c34ddab09 implemneted seriesDecomposeSTL method 2024-01-02 08:52:23 -08:00
Bhavna Jindal
a407cd270d Added new library stl-cpp for sesonal decompose of time series data 2024-01-02 08:48:10 -08:00
kevinyhzou
733e68cfd5 review fix 2024-01-02 17:47:45 +08:00
Alexey Milovidov
e4444e1db4 More minor changes 2024-01-01 19:17:04 +01:00
Alexey Milovidov
4172057a4e Fix a comment; remove unused method; stop using pointers 2024-01-01 18:46:38 +01:00
Alexey Milovidov
974cf132d4 Fix bad formatting of the timeDiff compatibility alias 2024-01-01 17:45:23 +01:00
Blacksmith
5c0d34341f Add array function shingles. 2024-01-01 22:32:27 +08:00
Alexey Milovidov
78523639e0 Remove function 2023-12-30 14:52:54 +01:00
Alexey Milovidov
ebd95586d2
Merge pull request #58358 from ClickHouse/format-constexpr
Make function `format` return a constant on constant arguments.
2023-12-30 12:34:56 +01:00
Alexey Milovidov
e1eca1ee39 Support for Enum in function transform 2023-12-29 21:48:38 +01:00
Alexey Milovidov
7c2d868ef1 Revert "Support for Enum in function transform"
This reverts commit 06628f76d7.
2023-12-29 21:48:14 +01:00
Alexey Milovidov
06628f76d7 Support for Enum in function transform 2023-12-29 21:47:53 +01:00
Alexey Milovidov
9d8c26331e Make format constexpr 2023-12-29 21:09:58 +01:00
Raúl Marín
ed6b9703a1 More iota 2023-12-29 17:20:18 +01:00
Raúl Marín
bda6104f84 Replace std::iota with DB::iota where possible 2023-12-29 14:38:22 +01:00
kevinyhzou
842252bcad review fix 2023-12-29 09:32:31 +08:00
jsc0218
17f391abb8 fix nullable issue, range hash setting and strengthen test 2023-12-28 16:16:06 +00:00
kevinyhzou
41cdedbf26 review 2023-12-28 16:16:54 +08:00
Alexey Milovidov
345d29a3c1
Revert "Implement punycode encoding/decoding" 2023-12-28 09:12:22 +03:00
Azat Khuzhin
b9233f6d4f Move Allocator code into module part
This should reduce amount of code that should be recompiled on
Exception.h changes (and everything else that had been included there).

This will actually not help a lot, because it is also included into
PODArray.h and ThreadPool.h at least... Sigh.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-27 15:42:08 +01:00
jsc0218
fd9a2a6417 support hashed array short circuit 2023-12-27 00:15:57 +00:00
jsc0218
0e400ca7ae add short circuit setting and test 2023-12-26 16:25:16 +00:00
Raúl Marín
e87b9751bd Cleanup some known short messages 2023-12-26 12:58:50 +01:00
Azat Khuzhin
3be3b0a280 Fix incorrect Exceptions
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-24 21:26:32 +01:00
Nikolay Degterinsky
a30980c930
Merge pull request #58139 from zvonand/zvonand-issue-53190
Fix `accurateCastOrNull` for out-of-range DateTime
2023-12-23 14:52:59 +01:00
avogar
f594ab34f5 Fix special build 2023-12-23 12:56:11 +00:00
Alexey Milovidov
468b5e2813 Fix use-after-move 2023-12-23 08:23:15 +01:00
jsc0218
e25eda91b0 refactor 2023-12-22 22:12:32 +00:00
Andrey Zvonov
01eb9be18e
Merge branch 'ClickHouse:master' into zvonand-issue-53190 2023-12-22 14:33:18 +01:00
zvonand
c1705bc0c7 fix accurateCastOrNull 2023-12-21 22:30:51 +01:00
jsc0218
a3a080f916
Merge branch 'ClickHouse:master' into DictShortCircuit 2023-12-21 14:30:28 -05:00
Raúl Marín
58d94c0ce0 Fix clang-tidy 2023-12-21 17:48:57 +01:00
zhanglistar
f0a51e5be5 Modify comments and merge master. 2023-12-21 09:55:26 +08:00
zhanglistar
408f9ea1ae
Merge branch 'ClickHouse:master' into if-opt 2023-12-21 09:50:23 +08:00
jsc0218
24e9ba681e Merge remote-tracking branch 'origin/master' into DictShortCircuit 2023-12-20 20:03:14 +00:00
Robert Schulze
ecb6f31211
Merge pull request #57969 from rschu1ze/punycode-is-cool
Implement punycode encoding/decoding
2023-12-20 10:20:34 +01:00
zhanglistar
810305fafe Fix if.xml. 2023-12-20 10:58:46 +08:00
jsc0218
3bb196f612 support hash dict short circuit 2023-12-20 02:53:07 +00:00
Alexey Milovidov
319a7e2911
Merge pull request #57994 from Algunenano/blake3_llvm
Replace rust's BLAKE3 with llvm's implementation
2023-12-20 01:06:35 +01:00
avogar
319ae440b6 Implement Variant data type 2023-12-19 16:45:15 +00:00
Raúl Marín
3632688e55 Fix style 2023-12-19 11:48:15 +01:00
zhanglistar
59b049ce08 function if branch free fix tests. 2023-12-19 16:40:13 +08:00
Robert Schulze
1d9c0db1f6
Incorporate review feedback 2023-12-19 08:00:59 +00:00
Robert Schulze
00c407ecc1
Merge remote-tracking branch 'rschu1ze/master' into punycode-is-cool 2023-12-19 06:27:23 +00:00
zhanglistar
b252b7182c Function if performance improvment fix bug. 2023-12-19 12:09:00 +08:00
jsc0218
11f63d59a5 support multi column flat dict short circuit 2023-12-19 02:43:48 +00:00
pufit
36d1905881
Merge pull request #57752 from chizhonkova/refactor_sql_udf_loader
Refactoring for UserDefinedSQLObjectsLoader
2023-12-18 16:08:46 -05:00
Alexey Milovidov
7178bd5c88
Merge pull request #57910 from Algunenano/log_message_string
Improvements for 00002_log_and_exception_messages_formatting
2023-12-18 21:02:23 +01:00
Raúl Marín
5601f97e0c Move FunctionsStringHashFixedString template to single file 2023-12-18 19:14:47 +01:00
Raúl Marín
80af5cb78a Always build the necessary LLVM modules if blake3 is enabled 2023-12-18 18:32:31 +01:00
Raúl Marín
99d1659b4c Replace rust's BLAKE3 with llvm's implementation 2023-12-18 15:29:01 +01:00
Robert Schulze
414a2893d0
Merge pull request #57821 from rschu1ze/consolidate-substring-tests
Dumb down `substring()` tests
2023-12-18 12:32:20 +01:00
Robert Schulze
29d70c12f6
Fix CI checks 2023-12-18 10:47:40 +00:00
Raúl Marín
2639d0715f Merge remote-tracking branch 'blessed/master' into log_message_string 2023-12-18 10:40:18 +01:00
zhanglistar
aaf6564711 if performance code format 2023-12-18 16:47:25 +08:00
zhanglistar
ba34b80087 If improvement add comment and performance test. 2023-12-18 16:43:45 +08:00
Alexey Milovidov
afd506984d
Merge pull request #57879 from rschu1ze/fix-arrayfold
Resurrect `arrayFold()`
2023-12-18 07:57:40 +01:00
kevinyhzou
3dc8f5ad52 improve multiIF 2023-12-18 12:02:40 +08:00
Alexey Milovidov
33cf8842bc
Merge branch 'master' into fix-arrayfold 2023-12-18 04:57:07 +01:00
Robert Schulze
af8b18707b
Fix style 2023-12-17 17:37:46 +00:00
Robert Schulze
19c8ac567f
Implement punycodeEncode()/Decode() 2023-12-17 17:04:28 +00:00
Robert Schulze
69007b5f71
Fix another bug 2023-12-17 11:16:05 +00:00
Alexey Milovidov
6ada95ea00 Remove C++ templates (normalizeQuery) 2023-12-17 02:44:30 +01:00
Raúl Marín
b269f87f4c Better text_log with ErrnoException 2023-12-15 19:27:56 +01:00
zhanglistar
028cd8955b function if trival opt. 2023-12-15 15:19:05 +08:00
Julia Kartseva
7a5b40563a
Merge pull request #57574 from ClibMouse/dev-seriesPeriodDetect
Revert "Revert "Implemented series period detect method using pocketfft lib""
2023-12-14 21:10:23 -08:00
Robert Schulze
eee4bacd71
Fix #57816, fix #57458. 2023-12-14 21:03:17 +00:00
Robert Schulze
f17d7e44f4
Refactorings: rename variables, decreases scopes, add comments 2023-12-14 20:48:18 +00:00
Bhavna Jindal
bb8589cabe minor cosmetic changes 2023-12-14 08:34:37 -08:00
kevinyhzou
380d9c996b consider constant 2023-12-14 22:54:43 +08:00
kevinyhzou
ca49bc0670 check style fix 2023-12-14 20:47:30 +08:00
kevinyhzou
37fb8a4dd9 remove unused code 2023-12-14 20:17:07 +08:00
kevinyhzou
d4a33bc0d1 review fix 2023-12-14 20:09:01 +08:00
kevinyhzou
21b86c0650 improve 2023-12-14 20:09:01 +08:00
kevinyhzou
e29b78d20b improve by use memcpy 2023-12-14 20:08:00 +08:00
kevinyhzou
46166c43bc some modify 2023-12-14 20:06:07 +08:00
kevinyhzou
14b8d8fb92 imporve multiif 2023-12-14 20:06:07 +08:00
Robert Schulze
b36a93a25d
Revert "Remove arrayFold"
This reverts commit 15dc0ed610.
2023-12-14 09:52:29 +00:00
Alexey Milovidov
15dc0ed610 Remove arrayFold 2023-12-14 04:34:32 +01:00
Robert Schulze
d0a4443bbc
Consolidate substring() tests 2023-12-13 16:49:39 +00:00
Robert Schulze
bbd7d0c057
Merge pull request #57277 from slvrtrn/substr-with-enums
Add Enums support to `substring` function
2023-12-13 17:03:03 +01:00
jsc0218
8fa4f29b6f refine interface again 2023-12-13 03:42:15 +00:00
Bhavna Jindal
1190abae22 multiple rows fix 2023-12-12 10:55:15 -08:00
jsc0218
fdcd94bf5f refine the interface 2023-12-12 16:40:18 +00:00
Natalya Chizhonkova
3d51192bad Refactoring for UserDefinedSQLObjectsLoader 2023-12-12 17:03:49 +03:00
Robert Schulze
e6372d5528
Merge remote-tracking branch 'rschu1ze/master' into substr-with-enums 2023-12-12 12:59:30 +00:00
robot-ch-test-poll1
b31b4c932f
Merge pull request #57746 from vitlibar/kill-query-sleep
sleep() function now can be cancelled with KILL QUERY
2023-12-12 13:21:40 +01:00
Robert Schulze
a4c306a85a
Merge pull request #57761 from rschu1ze/toStartOfInterval-refactoring
Minor refactoring of toStartOfInterval()
2023-12-12 09:49:50 +01:00
Alexey Milovidov
0e548a4caf
Merge pull request #57707 from ClickHouse/ft-ip-bit-ops
Allow IPv6 to UInt128 conversion and binary arithmetic
2023-12-12 07:57:43 +01:00
jsc0218
af5eec0e5a add general interface for dict short circuit 2023-12-12 03:12:36 +00:00
Robert Schulze
bb4d9f7ae5
Refactor toStartOfInterval() 2023-12-11 21:50:31 +00:00
Bhavna Jindal
df61040219 style-check 2023-12-11 09:22:44 -08:00
Bhavna Jindal
1ea8cb2a45 Added more testcases and spell check 2023-12-11 08:48:10 -08:00
Vitaly Baranov
380e34226f Fix compilation. 2023-12-11 16:57:18 +01:00
Vitaly Baranov
ca262d6e10 Fix profile events. 2023-12-11 16:03:07 +01:00
Vitaly Baranov
2c03348732 Use checkTimeLimit() to check if query is cancelled. 2023-12-11 15:33:16 +01:00
Robert Schulze
c141dd1330
Merge pull request #57549 from rschu1ze/format-arbitrary-types
Support arguments of arbitary type in function `format()`
2023-12-11 12:33:51 +01:00
Robert Schulze
9e434d43d7
Merge remote-tracking branch 'rschu1ze/master' into substr-with-enums 2023-12-11 10:21:08 +00:00
Bharat Nallan Chakravarthy
e006454eb2 add inline docs for hash functions 2023-12-10 22:05:24 -08:00
Alexey Milovidov
5a33fdcd4d
Merge pull request #57645 from bharatnc/ncb/sha512-256
add SHA512_256 function
2023-12-10 18:02:09 +01:00
Bharat Nallan Chakravarthy
bfe2ffbce9 use the EVP interface to satisfy s390x builds 2023-12-09 21:31:21 -08:00
Vitaly Baranov
ab2f60ccef sleep() function now can be cancelled with KILL QUERY. 2023-12-10 03:19:25 +01:00
Yakov Olkhovskiy
63619b5935 allow IPv6 to UInt128 conversion and binary arithmetic 2023-12-09 17:57:32 +00:00
Bharat Nallan Chakravarthy
64ae040954 fix test 2023-12-08 20:47:31 -08:00
Alexey Milovidov
2a77c3a2ff
Merge pull request #57633 from ClickHouse/fix-logs-and-exceptions-messages-formatting-3
Fix "logs and exception messages formatting", part 3
2023-12-08 22:00:29 +01:00
Bhavna Jindal
1f58b0f150
Merge branch 'master' into dev-seriesPeriodDetect 2023-12-08 10:26:39 -05:00
Bhavna Jindal
94943ec83d fix for non-constant arguments 2023-12-08 07:10:47 -08:00
Bharat Nallan Chakravarthy
e01e6671b3 Merge remote-tracking branch 'upstream/master' into ncb/sha512-256 2023-12-07 23:53:18 -08:00
Alexey Milovidov
0ee13fde16 Fix "logs and exception messages formatting", part 3 2023-12-07 22:01:53 +01:00
Bharat Nallan Chakravarthy
27bcd14181 add SHA512_256 function 2023-12-07 08:43:00 -08:00
Yarik Briukhovetskyi
71277892cf init 2023-12-07 15:55:23 +00:00
Alexey Milovidov
11920e751a
Merge pull request #57592 from bharatnc/ncb/alias-format-readable-size
Add FORMAT_BYTES as an alias for formatReadableSize
2023-12-07 15:15:56 +01:00
Robert Schulze
554c5d690c
Merge remote-tracking branch 'rschu1ze/master' into format-arbitrary-types 2023-12-07 09:36:39 +00:00
Bharat Nallan Chakravarthy
194d8cdf35 add FORMAT_BYTES as alias for formatReadableSize 2023-12-06 13:59:48 -08:00
Bhavna Jindal
4974ae019d Merge branch 'revert-the-revert-seriesPeriodDetectFFt' into dev-seriesPeriodDetect 2023-12-06 13:32:50 -08:00
Bhavna Jindal
dad268c33b Revert "Revert "Implemented series period detect method using pocketfft lib""
This reverts commit d7d83c99e5.
2023-12-06 13:31:49 -08:00
Bhavna Jindal
82d492d85a override executeImplDryRun 2023-12-06 08:38:20 -08:00
Robert Schulze
cfdfde6879
Fix style 2023-12-06 08:34:32 +00:00
Robert Schulze
c0d56c7bee
Implement format() with arbitrary arguments 2023-12-05 22:51:30 +00:00
Robert Schulze
3305f46676
Less silly #includes 2023-12-05 20:14:11 +00:00
Robert Schulze
4acfbe948d
Iterate less awkwardly 2023-12-05 20:10:49 +00:00
Robert Schulze
7fed06158b
Remove unnecessary template + whitespace 2023-12-05 20:09:17 +00:00
Robert Schulze
a7f0488059
Rename Functions/formatString.cpp --> Functions/format.cpp 2023-12-05 20:07:26 +00:00
slvrtrn
e275080f52 Merge remote-tracking branch 'origin' into substr-with-enums 2023-12-05 19:48:10 +01:00
Robert Schulze
f56dd6561f
Merge remote-tracking branch 'rschu1ze/master' into revert-revert-sqid 2023-12-05 18:41:10 +00:00
Alexey Milovidov
d7d83c99e5
Revert "Implemented series period detect method using pocketfft lib" 2023-12-05 18:17:07 +03:00
Nikolay Degterinsky
7f59eb438d
Merge pull request #57379 from evillique/fix-jsonmergepatch
Fix function jsonMergePatch for partially const columns
2023-12-05 15:14:30 +01:00
Robert Schulze
f1a2b46d60
Incorporate feedback 2023-12-05 12:28:28 +00:00
Robert Schulze
a2cd240317
Revert "Revert "Add sqid() function""
This reverts commit 8d5d0ef38f.
2023-12-05 10:50:30 +00:00
Alexey Milovidov
8d5d0ef38f
Revert "Add sqid() function" 2023-12-05 13:45:33 +03:00
Alexey Milovidov
cbea3545aa
Revert "add function getClientHTTPHeader" 2023-12-05 13:34:34 +03:00
taiyang-li
4bbc0db154 Optimize array element function when input is array(map)/array(array(string))/array(array(number)) 2023-12-05 15:57:43 +08:00
Nikolay Degterinsky
265e2b30a8
Even better 2023-12-04 18:42:25 +01:00
Nikolay Degterinsky
947106972d
Better type check 2023-12-04 18:27:10 +01:00
Robert Schulze
8db3bac7bd
Merge pull request #57442 from awakeljw/dev
Add `sqid()` function
2023-12-04 15:50:28 +01:00
awakeljw
6c70e32da1 rename squids to sqids 2023-12-04 11:26:55 +08:00
Robert Schulze
f6036fbb29
Some fixups 2023-12-03 16:20:59 +00:00
KevinyhZou
adbc819a09
Fix JSON_QUERY function with multiple numeric paths (#57096)
* Fix json_query parse error while path has numuber

* Fix json_query with numberic path

* remove unuse code

* remove code

* review

* resume some code
2023-12-03 15:53:50 +01:00
awakeljw
06241de257 fix codes according to the reviews 2023-12-03 22:00:42 +08:00
Nikolay Degterinsky
16f6a6de17 Better fix 2023-12-02 23:48:12 +00:00
awakeljw
1a0dc1375c sqids only support unsigned integers 2023-12-03 05:12:12 +08:00
awakeljw
e5a72f15dd support sqids 2023-12-02 21:12:48 +08:00
slvrtrn
8eff62a4de Merge remote-tracking branch 'origin' into substr-with-enums 2023-12-01 03:43:48 +01:00
slvrtrn
1751524daf Fix style 2023-12-01 03:34:54 +01:00
Raúl Marín
46acd8736c
Merge pull request #57189 from Algunenano/fix_respect_nulls
Fix RESPECT NULLS
2023-11-30 20:21:42 +01:00
Nikolay Degterinsky
c8d964865e Fix function jsonMergePatch 2023-11-30 04:14:42 +00:00
Raúl Marín
b102145a4f
Merge pull request #57301 from Algunenano/fix_reports
Fix code reports
2023-11-29 11:11:33 +01:00
Robert Schulze
157555a45b
Some fixups and consistency fixes 2023-11-28 17:28:30 +00:00
Raúl Marín
48fff248e5 Merge remote-tracking branch 'blessed/master' into fix_respect_nulls 2023-11-28 12:28:36 +01:00
Antonio Andelic
a61f32867e
Merge pull request #56488 from lingtaolf/feature/getHTTPHeader
add function getClientHTTPHeader
2023-11-28 11:41:56 +01:00
Raúl Marín
3c5d908bbb Fix use before check in toDecimalString 2023-11-28 10:09:26 +00:00
Robert Schulze
1448276bae
Merge pull request #55872 from azat/hour-no-leading-zero
Add ability to parse hours/months without leading zeros
2023-11-28 11:07:00 +01:00
slvrtrn
ca0aa935c1 Add Enums support to substring function 2023-11-27 23:56:33 +01:00
Raúl Marín
9fb19b5cb4 Merge remote-tracking branch 'blessed/master' into fix_respect_nulls 2023-11-27 19:42:58 +01:00
lgbo
b38469ddf8
Optimization for getting value from map, arrayElement(2/2) (#55957) 2023-11-27 15:11:56 +01:00
Robert Schulze
4c236b34f0
Another small cleanup 2023-11-27 11:09:07 +00:00
Raúl Marín
4250c6626c Move handling of RESPECT NULLS outside of the parser 2023-11-27 11:00:27 +01:00
Robert Schulze
a8671049e1
Various smaller fixups 2023-11-27 08:49:54 +00:00
Azat Khuzhin
315906b380 Add ability to parse hours/months without leading zeros
Recently I was looking into one dataset, that has such format.

So I've changed the meaning of the following formatters for
formatDateTime()/parseDateTime(), like in other implementations [1]:

- %l/%k - to handle hours without leading zeros
- %c - handle months without leading zeros

  [1]: https://www.php.net/strftime

And since this is kind of behaviour change (even though it is unlikely
will break something), there is a new setting to control this new
behaviour:
- parsedatetime_enable_format_without_leading_zeros=1 (default ON)
- formatdatetime_enable_format_without_leading_zeros=0 (default OFF, since this could change users output)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-11-26 19:10:17 +01:00
Robert Schulze
5b7d2a903d
Merge pull request #57152 from rschu1ze/fine-granular-plan-opt-settings
Fine-granular enablement/disabling of plan-level optimizations
2023-11-25 20:44:23 +01:00
Alexey Milovidov
8877b7ce78
Merge pull request #57198 from ClickHouse/analyzer-fuzz-6
Analyzer fuzzer 6 (arrayJoin)
2023-11-25 03:00:48 +01:00
Nikolai Kochetov
0eb20620cd Fix type for arrayJoin(LC) 2023-11-24 16:42:59 +00:00
Robert Schulze
8e93ea509d
Merge pull request #57002 from slvrtrn/from-days-all-integer-types
Allow to use any integer types with `fromDaysSinceYearZero` function
2023-11-24 11:28:53 +01:00
Robert Schulze
77d48e4d55
"optimise" --> "optimize". Sorry, friends from the UK. 2023-11-23 18:41:35 +00:00
Robert Schulze
aee3c9651b
Fix ubsan bug 2023-11-23 18:35:54 +00:00
Julia Kartseva
753b22f64c
Merge pull request #56171 from ClibMouse/dev-seriesPeriodDetect
Implemented series period detect method using pocketfft lib
2023-11-22 09:49:58 -08:00
Robert Schulze
f184d69115
Remove equivalent_integer typedef 2023-11-22 14:26:46 +00:00
Alexey Milovidov
d1015aae8e
Merge pull request #57073 from ClickHouse/implement-bit-hamming-distance-for-big-integers
Implement `bitHammingDistance` for big integers
2023-11-22 11:56:33 +01:00
Antonio Andelic
8c88dbe5aa
Merge pull request #57033 from ClickHouse/fix-fuzzbits
Fix `fuzzBits` with `ARRAY JOIN`
2023-11-22 08:46:28 +01:00
Alexey Milovidov
5cb55d3f8c Fix style 2023-11-22 01:24:58 +01:00
Alexey Milovidov
de5556b458 Add a test 2023-11-22 00:29:43 +01:00
Alexey Milovidov
8ed04c7645 Merge branch 'master' into implement-bit-hamming-distance-for-big-integers 2023-11-22 00:10:11 +01:00
Alexey Milovidov
fd8714ac29 Implement bitHammingDistance for big integers 2023-11-21 18:38:00 +01:00
Bhavna Jindal
eb35e61aea added validateFunctionArgumentTypes 2023-11-21 06:52:48 -08:00
Bhavna Jindal
4767859ba5 added validateFunctionArgumentTypes 2023-11-21 06:52:48 -08:00
Bhavna Jindal
f0d9037e74 Added embeded function documentation 2023-11-21 06:52:48 -08:00
Bhavna Jindal
64292f36f5 fixed getReturnTypeImpl to accept only array argument 2023-11-21 06:52:48 -08:00
Bhavna Jindal
464cdc4a91 fixed getReturnTypeImpl to accept only array argument 2023-11-21 06:52:48 -08:00
Bhavna Jindal
0843d5e890 added macro to enable/disable pocketfft lib 2023-11-21 06:52:47 -08:00
Bhavna Jindal
90df67a6b1 fix header file issue and added edge case handling 2023-11-21 06:52:47 -08:00
Bhavna Jindal
2c1cf7ed43 fix header file issue and added edge case handling 2023-11-21 06:52:47 -08:00
Bhavna Jindal
56a7fe6c86 fix header file issue and added edge case handling 2023-11-21 06:52:47 -08:00
Bhavna Jindal
ad99cb902f changed method name, updated pocketfft repo reference 2023-11-21 06:52:47 -08:00
Bhavna Jindal
62d69946eb Added testcases, documentation and addressed comments 2023-11-21 06:52:47 -08:00
Bhavna Jindal
3fa104ec11 format file 2023-11-21 06:52:47 -08:00
Bhavna Jindal
c4c12509ee removed commented code and fixed a bug 2023-11-21 06:52:47 -08:00
Bhavna Jindal
2235adcae5 Implemented series periods detect method using pocketfft lib 2023-11-21 06:52:47 -08:00
Antonio Andelic
2ae32d3383
Update src/Functions/getClientHTTPHeader.cpp 2023-11-21 13:12:44 +01:00
凌涛
e86aa433c5
Merge branch 'master' into feature/getHTTPHeader 2023-11-21 19:48:47 +08:00
凌涛
5e581a9fa4 optimize code 2023-11-21 19:47:39 +08:00
Robert Schulze
6851c1dbbc
Suppress bs clang-tidy warning 2023-11-21 11:15:19 +00:00
Antonio Andelic
f996dac75d Fix fuzzBits 2023-11-21 09:43:27 +00:00
凌涛
c5f16725ec add function getClientHTTPHeader 2023-11-21 11:12:01 +08:00
slvrtrn
6d14350886 Allow to use any integer types with fromDaysSinceYearZero 2023-11-20 17:26:31 +01:00
slvrtrn
59c251bf88 Allow to use concat with a single argument 2023-11-20 16:17:31 +01:00
Alexey Milovidov
510ea1106d
Merge pull request #56423 from arthurpassos/56357_quotes_extract_kv
Add transition from reading key to reading quoted key when double quotes are found
2023-11-19 11:26:48 +01:00
Robert Schulze
7a994976e3
Merge pull request #56913 from rschu1ze/trydecodebase64-invalid-input
Fix `tryBase64Decode()` with invalid input
2023-11-18 18:07:13 +01:00
Robert Schulze
4353507724
Merge pull request #56540 from slvrtrn/concat-arbitrary-types
Support arguments of arbitary type in function `concat()`
2023-11-18 17:21:03 +01:00
slvrtrn
d504ad6e99 Merge remote-tracking branch 'origin' into concat-arbitrary-types 2023-11-17 13:45:12 +01:00
Raúl Marín
fc793fe31f
Merge pull request #56120 from kitaisreal/window-functions-decrease-amount-of-virtual-function-calls
WindowTransform decrease amount of virtual function calls
2023-11-17 13:24:38 +01:00
Robert Schulze
b2dc5ada6e
Fix tryDecodeBase64() with invalid input 2023-11-17 11:31:52 +00:00
Alexey Milovidov
482d8ca9d8
Merge pull request #56102 from ClickHouse/coverage
Granular code coverage with introspection
2023-11-16 23:23:40 +01:00
Raúl Marín
a0840d36af Apply the same to arrayReduce 2023-11-16 12:48:27 +01:00
Raúl Marín
e53e723be8 Apply same improvement to initializeAggregation 2023-11-16 12:32:42 +01:00
Raúl Marín
5e087f1633
Merge pull request #56817 from Algunenano/transform_tsan
Fix TSAN report under transform
2023-11-16 11:03:13 +01:00
Raúl Marín
2508e91856 Fix TSAN race in transform 2023-11-15 23:10:25 +01:00
Robert Schulze
e2b25aab0c
Fixups, pt. II 2023-11-15 15:53:38 +00:00
Robert Schulze
0b45e4bfee
Merge remote-tracking branch 'ClickHouse/master' into concat-arbitrary-types 2023-11-15 15:44:36 +00:00
Robert Schulze
f21dd37d18
Some fixups 2023-11-15 15:43:41 +00:00
Antonio Andelic
5c4e58d27d Try fix No user 2023-11-15 15:14:46 +00:00
slvrtrn
20cfe91ff9 Remove unused error codes 2023-11-15 15:21:19 +01:00
slvrtrn
0aaea6e51d Fix ColumnConst serialization issues, more tests 2023-11-15 14:42:38 +01:00
slvrtrn
178d23b951 Concat with arbitrary types + tests 2023-11-15 13:53:52 +01:00
Arthur Passos
89f721b81b
Merge branch 'ClickHouse:master' into 56357_quotes_extract_kv 2023-11-15 09:06:59 -03:00
Raúl Marín
e67edb5488
Merge pull request #56597 from Algunenano/readd_sleep_message
Add "FunctionSleep exception message fix" again
2023-11-14 12:30:12 +01:00
Alexey Milovidov
3ef14f6098 Merge branch 'master' of github.com:ClickHouse/ClickHouse into coverage 2023-11-14 06:08:32 +01:00
Alexey Milovidov
c81cc3f953
Merge pull request #56660 from ClickHouse/better-ccache-2
Better use of build cache
2023-11-13 19:28:33 +01:00
Raúl Marín
6ce1ae36d3 Fix the fix 2023-11-13 10:56:49 +00:00
Alexey Milovidov
82c461031e Fix build 2023-11-13 10:09:23 +01:00
Alexey Milovidov
a044c61c79 Merge branch 'master' of github.com:ClickHouse/ClickHouse into system-symbols 2023-11-13 03:27:37 +01:00
Alexey Milovidov
9ed47749de
Merge pull request #56644 from evillique/fix-cast-nullable-enum-to-string
Fix conversion from `Nullable(Enum)` to `Nullable(String)`
2023-11-13 02:48:34 +01:00
Nikolay Degterinsky
d3ac896131 Fix conversion from Nullable(Enum) to Nullable(String) 2023-11-12 19:02:42 +00:00
Alexey Milovidov
bdb35e1d4c Merge branch 'remove-cpp-templates-2' into system-symbols 2023-11-11 04:26:10 +01:00
Alexey Milovidov
66d297ee47 Fix style 2023-11-11 04:25:49 +01:00
Alexey Milovidov
c94f4266fa Merge branch 'remove-cpp-templates-2' into system-symbols 2023-11-11 04:12:44 +01:00
Alexey Milovidov
58319f08be Merge branch 'master' into system-symbols 2023-11-11 04:12:37 +01:00
Alexey Milovidov
28bf977960 Fix test 2023-11-11 03:59:16 +01:00
Alexey Milovidov
2efe26eee9 Fix error and remove garbage 2023-11-11 03:38:46 +01:00
Alexey Milovidov
a90f3b14e8 Split FunctionsStringArray 2023-11-11 02:21:24 +01:00
Alexey Milovidov
3bec4dce8e Merge branch 'master' into remove-cpp-templates-2 2023-11-11 00:50:32 +01:00
Raúl Marín
72fae1057d Fix ubsan in sleep and add sanity checks 2023-11-10 17:24:41 +00:00
Raúl Marín
78f0a2a61d Revert "Merge pull request #56591 from ClickHouse/revert-56500-function-sleep-exception-message-fix"
This reverts commit e8875d881d, reversing
changes made to a5b1474b6a.
2023-11-10 17:20:17 +00:00
Alexey Milovidov
21a814c20b
Revert "FunctionSleep exception message fix" 2023-11-10 18:53:56 +03:00
Robert Schulze
a5b1474b6a
Merge pull request #56586 from rschu1ze/toUnixTS-docs
Update docs of `fromUnixTimeStamp[InJodaSyntax]()`
2023-11-10 15:21:48 +01:00
Robert Schulze
82f5e92bf5
Update docs of fromUnixTimeStamp[InJodaSyntax]() 2023-11-10 11:11:42 +00:00
Alexey Milovidov
60a9974adc Fix build 2023-11-10 05:34:29 +01:00
Alexey Milovidov
e5df9de12b Merge branch 'remove-cpp-templates-2' into system-symbols 2023-11-10 05:28:45 +01:00
Alexey Milovidov
8c253b9e3e Remove C++ templates 2023-11-10 05:25:02 +01:00
Arthur Passos
401c6cb763
Merge branch 'ClickHouse:master' into 56357_quotes_extract_kv 2023-11-09 14:56:04 -03:00
slvrtrn
124af73f1d Add support of arbitrary types to concat 2023-11-09 17:54:45 +01:00
Maksim Kita
8b4619fd5f FunctionSleep exception message fix 2023-11-09 19:40:37 +03:00
Alexey Milovidov
ad4a96ce0f Fix tidy 2023-11-09 00:22:29 +01:00
Alexey Milovidov
68d3f60ef7 Merge branch 'master' into system-symbols 2023-11-08 17:07:11 +01:00
Robert Schulze
66800a334f
Fix darwin build 2023-11-07 19:44:23 +00:00
Alexey Milovidov
ca83da14f2 Merge branch 'master' of github.com:ClickHouse/ClickHouse into system-symbols 2023-11-07 19:43:19 +01:00
Arthur Passos
28ca29fda2 remove stale comment 2023-11-07 14:31:34 -03:00
Arthur Passos
e4400ec24c add transition from reading key to reading quoted key when double quotes are found 2023-11-07 13:33:02 -03:00
Robert Schulze
fe5dc14ac7
Fix style 2023-11-07 15:27:41 +00:00
Robert Schulze
d8e8abc029
Fix build 2023-11-07 15:26:43 +00:00
Robert Schulze
86b8ebf71c
Merge remote-tracking branch 'rschu1ze/master' into arrayRandomSample-improved 2023-11-07 15:25:29 +00:00
Robert Schulze
3ca00fcdd5
Fix a bug that non-const array inputs would not work
CREATE TABLE tab (col Array(String)) ENGINE = MergeTree ORDER BY col;
INSERT INTO tab VALUES (['a', 'b', 'c']) (['d', 'e']) (['f', 'g', 'h']);
SELECT arrayRandomSample(col, 2) FROM tab;

Previous result:
['a', 'c']
['a', 'c']
['a', 'c']

Now:
['b', 'c']
['e', 'd']
['f', 'h']
2023-11-07 12:26:59 +00:00
Robert Schulze
e09f5961b1
Don't catch exceptions (loses the original stack) 2023-11-07 12:07:17 +00:00
Robert Schulze
7223d49b20
Cosmetics 2023-11-07 12:07:17 +00:00
Robert Schulze
54b5d573d7
Merge remote-tracking branch 'rschu1ze/master' into idatatype-convenience-functions 2023-11-07 10:18:30 +00:00
Robert Schulze
e22c673299
Revert "Revert "Add function arrayRandomSample()""
This reverts commit e47e50e30d.
2023-11-07 10:16:13 +00:00
Alexey Milovidov
e47e50e30d
Revert "Add function arrayRandomSample()" 2023-11-07 02:49:11 +03:00
Alexey Milovidov
d01108a2b2 Fix tidy 2023-11-06 23:34:21 +01:00
Robert Schulze
8846cc6770
Merge pull request #56327 from rschu1ze/parseQueryOrNull
Improve `formatQuery()`
2023-11-06 22:48:16 +01:00
Alexey Milovidov
145c37f342 Fix tidy 2023-11-06 16:28:05 +01:00
Robert Schulze
8896134531
Cleanup IDataType convenience functions 2023-11-06 13:25:32 +00:00
vdimir
3b775dee53
Merge pull request #55126 from ClickHouse/vdimir/jaccard_index_perf
Add function jaccardIndex back with better performance
2023-11-06 10:39:02 +01:00
Robert Schulze
0ecbe54708
Ensure sufficient size in exceptionn case 2023-11-06 08:55:09 +00:00
Alexey Milovidov
c0e058178c Fix error 2023-11-06 05:43:55 +01:00
Alexey Milovidov
1f058d6370 Fix style 2023-11-06 04:57:13 +01:00
Alexey Milovidov
0f9e7594e9 Remove useless header files 2023-11-06 04:09:28 +01:00
Alexey Milovidov
184e6f840e Remove useless header files 2023-11-06 03:49:55 +01:00
Alexey Milovidov
a710ac6011 This is actually better 2023-11-06 03:00:03 +01:00
Alexey Milovidov
e85c695bcf This is actually better 2023-11-06 02:57:26 +01:00
Alexey Milovidov
46af71ab7c This is actually better 2023-11-06 02:36:09 +01:00
Alexey Milovidov
2d1351c3a6 Remove useless header 2023-11-06 01:34:06 +01:00
Alexey Milovidov
995e8a91e5 Remove fat symbols 2023-11-06 01:12:29 +01:00
Robert Schulze
8a64066ee1
+ formatQueryOrNull() 2023-11-05 20:24:23 +00:00
Robert Schulze
38e9793cd7
Fix junk in formatQuery() 2023-11-05 20:13:49 +00:00
Robert Schulze
60fa1c3d26
Cosmetics 2023-11-05 20:08:09 +00:00
Alexey Milovidov
cd94d02455 Merge branch 'master' into coverage 2023-11-04 21:49:59 +01:00
Robert Schulze
480e284db1
Merge pull request #56088 from jh0x/feature-from-days-zero
Add function `fromDaysSinceYearZero()`
2023-11-04 00:17:04 +01:00
Robert Schulze
a43647b4e0
Fix FastTest 2023-11-03 10:53:25 +00:00