Commit 4565b61
authored
apacheGH-45735: [C++] Broken tests for extract_regex compute funcion (apache#45900)
### Rationale for this change
I fix two broken tests of extract_regex and add the similar tests to extract_regex_span.
### What changes are included in this PR?
1. Modify the ResolveOutput Method for extract_regex and extract_regex_span compute functions to be able to accept non-utf8 regex.
2. Fix broken tests for extract_regex.
3. Add similar tests for extract_regex_span.
### Are these changes tested?
I run the relevant unit tests.
### Are there any user-facing changes?
No.
* GitHub Issue: apache#45735
Lead-authored-by: Antoine Pitrou <antoine@python.org>
Co-authored-by: arash andishgar <arashandishgar1@gmail.com>
Co-authored-by: Arash Andishgar <arashandishgar1@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>1 parent eaeb64b commit 4565b61
File tree
2 files changed
+64
-38
lines changed- cpp/src/arrow/compute/kernels
2 files changed
+64
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
2212 | | - | |
| 2212 | + | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | | - | |
2219 | | - | |
| 2218 | + | |
2220 | 2219 | | |
2221 | 2220 | | |
2222 | 2221 | | |
2223 | 2222 | | |
2224 | 2223 | | |
2225 | 2224 | | |
2226 | 2225 | | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | 2226 | | |
2235 | 2227 | | |
2236 | 2228 | | |
| |||
2240 | 2232 | | |
2241 | 2233 | | |
2242 | 2234 | | |
2243 | | - | |
| 2235 | + | |
2244 | 2236 | | |
2245 | 2237 | | |
2246 | 2238 | | |
2247 | 2239 | | |
2248 | 2240 | | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
2249 | 2248 | | |
2250 | | - | |
| 2249 | + | |
2251 | 2250 | | |
2252 | 2251 | | |
2253 | 2252 | | |
| |||
2359 | 2358 | | |
2360 | 2359 | | |
2361 | 2360 | | |
2362 | | - | |
2363 | | - | |
| 2361 | + | |
2364 | 2362 | | |
2365 | 2363 | | |
2366 | 2364 | | |
2367 | 2365 | | |
2368 | 2366 | | |
2369 | 2367 | | |
2370 | 2368 | | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | 2369 | | |
2376 | 2370 | | |
2377 | 2371 | | |
| |||
2474 | 2468 | | |
2475 | 2469 | | |
2476 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2477 | 2478 | | |
2478 | | - | |
| 2479 | + | |
| 2480 | + | |
2479 | 2481 | | |
2480 | 2482 | | |
2481 | 2483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | 317 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
326 | 338 | | |
327 | 339 | | |
328 | 340 | | |
| |||
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
374 | | - | |
375 | 386 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
386 | 410 | | |
387 | 411 | | |
388 | 412 | | |
| |||
0 commit comments