Commit 04979ea
refactor: collapse try_cast_to_type into cast_to_type kwarg
The previous commit exposed cast_to_type and try_cast_to_type as two
separate pyo3 bindings and unified them in the Python wrapper via a
try_cast kwarg. That left try_cast_to_type in datafusion._internal
without a matching public Python name, breaking
test_datafusion_missing_exports.
Move the dispatch into the rust binding: cast_to_type now takes a
try_cast kwarg and selects between functions::expr_fn::cast_to_type
and try_cast_to_type internally. Only one pyo3 binding is registered,
so the wrapper-coverage check passes and the Python entrypoint is
unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 152ef81 commit 04979ea
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
614 | 621 | | |
615 | 622 | | |
616 | 623 | | |
| |||
970 | 977 | | |
971 | 978 | | |
972 | 979 | | |
973 | | - | |
974 | 980 | | |
975 | 981 | | |
976 | 982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2982 | 2982 | | |
2983 | 2983 | | |
2984 | 2984 | | |
2985 | | - | |
2986 | | - | |
| 2985 | + | |
2987 | 2986 | | |
2988 | 2987 | | |
2989 | 2988 | | |
| |||
3005 | 3004 | | |
3006 | 3005 | | |
3007 | 3006 | | |
3008 | | - | |
3009 | | - | |
3010 | | - | |
| 3007 | + | |
3011 | 3008 | | |
3012 | 3009 | | |
3013 | 3010 | | |
| |||
0 commit comments