Commit e6e50de
authored
### Rationale for this change
#36753 asked for this to be implemented now that a half-float library was available.
### What changes are included in this PR?
Pretty printing and diffing of HalfFloatArrays now displays floating values instead of uint16.
### Are these changes tested?
Yes, with tests in C++ and Python.
### Are there any user-facing changes?
Pretty-printing and diffing float16 will display as floating point and not uint16.
* GitHub Issue: #36753
Authored-by: Eric Dinse <293818+dinse@users.noreply.github.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 03520f1 commit e6e50de
File tree
6 files changed
+78
-10
lines changed- cpp/src/arrow
- array
- python/pyarrow
- tests
6 files changed
+78
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
630 | 639 | | |
631 | 640 | | |
632 | 641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
815 | 816 | | |
816 | 817 | | |
817 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
818 | 834 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | 242 | | |
249 | 243 | | |
250 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
333 | 368 | | |
334 | 369 | | |
335 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
571 | 573 | | |
572 | 574 | | |
573 | 575 | | |
| |||
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
582 | 592 | | |
583 | 593 | | |
584 | 594 | | |
| |||
1706 | 1716 | | |
1707 | 1717 | | |
1708 | 1718 | | |
1709 | | - | |
| 1719 | + | |
| 1720 | + | |
1710 | 1721 | | |
1711 | | - | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1712 | 1726 | | |
1713 | 1727 | | |
1714 | 1728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4459 | 4459 | | |
4460 | 4460 | | |
4461 | 4461 | | |
4462 | | - | |
4463 | | - | |
| 4462 | + | |
| 4463 | + | |
4464 | 4464 | | |
4465 | 4465 | | |
4466 | 4466 | | |
| |||
0 commit comments