@@ -92,11 +92,11 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
92
92
( Utf8View , Utf8View ) => {
93
93
let mod_str = args[ 0 ] . as_string_view ( ) ;
94
94
let match_str = args[ 1 ] . as_string_view ( ) ;
95
- let res =
96
- regexp_is_match :: < StringViewArray , StringViewArray , StringViewArray > (
97
- mod_str , match_str , None ,
98
- )
99
- . map_err ( |error| error ) ?;
95
+ let res = regexp_is_match :: <
96
+ StringViewArray ,
97
+ StringViewArray ,
98
+ GenericStringArray < i32 > ,
99
+ > ( mod_str , match_str , None ) ?;
100
100
101
101
Ok ( Arc :: new ( res) as ArrayRef )
102
102
}
@@ -106,9 +106,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
106
106
let res = regexp_is_match :: <
107
107
StringViewArray ,
108
108
GenericStringArray < i32 > ,
109
- StringViewArray ,
110
- > ( mod_str, match_str, None )
111
- . map_err ( |error| error) ?;
109
+ GenericStringArray < i32 > ,
110
+ > ( mod_str, match_str, None ) ?;
112
111
113
112
Ok ( Arc :: new ( res) as ArrayRef )
114
113
}
@@ -118,9 +117,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
118
117
let res = regexp_is_match :: <
119
118
StringViewArray ,
120
119
GenericStringArray < i64 > ,
121
- StringViewArray ,
122
- > ( mod_str, match_str, None )
123
- . map_err ( |error| error) ?;
120
+ GenericStringArray < i32 > ,
121
+ > ( mod_str, match_str, None ) ?;
124
122
125
123
Ok ( Arc :: new ( res) as ArrayRef )
126
124
}
@@ -130,9 +128,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
130
128
let res = regexp_is_match :: <
131
129
GenericStringArray < i32 > ,
132
130
StringViewArray ,
133
- StringViewArray ,
134
- > ( mod_str, match_str, None )
135
- . map_err ( |error| error) ?;
131
+ GenericStringArray < i32 > ,
132
+ > ( mod_str, match_str, None ) ?;
136
133
137
134
Ok ( Arc :: new ( res) as ArrayRef )
138
135
}
@@ -142,9 +139,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
142
139
let res = regexp_is_match :: <
143
140
GenericStringArray < i32 > ,
144
141
GenericStringArray < i32 > ,
145
- StringViewArray ,
146
- > ( mod_str, match_str, None )
147
- . map_err ( |error| error) ?;
142
+ GenericStringArray < i32 > ,
143
+ > ( mod_str, match_str, None ) ?;
148
144
149
145
Ok ( Arc :: new ( res) as ArrayRef )
150
146
}
@@ -154,9 +150,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
154
150
let res = regexp_is_match :: <
155
151
GenericStringArray < i32 > ,
156
152
GenericStringArray < i64 > ,
157
- StringViewArray ,
158
- > ( mod_str, match_str, None )
159
- . map_err ( |error| error) ?;
153
+ GenericStringArray < i32 > ,
154
+ > ( mod_str, match_str, None ) ?;
160
155
161
156
Ok ( Arc :: new ( res) as ArrayRef )
162
157
}
@@ -166,9 +161,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
166
161
let res = regexp_is_match :: <
167
162
GenericStringArray < i64 > ,
168
163
StringViewArray ,
169
- StringViewArray ,
170
- > ( mod_str, match_str, None )
171
- . map_err ( |error| error) ?;
164
+ GenericStringArray < i32 > ,
165
+ > ( mod_str, match_str, None ) ?;
172
166
173
167
Ok ( Arc :: new ( res) as ArrayRef )
174
168
}
@@ -178,9 +172,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
178
172
let res = regexp_is_match :: <
179
173
GenericStringArray < i64 > ,
180
174
GenericStringArray < i32 > ,
181
- StringViewArray ,
182
- > ( mod_str, match_str, None )
183
- . map_err ( |error| error) ?;
175
+ GenericStringArray < i32 > ,
176
+ > ( mod_str, match_str, None ) ?;
184
177
185
178
Ok ( Arc :: new ( res) as ArrayRef )
186
179
}
@@ -190,9 +183,8 @@ pub fn contains(args: &[ArrayRef]) -> Result<ArrayRef, DataFusionError> {
190
183
let res = regexp_is_match :: <
191
184
GenericStringArray < i64 > ,
192
185
GenericStringArray < i64 > ,
193
- StringViewArray ,
194
- > ( mod_str, match_str, None )
195
- . map_err ( |error| error) ?;
186
+ GenericStringArray < i32 > ,
187
+ > ( mod_str, match_str, None ) ?;
196
188
197
189
Ok ( Arc :: new ( res) as ArrayRef )
198
190
}
0 commit comments