Commit 33e3681
clean: simplify Arrow device export internals
Cleanups from a review of the Arrow device export path, no behavior
change:
- Inline the single-caller list_layout_parts 5-tuple helper and the
export_list_layout_with_child indirection into export_list and
export_list_layout. ListChildExport itself stays: the take-based host
list-view rebuild wraps children in transient Dict encodings that the
pre-computed schema does not include, so the rebuilt-child arm must
keep canonicalizing; its doc now spells that out.
- Remove the dead end < offset wrap check in arrow_binary.cu: both
addends are u32 widened to u64, so the sum cannot wrap.
- Replace the panicking as_ptype on the dyn-dispatch cast target with
PType::try_from, matching the source-side check three lines up.
- Correct the export_binary rationale: cuDF's Arrow Device import
rejects both Binary and BinaryView today (arrow_to_cudf_type maps
neither), matching the e2e harness comment.
- Fix the misplaced doc comment on export_list_view, and document the
validity buffer padding contract on export_arrow_validity_buffer
(every path is backed by a 4-byte-padded, tail-zeroed allocation via
the device copy layer).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>1 parent a289c23 commit 33e3681
3 files changed
Lines changed: 32 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
| |||
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
682 | 689 | | |
683 | 690 | | |
684 | 691 | | |
| |||
788 | 795 | | |
789 | 796 | | |
790 | 797 | | |
791 | | - | |
| 798 | + | |
792 | 799 | | |
793 | 800 | | |
794 | 801 | | |
| |||
815 | 822 | | |
816 | 823 | | |
817 | 824 | | |
| 825 | + | |
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
821 | 829 | | |
822 | 830 | | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | 831 | | |
842 | 832 | | |
843 | 833 | | |
| |||
848 | 838 | | |
849 | 839 | | |
850 | 840 | | |
851 | | - | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
852 | 851 | | |
853 | 852 | | |
854 | 853 | | |
| |||
858 | 857 | | |
859 | 858 | | |
860 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
861 | 865 | | |
862 | 866 | | |
863 | 867 | | |
| |||
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | 898 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | 899 | | |
913 | 900 | | |
914 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments