Commit 989ac03
authored
[Variant] Align cast logic for variant_get to cast kernel for numeric/bool types (#9563)
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->
- Closes #9564 .
# What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->
Align tests with cast kernel
# Are these changes tested?
Covered by the existing tests
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
If there are any breaking changes to public APIs, please call them out.
-->
Yes, changed the logic for
`Variant::asboolean/as_int8/as_int16/as_int32/as_int64/as_u8/as_u16/as_u32/as_u64/as_f16/as_f32/as_f641 parent 0936b38 commit 989ac03
File tree
7 files changed
+289
-228
lines changed- arrow-cast/src/cast
- parquet-variant-compute/src
- parquet-variant
- src
7 files changed
+289
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
2475 | 2476 | | |
2476 | 2477 | | |
2477 | 2478 | | |
2478 | | - | |
| 2479 | + | |
2479 | 2480 | | |
2480 | 2481 | | |
2481 | 2482 | | |
| |||
2485 | 2486 | | |
2486 | 2487 | | |
2487 | 2488 | | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
2488 | 2500 | | |
2489 | 2501 | | |
2490 | 2502 | | |
| |||
2494 | 2506 | | |
2495 | 2507 | | |
2496 | 2508 | | |
2497 | | - | |
| 2509 | + | |
2498 | 2510 | | |
2499 | 2511 | | |
2500 | 2512 | | |
| |||
2551 | 2563 | | |
2552 | 2564 | | |
2553 | 2565 | | |
2554 | | - | |
2555 | | - | |
2556 | 2566 | | |
2557 | | - | |
| 2567 | + | |
2558 | 2568 | | |
2559 | 2569 | | |
2560 | 2570 | | |
2561 | 2571 | | |
2562 | 2572 | | |
2563 | 2573 | | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
2564 | 2583 | | |
2565 | 2584 | | |
2566 | 2585 | | |
| |||
2586 | 2605 | | |
2587 | 2606 | | |
2588 | 2607 | | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
2592 | 2608 | | |
2593 | | - | |
| 2609 | + | |
2594 | 2610 | | |
2595 | 2611 | | |
2596 | 2612 | | |
| |||
2600 | 2616 | | |
2601 | 2617 | | |
2602 | 2618 | | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
2603 | 2633 | | |
2604 | 2634 | | |
2605 | 2635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 404 | + | |
416 | 405 | | |
417 | 406 | | |
418 | 407 | | |
419 | 408 | | |
420 | 409 | | |
421 | 410 | | |
422 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
423 | 436 | | |
424 | 437 | | |
425 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1288 | 1288 | | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | | - | |
| 1291 | + | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | | - | |
| 2511 | + | |
2512 | 2512 | | |
2513 | 2513 | | |
2514 | 2514 | | |
| |||
2529 | 2529 | | |
2530 | 2530 | | |
2531 | 2531 | | |
2532 | | - | |
| 2532 | + | |
2533 | 2533 | | |
2534 | 2534 | | |
2535 | | - | |
| 2535 | + | |
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
| |||
2553 | 2553 | | |
2554 | 2554 | | |
2555 | 2555 | | |
2556 | | - | |
| 2556 | + | |
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 149 | | |
154 | 150 | | |
155 | 151 | | |
| |||
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
0 commit comments