@@ -91,7 +91,7 @@ impl ScalarUDFImpl for OverlayFunc {
91
91
92
92
macro_rules! process_overlay {
93
93
// For the three-argument case
94
- ( $string_array: expr, $characters_array: expr, $pos_num: expr, $is_view : expr ) => { {
94
+ ( $string_array: expr, $characters_array: expr, $pos_num: expr) => { {
95
95
$string_array
96
96
. iter( )
97
97
. zip( $characters_array. iter( ) )
@@ -125,7 +125,7 @@ macro_rules! process_overlay {
125
125
} } ;
126
126
127
127
// For the four-argument case
128
- ( $string_array: expr, $characters_array: expr, $pos_num: expr, $len_num: expr, $is_view : expr ) => { {
128
+ ( $string_array: expr, $characters_array: expr, $pos_num: expr, $len_num: expr) => { {
129
129
$string_array
130
130
. iter( )
131
131
. zip( $characters_array. iter( ) )
@@ -181,7 +181,7 @@ pub fn string_overlay<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef>
181
181
let pos_num = as_int64_array ( & args[ 2 ] ) ?;
182
182
183
183
let result =
184
- process_overlay ! ( string_array, characters_array, pos_num, false ) ?;
184
+ process_overlay ! ( string_array, characters_array, pos_num) ?;
185
185
Ok ( Arc :: new ( result) as ArrayRef )
186
186
}
187
187
4 => {
@@ -194,8 +194,7 @@ pub fn string_overlay<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef>
194
194
string_array,
195
195
characters_array,
196
196
pos_num,
197
- len_num,
198
- false
197
+ len_num
199
198
) ?;
200
199
Ok ( Arc :: new ( result) as ArrayRef )
201
200
}
@@ -212,7 +211,7 @@ pub fn string_view_overlay<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<Arra
212
211
let characters_array = as_string_view_array ( & args[ 1 ] ) ?;
213
212
let pos_num = as_int64_array ( & args[ 2 ] ) ?;
214
213
215
- let result = process_overlay ! ( string_array, characters_array, pos_num, true ) ?;
214
+ let result = process_overlay ! ( string_array, characters_array, pos_num) ?;
216
215
Ok ( Arc :: new ( result) as ArrayRef )
217
216
}
218
217
4 => {
@@ -222,7 +221,7 @@ pub fn string_view_overlay<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<Arra
222
221
let len_num = as_int64_array ( & args[ 3 ] ) ?;
223
222
224
223
let result =
225
- process_overlay ! ( string_array, characters_array, pos_num, len_num, true ) ?;
224
+ process_overlay ! ( string_array, characters_array, pos_num, len_num) ?;
226
225
Ok ( Arc :: new ( result) as ArrayRef )
227
226
}
228
227
other => {
0 commit comments