Alexey Milovidov
530b764953
Fix IBM
2023-04-21 12:38:45 +02:00
Anton Popov
1f58dcabae
Merge branch 'master' into rework-map-functions
2023-04-20 18:44:40 +02:00
Anton Popov
7d0244d742
Update src/Functions/array/FunctionsMapMiscellaneous.cpp
...
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-04-20 18:18:47 +02:00
Anton Popov
9f59f3139e
move code to cpp files
2023-04-20 16:17:30 +00:00
Arthur Passos
43841a6ee6
Merge branch 'master' into parsey_key_value_function
2023-04-20 10:05:34 -03:00
Arthur Passos
a03de85bab
minor doc update
2023-04-20 10:01:34 -03:00
Vladimir C
e105a6e9bf
Merge pull request #48899 from ClickHouse/vdimir/bitnot_ubsan
2023-04-20 11:59:35 +02:00
Shane Andrade
6867101d8d
Update src/Functions/date_trunc.cpp
...
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2023-04-20 00:04:00 -07:00
Alexander Gololobov
e9739e5f8e
Merge branch 'master' into fix_set_withzk_and_analyzer
2023-04-19 13:31:12 +02:00
Robert Schulze
15db30618c
Various fixes and cleanups
2023-04-19 09:19:41 +00:00
lgbo-ustc
d8d7639ba7
fixed typos & style
2023-04-19 11:37:58 +08:00
lgbo-ustc
33bedc0291
improve jsonpath support in json functions
2023-04-19 11:37:58 +08:00
Alexander Gololobov
2a829d9838
Check getData() result in other places
2023-04-18 17:11:19 +02:00
vdimir
8199872558
bitNot marked as NO_SANITIZE_UNDEFINED
2023-04-18 13:38:41 +00:00
clundro
447d6cf153
[chore] add test for arrayCumSumNonNegative.
...
Signed-off-by: clundro <859287553@qq.com>
2023-04-18 01:36:38 +08:00
clundro
c02882fd79
[chore] add int128/256, uint128/256 for arrayDifference, arrayCumSum
...
1. add tests.
Signed-off-by: clundro <859287553@qq.com>
2023-04-18 01:05:08 +08:00
Shane Andrade
0521f58d6f
undo automatic indentation
2023-04-17 15:06:07 +00:00
Shane Andrade
f2f47fc24d
date_trunc function to always return DateTime type
2023-04-17 07:40:36 -07:00
Arthur Passos
c7d7df75f2
minor doc update
2023-04-17 11:20:03 -03:00
Arthur Passos
3380c91206
Add validation for number of arguments provided and update doc examples
2023-04-17 11:15:24 -03:00
Nikolay Degterinsky
1388154420
Merge pull request #48629 from bigo-sg/json_map_node
...
Support map type for JSONExtract
2023-04-15 01:02:09 +02:00
Dmitry Novik
352a240a20
Merge pull request #47984 from ClickHouse/optimize-compilation
...
Optimize compilation
2023-04-14 15:34:46 +02:00
Robert Schulze
43b8cbc50c
Merge pull request #48737 from ClickHouse/rs/fix-wshadow
...
Remove `-Wshadow` suppression which leaked into global namespace
2023-04-13 21:18:50 +02:00
Dmitry Novik
5cc9b46f78
Merge remote-tracking branch 'origin/master' into optimize-compilation
2023-04-13 16:04:09 +02:00
Arthur Passos
88f1c969cc
Merge branch 'master' into parsey_key_value_function
2023-04-13 10:38:44 -03:00
Arthur Passos
3523c0fb0e
fix escap sequences unit tests, values are not allowed to start with escape sequences anymore
2023-04-13 09:55:51 -03:00
Jordi Villar
eb32b710f0
Merge remote-tracking branch 'origin/master' into 16414-totimezone-throw
2023-04-13 14:03:45 +02:00
Jordi Villar
3e882e0c7d
Remove unnecessary logger
2023-04-13 14:03:05 +02:00
Robert Schulze
658d6c8870
Merge pull request #48567 from FriendLey/test_soundex
...
add soundex function, issue #39880
2023-04-13 11:20:19 +02:00
Robert Schulze
7a21d5888c
Remove -Wshadow suppression which leaked into global namespace
2023-04-13 08:46:40 +00:00
FriendLey
50af10771e
Merge branch 'master' into test_soundex
2023-04-13 10:17:08 +08:00
Robert Schulze
700492f6d4
Fixes and refactorings for consistency with the remaining codebase
2023-04-12 22:41:26 +00:00
Robert Schulze
3f7ce60e03
Merge branch 'master' into rs/gcc-removal
2023-04-12 22:17:04 +02:00
Arthur Passos
41b4f8549f
define ILLEGAL_TYPE_OF_ARGUMENT in ArgumentExtractor
2023-04-12 17:15:58 -03:00
Arthur Passos
ee6ad4a461
reject values starting with escape sequences if escaping support is turned on
2023-04-12 15:37:58 -03:00
Arthur Passos
a97fa9a449
add input arguments type validation
2023-04-12 15:36:30 -03:00
Alexander Tokmakov
69790b76b2
fix the same issue in other functions
2023-04-12 20:36:23 +02:00
Alexander Tokmakov
71258202bb
Merge branch 'master' into 16414-totimezone-throw
2023-04-12 17:58:48 +02:00
Nikolay Degterinsky
ff20acf076
Merge pull request #48445 from evillique/array-functions-date-datetime-support
...
Add support for Date/DateTime datatypes to arrayMin/Max, arrayDifference functions
2023-04-12 13:27:17 +02:00
FriendLey
63928c6df0
Merge branch 'master' into test_soundex
2023-04-12 19:06:05 +08:00
taiyang-li
e29cce4db9
support map node for json extract
2023-04-12 10:18:07 +08:00
Robert Schulze
05606a8835
Clean up GCC warning pragmas
2023-04-11 18:21:08 +00:00
Robert Schulze
dcfd843b2d
Merge pull request #48489 from ClickHouse/rs/date_time-alias
...
Register datediff and trim aliases in system.functions
2023-04-11 19:53:44 +02:00
Alexander Tokmakov
dfff30e1a9
Merge branch 'master' into clusters_is_active_column
2023-04-11 16:32:15 +02:00
Robert Schulze
1fc5d92ae2
Merge pull request #48627 from ClickHouse/rs/formatdatetime-refactoring
...
Minor refactoring of formatDateTime()
2023-04-11 15:29:47 +02:00
FriendLey
e327371297
Merge branch 'master' into test_soundex
2023-04-11 21:02:01 +08:00
Robert Schulze
e08b7c8a53
Merge pull request #48422 from ClickHouse/rs/better-f-in-formatdatetime
...
MySQL compat: Align behavior of %f in formatDateTime() with parseDateTime()
2023-04-11 14:12:16 +02:00
Robert Schulze
4e52dc672e
Merge pull request #48420 from ClickHouse/rs/f
...
MySQL compat: Implement %f in parseDateTime()
2023-04-11 14:12:02 +02:00
FriendLey
8aa17dbffe
remove return in void function.
2023-04-11 19:18:27 +08:00
FriendLey
ffa1a75fb5
Merge branch 'master' into test_soundex
2023-04-11 17:52:32 +08:00
Robert Schulze
4b61685c64
Minor refactoring of formatDateTime()
...
Don't explicitly specify literal length when the called functions can
compute it.
2023-04-11 07:43:24 +00:00
Robert Schulze
c3f976c58a
Move space check out of loop
2023-04-11 06:19:10 +00:00
Robert Schulze
b7d5df7aa1
Merge branch 'master' into rs/better-f-in-formatdatetime
2023-04-11 08:11:04 +02:00
FriendLey
910bd8a15f
bugfix: fix access illegal address bugs.
2023-04-11 13:01:53 +08:00
FriendLey
6a3eb19821
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:52 +08:00
FriendLey
3d4c6e5a48
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:42 +08:00
FriendLey
baa29a5a2c
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:34 +08:00
FriendLey
0ac9f78c43
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:16 +08:00
FriendLey
a5d4a2065e
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-11 09:49:06 +08:00
Azat Khuzhin
79b83c4fd2
Remove superfluous includes of logger_userful.h from headers
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-10 17:59:30 +02:00
Arthur Passos
b062ab5b4f
Merge branch 'master' into parsey_key_value_function
2023-04-10 10:32:01 -03:00
FriendLey
2a0de4bc16
Update src/Functions/soundex.cpp
...
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-04-10 21:14:49 +08:00
FriendLey
a67ea35875
format code and replace std function with Common utils.
2023-04-10 19:12:17 +08:00
FriendLey
9d5fc02c5e
update code style.
2023-04-10 17:22:15 +08:00
FriendLey
890d4655a0
update code styl.
2023-04-10 17:06:31 +08:00
Nikolay Degterinsky
6debaccd85
Fix build
2023-04-09 11:12:08 +00:00
FriendLey
fe21f301f0
update code style.
2023-04-09 17:24:54 +08:00
FriendLey
20527e03ac
add soundex function. ( #39880 )
2023-04-09 16:41:11 +08:00
Alexey Milovidov
16fe18a7b6
Merge pull request #48520 from ClibMouse/feature/use-string-view-instead-of-strlen
...
Use std::string_view instead of strlen
2023-04-08 22:19:28 +03:00
Nikolay Degterinsky
7161d3d380
Fixes
2023-04-08 00:49:53 +00:00
Vitaly Baranov
62e9c419de
Merge pull request #48519 from azat/build/fwd-decl-threadpool
...
Use forward declaration of ThreadPool
2023-04-08 00:44:01 +02:00
Alexander Tokmakov
9ec91acef3
add some columns to system.clusters
2023-04-07 18:26:23 +02:00
Nikolay Degterinsky
a48655af39
Merge branch 'master' into add-kafka-murmur-hash-function
2023-04-07 12:21:16 +02:00
Azat Khuzhin
011480924a
Use forward declaration of ThreadPool
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-07 11:25:35 +02:00
ltrk2
4449e49e72
Mark a function inline
2023-04-06 13:28:30 -07:00
ltrk2
00c8e6e60d
Use std::string_view instead of strlen
2023-04-06 11:39:33 -07:00
Arthur Passos
d381f82843
remove escaping_support parameter left overs
2023-04-06 12:22:47 -03:00
Arthur Passos
52e7a09de7
Use two functions extractKeyValuePairs and extractKeyValuePairsWithEscaping instead of boolean parameter
2023-04-06 12:17:14 -03:00
Arthur Passos
671f4b100c
minor renaming
2023-04-06 11:28:40 -03:00
Robert Schulze
7bcb8c4970
Register trim aliases in system.functions
2023-04-06 14:25:27 +00:00
Robert Schulze
cfd9c4d85e
Register aliases of date_diff in system.functions
2023-04-06 14:04:37 +00:00
Jordi Villar
e4977861a0
toTimeZone throw an error when no string constant timezone
2023-04-06 13:41:43 +02:00
Robert Schulze
b7be5fd89e
Improve code and tests
2023-04-06 08:47:38 +00:00
Robert Schulze
5eb31bba87
MySQL compat: Align behavior of %f in formatDateTime() with parseDateTime()
2023-04-06 08:13:04 +00:00
Robert Schulze
ce2692ba79
Merge pull request #47246 from ClickHouse/rs/m
...
Change the behavior of formatter %M in function formatDateTime() from minutes to month name
2023-04-06 09:19:50 +02:00
Anton Popov
166a63c36c
Merge pull request #46589 from ClickHouse/rs/nonconst-replace
...
replace[Regexp]{One,All}(): allow non-const pattern and replacement arguments
2023-04-06 03:08:28 +02:00
Nikolay Degterinsky
0dfcc84910
Add support for Date/Datetime datatypes to arrayMin, arrayMax, arrayDifference functions
2023-04-06 00:53:53 +00:00
Robert Schulze
65609340cc
Yet another fix
2023-04-05 20:23:41 +00:00
Robert Schulze
3e84be5f3a
Fix stuff
2023-04-05 20:10:27 +00:00
Robert Schulze
ce234baf9c
Merge branch 'master' into rs/f
2023-04-05 21:59:13 +02:00
Robert Schulze
809a7fbb7a
Incorporate more review feedback
2023-04-05 19:43:30 +00:00
Arthur Passos
46bf0572cb
=default for extractkvp constructor
2023-04-05 16:42:50 -03:00
Arthur Passos
a1446764a9
update docs to reflect new boolean argument
2023-04-05 13:27:38 -03:00
Arthur Passos
3c3c38d689
Use boolean column as escaping support argument instead of ColumnString
2023-04-05 13:20:32 -03:00
Arthur Passos
b7c34e4356
more docs
2023-04-05 12:33:30 -03:00
Arthur Passos
ebd22e92ce
more docs / comments
2023-04-05 11:53:13 -03:00
Vitaly Baranov
862a4d6fcd
Merge pull request #48142 from DimasKovas/json_functions_to_h_file
...
Move FunctionsJSON implementation to header file
2023-04-05 16:52:48 +02:00
Arthur Passos
6dec537b3c
more docs
2023-04-05 10:34:39 -03:00
Robert Schulze
949f7c1839
Fix darwin build
2023-04-05 12:07:22 +00:00
Arthur Passos
5437b7dafa
fix clangtidy build
2023-04-05 08:15:49 -03:00
Robert Schulze
a59b53775c
Fix style
2023-04-05 10:43:55 +00:00
Robert Schulze
0d5d2a9b55
Implement %f in parseDateTime()
...
Fixes : #48394
@cc OP
2023-04-05 09:13:18 +00:00
Anton Popov
b03acf5680
Merge branch 'master' into rework-map-functions
2023-04-04 23:35:12 +02:00
Arthur Passos
10b821fa2e
remove big input test as it's outdated
2023-04-04 15:44:14 -03:00
Kruglov Pavel
5f930aeb26
Merge pull request #48115 from save-my-heart/throw_non_parametric_function
...
throw exception while non-parametric functions having parameters
2023-04-04 12:05:34 +02:00
Vladimir C
35572321a1
Merge pull request #48207 from bigo-sg/map_from_maps
2023-04-04 11:12:05 +02:00
Robert Schulze
73ffdbe2f4
Minor fixups
2023-04-04 09:11:59 +00:00
Robert Schulze
a7c153f88c
replace{One/All}(): allow non-const pattern and replacement arguments
2023-04-04 08:26:28 +00:00
taiyang-li
3bd29f0aa9
fix exception message
2023-04-04 10:34:33 +08:00
Arthur Passos
22367f84e6
fix undefined mm_is_in_prepare
2023-04-03 18:26:30 -03:00
Arthur Passos
fa1fdf7573
style
2023-04-03 15:28:17 -03:00
Arthur Passos
c1bcfbc57d
extract configuration comparisons into meaningful methods
2023-04-03 15:25:18 -03:00
Arthur Passos
607b0c8880
Use different string writers strategies for escaping and non escaping
2023-04-03 15:16:06 -03:00
Arthur Passos
c7c96bfeab
refactor state handlers so writer comes from them
2023-04-03 14:19:15 -03:00
Arthur Passos
c80ba3d52e
unit tests passing
2023-04-03 13:48:58 -03:00
Arthur Passos
aee9ccb27a
validated output against main test case, performance is not the same as before, but still good
2023-04-03 12:45:29 -03:00
Anton Popov
531e888577
fix style check
2023-04-03 14:39:42 +00:00
Anton Popov
b3515c768b
Merge remote-tracking branch 'upstream/master' into HEAD
2023-04-03 14:11:04 +00:00
Anton Popov
6dde159227
add comments and docs
2023-04-03 13:43:11 +00:00
Kruglov Pavel
9e595c82fa
Merge pull request #47494 from KevinyhZou/enable_return_null_element_not_exist
...
Enable return null and complext type for JSON_VALUE function
2023-04-03 14:05:18 +02:00
Robert Schulze
8e4b0e5fba
Merge pull request #48332 from ClickHouse/rs/prefer-native-over-alias
...
Minor: Suggest ClickHouse-native function name over MySQL-compatibility alias
2023-04-03 09:32:16 +02:00
Robert Schulze
d7ee316380
Minor: Suggest ClickHouse-native function name over MySQL-compatibility alias
2023-04-03 07:28:31 +00:00
KevinyhZou
da4ff587af
review fix
2023-04-02 12:38:17 +08:00
KevinyhZou
7d59f36336
code style fix
2023-04-02 12:37:18 +08:00
KevinyhZou
ce5f4cf4ab
code review fix
2023-04-02 12:37:18 +08:00
KevinyhZou
0935ccf0e0
ci fix
2023-04-02 12:30:59 +08:00
KevinyhZou
2126199193
check style
2023-04-02 12:30:59 +08:00
KevinyhZou
e0a10dc62f
enable nullable return type
2023-04-02 12:30:59 +08:00
KevinyhZou
740a5ef777
enable return null and complext type
2023-04-02 12:29:12 +08:00
Robert Schulze
3315acd122
Merge pull request #48222 from ClickHouse/rs/no-default-format-string
...
parseDateTime[InJodaSyntax](): Require format argument
2023-04-01 16:59:33 +02:00
Alexander Tokmakov
48b23dd012
Fix race between DROP MatView and RESTART REPLICAS ( #47863 )
...
* fix race between drop mv and restart replicas
* unrelated: fix bad exception messages
* fix test
* fix
* fix
* fix
* fix
* fix test
* fix
* fix test
* Update 02437_drop_mv_restart_replicas.sh
* fix tests
2023-04-01 15:26:00 +03:00
Arthur Passos
e52a2982e0
fixed another stringwriter bug, where multi-row input would break because of prev_commit_offset=0
2023-03-31 15:01:42 -03:00
Alexander Gololobov
ae0707ba01
Remove unused error codes
2023-03-31 17:23:42 +02:00
Robert Schulze
9094772712
Replace manual checking by validateFunctionArgumentTypes()
2023-03-31 14:22:10 +00:00
Arthur Passos
0b7792f7b7
fix string writer ub, escape sequence parsing failure and make state machine fully functional (remove extra if statements)
2023-03-31 10:44:39 -03:00
Anton Popov
12c7992d36
Merge pull request #48118 from CurtizJ/optimize-mapUpdate
...
Optimize function `mapUpdate`
2023-03-31 15:03:15 +02:00
Nikolay Degterinsky
47ea27fd92
Fix
2023-03-31 02:57:55 +00:00
Anton Popov
1a6cdb3a6f
fix fuzzer
2023-03-31 02:20:17 +00:00
Alexey Milovidov
6e3ced86e9
Merge pull request #48220 from ClickHouse/rs/caseinsensitive-str_to_date
...
MySQL compatibility: Make str_to_date alias case-insensitive
2023-03-30 22:08:01 +03:00
Anton Popov
39b9d00373
fix tests
2023-03-30 18:56:40 +00:00
Anton Popov
4912de441a
add tests and documentation
2023-03-30 18:27:56 +00:00
Anton Popov
5a2587af87
fix cast from Map to named Tuple
2023-03-30 15:54:25 +00:00
Nikolay Degterinsky
c363b5820e
Merge pull request #47087 from evillique/decode_ulid
...
Add function ULIDStringToDateTime
2023-03-30 17:19:07 +02:00
Vasily Nemkov
89ebe61de8
Implemented writing to ColumnString directly via StringWriter
2023-03-30 15:21:22 +02:00
Robert Schulze
8b2fc8a40a
parseDateTime[InJodaSyntax](): Require format argument
...
Function parseDateTime[InJodaSyntax]() previously accepted an
(undocumented) default format string. The problem was that
1. there is no "natural" default format
2. MySQL str_to_date() (= the motivation for
parseDateTime[InJodaSyntax]()) also provides no default format.
--> get rid of the default format
2023-03-30 12:25:55 +00:00
Robert Schulze
2df32324af
MySQL compatibility: Make str_to_date alias case-insensitive
...
MySQL doesn't care about the case
2023-03-30 12:06:20 +00:00
taiyang-li
e3f4089f3b
fix bugs
2023-03-30 18:00:38 +08:00
Robert Schulze
8354f6d489
Merge branch 'master' into rs/m
2023-03-30 10:56:21 +02:00
Vasily Nemkov
31a8a7b863
Fixed unit-tests
2023-03-30 09:25:10 +02:00
Vasily Nemkov
4b7005b8b1
Changes discussed with Arthur
2023-03-30 09:24:41 +02:00