Commit 398b388
feat: accept pyarrow DataType in arrow_try_cast
Mirrors arrow_cast: arrow_try_cast now accepts `pa.DataType` in addition
to `str` and `Expr`. Adds `Expr.try_cast(pa.DataType)` PyO3 binding for
the pyarrow-type routing path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 04979ea commit 398b388
3 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
897 | 919 | | |
898 | 920 | | |
899 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2934 | 2934 | | |
2935 | 2935 | | |
2936 | 2936 | | |
2937 | | - | |
| 2937 | + | |
2938 | 2938 | | |
2939 | 2939 | | |
2940 | 2940 | | |
2941 | 2941 | | |
2942 | | - | |
| 2942 | + | |
| 2943 | + | |
2943 | 2944 | | |
2944 | 2945 | | |
2945 | 2946 | | |
| |||
2949 | 2950 | | |
2950 | 2951 | | |
2951 | 2952 | | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
2952 | 2961 | | |
| 2962 | + | |
| 2963 | + | |
2953 | 2964 | | |
2954 | 2965 | | |
2955 | 2966 | | |
| |||
0 commit comments