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
Anton Popov
1a6cdb3a6f
fix fuzzer
2023-03-31 02:20:17 +00: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
Igor Nikonov
6733a85d25
Fixes
2023-03-28 20:26:21 +00:00
Anton Popov
8d22f7a2f3
fix crash with bad arguments
2023-03-28 18:03:15 +00:00
Igor Nikonov
259df04415
Merge remote-tracking branch 'origin/master' into decimal256-various
2023-03-28 13:36:53 +00:00
Anton Popov
f56609172d
fix style-check
2023-03-27 21:26:37 +00:00
Anton Popov
298de8daf0
remove outdated code for Map type
2023-03-27 18:31:43 +00:00
Anton Popov
87520e48e8
remove registration of function out of headers
2023-03-27 18:07:21 +00:00
Anton Popov
e84ae646b6
move functions to headers
2023-03-27 17:38:21 +00:00
Anton Popov
7165da1cc6
rework functions that work with Map type
2023-03-27 17:34:17 +00:00
Nikolay Degterinsky
585b7b9345
Better type check in arrayElement function
2023-03-24 23:36:45 +01:00
Nikolay Degterinsky
531068df16
Fix exception type in arrayElement ( #47909 )
2023-03-23 16:01:04 +01:00
Alexey Milovidov
aea421cc9b
Add a style check for unsafe code
2023-03-18 03:29:14 +01:00
Alexey Milovidov
2b3c42335a
Fix some strange code
2023-03-18 03:12:04 +01:00
Alexey Milovidov
399634a1bc
More tests
2023-03-15 00:38:46 +01:00
Alexey Milovidov
e074a154dd
Fix style
2023-03-14 22:47:22 +01:00
Alexey Milovidov
e952ecae8c
Add Decimal256 to a lot of places
2023-03-14 22:10:52 +01:00
Sema Checherinda
1260f6910f
Merge pull request #47398 from CheSema/additional-asserts
...
add checks for ptr
2023-03-10 12:32:51 +01:00
Sema Checherinda
7bf1b83414
add checks
2023-03-09 12:37:57 +01:00
Mike Kot
4bc443f3c7
initial solution
2023-03-06 19:35:00 +03:00
Yakov Olkhovskiy
f4a8b099de
allow IPv4 in range()
2023-02-27 21:36:21 +00:00
Robert Schulze
22d09caea2
SIZES_OF_ARRAYS_DOESN_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH
2023-02-27 08:31:40 +00:00
Kruglov Pavel
36870f0801
Merge pull request #46569 from ClickHouse/add-bug
...
Fix processing Const(LowCardinality) in arrayMap
2023-02-21 13:11:06 +01:00
avogar
1539f812b3
Fix processing Const(LowCardinality) in arrayMap
2023-02-20 13:48:52 +00:00
Yakov Olkhovskiy
d9bc4bcccb
Merge pull request #46296 from jh0x/feature-array-partial-sort
...
Add arrayPartialSort and arrayPartialReverseSort
2023-02-20 02:49:38 -05:00
Yakov Olkhovskiy
2b9ce319b8
remove unnecessary include
2023-02-19 08:37:51 -05:00
Joanna Hulboj
cae064822c
FIXUP: FunctionArrayMapped - Simpler arg passing for check/exec
2023-02-18 17:20:57 +00:00
Joanna Hulboj
c2f5331a2d
Revert "FIXUP: Into FunctionArrayMapped: Simplify the dispatch in case of positional params"
...
This reverts commit d48bdcc754
.
2023-02-18 12:54:52 +00:00
Joanna Hulboj
3771d97936
FIXUP: Unused error code
2023-02-17 07:40:54 +00:00
Joanna Hulboj
d48bdcc754
FIXUP: Into FunctionArrayMapped: Simplify the dispatch in case of positional params
2023-02-16 20:17:49 +00:00
Joanna Hulboj
8747e23dbb
FIXUP: PR comments
2023-02-16 20:17:49 +00:00
Joanna Hulboj
5e32e20abb
FIXUP: arrayPartialSort arg check and few tests
2023-02-16 17:59:12 +00:00
Joanna Hulboj
221e4942b2
FIXUP: check in FunctionArrayMapped refactor
2023-02-16 17:59:12 +00:00
Joanna Hulboj
4ee665b158
FIXUP: Missing ErrorCodes
2023-02-16 17:59:12 +00:00
Joanna Hulboj
7bb7ea6913
Added arrayPartialSort and arraySort functions
2023-02-16 17:59:12 +00:00
Joanna Hulboj
23d173a53c
Refactor FunctionArrayMapped to allow for a fixed number of extra positional arguments
2023-02-16 17:59:12 +00:00
Maksim Kita
d3b604de5a
FunctionToSubcolumnsPass mapContains map argument result type fix
2023-02-16 12:17:02 +01:00
Yakov Olkhovskiy
79d82a3587
add empty/notEmpty function support for IP types
2023-01-30 20:37:08 +00:00
Joanna Hulboj
df030a56f0
FIXUP: Remove use of legacy exceptions api
2023-01-27 21:27:09 +00:00
Joanna Hulboj
9a559b5475
FIXUP: More comments about shuffle
2023-01-27 20:07:56 +00:00
Joanna Hulboj
8791a44e01
FIXUP: Added info and test for materialized array
2023-01-27 20:07:56 +00:00
Joanna Hulboj
3b472eb2dd
FIXUP: Darwin compilation issue
2023-01-27 20:07:56 +00:00
Joanna Hulboj
e1d281206f
Clamp the limit for arrayPartialShuffle
2023-01-27 20:07:56 +00:00
Joanna Hulboj
b0ba8c02be
FIXUP: Darwin compilation issue
2023-01-27 20:07:55 +00:00
Joanna Hulboj
d378e453c1
FIXUP: fix in arrayPartialShuffle
2023-01-27 20:07:55 +00:00
Joanna Hulboj
a8b78abc54
Added arrayPartialShuffle function
2023-01-27 20:07:55 +00:00
Joanna Hulboj
09789b027f
FIXUP: PR comments
2023-01-27 20:07:55 +00:00
Joanna Hulboj
a65b2cf861
FIXUP: Simplify logic by using permute function
2023-01-27 20:07:55 +00:00
Joanna Hulboj
c09a4dd132
FIXUP: Docs into code
2023-01-27 20:07:55 +00:00
Joanna Hulboj
8d8d1bb887
FIXUP: make clang-tidy happier
2023-01-27 20:07:55 +00:00
Joanna Hulboj
01624e2f23
FIXUP: style
2023-01-27 20:07:55 +00:00
Joanna Hulboj
2355780737
Minor formatting
2023-01-27 20:07:55 +00:00
Joanna Hulboj
4adb6288eb
Add arrayShuffle function
2023-01-27 20:07:55 +00:00
Alexander Tokmakov
a584ad0eb1
forbid runtime strings
2023-01-26 10:52:47 +01:00
Alexander Tokmakov
414693feb2
fixes
2023-01-24 00:46:03 +01:00
Alexander Tokmakov
3f6594f4c6
forbid old ctor of Exception
2023-01-23 22:18:05 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Alexander Tokmakov
522686f78b
less empty patterns
2023-01-17 01:19:44 +01:00
Alexey Milovidov
13a045dce4
Fix bad code: postfix increment, multiple effects in one statement
2023-01-08 02:55:02 +01:00
Alexey Milovidov
56d8c4730e
Fix function range
2023-01-08 02:50:28 +01:00
Alexey Milovidov
e855d3519a
Merge branch 'master' into refactoring-ip-types
2023-01-02 21:58:53 +03:00
Alexey Milovidov
3a4d4703d6
Fix "too large allocation" message from MSan
2022-12-26 21:21:58 +01:00
Dmitry Novik
cff882d506
Merge remote-tracking branch 'origin/master' into refector-function-node
2022-12-22 21:34:29 +00:00
Vladimir C
9a38911d5d
Merge pull request #43239 from bigo-sg/array_join_support_map
2022-12-22 12:18:34 +01:00
Yakov Olkhovskiy
a8cb29da4b
Merge branch 'master' into refactoring-ip-types
2022-12-21 23:56:24 -05:00
Dmitry Novik
4793412887
Merge branch 'master' into refector-function-node
2022-12-20 18:26:19 +01:00
Sema Checherinda
7627786af7
Merge pull request #43733 from wineternity/issue_43333
...
Add support for signed arguments in range() #43333
2022-12-20 13:56:02 +01:00
vdimir
4c17903010
update getArrayJoinDataType/getArrayJoinColumn
2022-12-14 13:02:03 +00:00
taiyang-li
26b5a74b0c
finish debug
2022-12-14 11:28:54 +00:00
taiyang-li
2f03146941
wip
2022-12-14 11:28:50 +00:00
Dmitry Novik
3d2fccab87
Merge branch 'master' into refector-function-node
2022-12-12 21:36:39 +01:00
yuanyimeng
1147a41524
Add support for signed arguments in range() #43333
2022-12-10 23:48:24 +08:00
Yakov Olkhovskiy
0641066183
Merge branch 'master' into refactoring-ip-types
2022-12-08 11:12:05 -05: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
Dmitry Novik
2c70dbc76a
Refactor FunctionNode
2022-12-02 19:15:26 +00:00
Duc Canh Le
fa70e335db
minor fix
2022-11-21 10:53:54 +08:00
Duc Canh Le
84aea78d0f
fix array first / last or null with nullable column
2022-11-16 13:11:05 +08:00
Yakov Olkhovskiy
4d144be39c
replace domain IP types (IPv4, IPv6) with native
2022-11-14 14:17:17 +00:00
Anton Popov
e2ff7aa261
Merge pull request #42623 from CurtizJ/fix-bad-cast
...
Fix bad cast in `arrayElement` with `Map` with `Nullable` values and `Nullable` index
2022-10-25 14:59:52 +02:00
Anton Popov
b58ca49f05
fix bad cast in arrayElement with Map and Nullable index
2022-10-24 17:34:46 +00:00
Maksim Kita
75885ce2e1
Added Analyzer
2022-10-24 10:22:18 +02:00
Azat Khuzhin
4e76629aaf
Fixes for -Wshorten-64-to-32
...
- lots of static_cast
- add safe_cast
- types adjustments
- config
- IStorage::read/watch
- ...
- some TODO's (to convert types in future)
P.S. That was quite a journey...
v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Kruglov Pavel
3dc54272ed
Merge branch 'master' into improve-combinators
2022-09-26 13:03:32 +02:00
Kruglov Pavel
47f6f09ce0
Merge branch 'master' into improve-combinators
2022-09-19 14:31:12 +02:00
Alexey Milovidov
730655d4fd
Fix 8/9 of trash
2022-09-19 08:53:20 +02:00
Alexey Milovidov
91baedf03a
Fix 6/7 of trash
2022-09-19 08:53:20 +02:00
Alexey Milovidov
84f42e0874
Fix 3/4 of trash
2022-09-19 08:50:53 +02:00
avogar
0101cc2e56
Support complex combinators in window transform, arrayReduce*, initializeAggregation and Aggregate functons versionning
2022-09-16 19:07:36 +00:00
Alexey Milovidov
2aedd41023
Remove strange code ( #40195 )
...
* Remove strange code
* Even more code removal
* Fix style
* Remove even more code
* Simplify code by making it slower
* Attempt to do something
* Attempt to do something
* Well do something with this horrible trash
* Add a test
2022-09-12 16:29:23 +02:00
Alexey Milovidov
fd235919aa
Remove some methods
2022-09-10 05:04:40 +02:00
Alexey Milovidov
8a4bacc4b7
Update example
2022-08-28 00:30:14 +02:00
Alexey Milovidov
6139cc8f7a
Add Documentation to FunctionFactory
2022-08-27 22:06:57 +02:00
Alexey Milovidov
fcba079baa
Merge pull request #40572 from Avogar/fix-map-bug
...
Fix possible logical error in arrayElement function with Map
2022-08-25 20:17:22 +03:00
avogar
fa320f65f6
Fix possible logical error in arrayElement function with Map
2022-08-24 11:01:39 +00:00
Kruglov Pavel
860d0baa48
Better exception messages in FunctionArrayMapped
2022-08-24 12:28:44 +02:00
Duc Canh Le
272447c5dc
remove junk log
2022-08-14 16:19:09 +08:00
Duc Canh Le
71dd2a19fc
fix arrayDiff
2022-08-14 16:14:13 +08:00