Commit a8d3a5e
refactor: split cast_to_type into cast_to_type and try_cast_to_type
Replace the try_cast bool flag with separate cast_to_type and
try_cast_to_type functions, matching upstream DataFusion and the
arrow_cast / arrow_try_cast pair. Also drop the redundant data_type
parametrization on test_arrow_try_cast_null_on_failure, since the
str-vs-pyarrow distinction is already covered by test_arrow_cast_variants.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 25cb8e2 commit a8d3a5e
3 files changed
Lines changed: 33 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
| 612 | + | |
| 613 | + | |
621 | 614 | | |
622 | 615 | | |
623 | 616 | | |
| |||
977 | 970 | | |
978 | 971 | | |
979 | 972 | | |
| 973 | + | |
980 | 974 | | |
981 | 975 | | |
982 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| |||
2988 | 2989 | | |
2989 | 2990 | | |
2990 | 2991 | | |
2991 | | - | |
| 2992 | + | |
2992 | 2993 | | |
2993 | 2994 | | |
2994 | 2995 | | |
2995 | 2996 | | |
2996 | | - | |
2997 | | - | |
| 2997 | + | |
| 2998 | + | |
2998 | 2999 | | |
2999 | 3000 | | |
3000 | 3001 | | |
| |||
3010 | 3011 | | |
3011 | 3012 | | |
3012 | 3013 | | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
3013 | 3027 | | |
| 3028 | + | |
| 3029 | + | |
3014 | 3030 | | |
3015 | 3031 | | |
3016 | | - | |
3017 | | - | |
| 3032 | + | |
| 3033 | + | |
3018 | 3034 | | |
3019 | 3035 | | |
3020 | 3036 | | |
3021 | 3037 | | |
3022 | 3038 | | |
3023 | | - | |
| 3039 | + | |
3024 | 3040 | | |
3025 | 3041 | | |
3026 | 3042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
1320 | | - | |
| 1319 | + | |
1321 | 1320 | | |
1322 | 1321 | | |
1323 | 1322 | | |
1324 | 1323 | | |
1325 | | - | |
| 1324 | + | |
1326 | 1325 | | |
1327 | 1326 | | |
1328 | 1327 | | |
| |||
1348 | 1347 | | |
1349 | 1348 | | |
1350 | 1349 | | |
1351 | | - | |
| 1350 | + | |
1352 | 1351 | | |
1353 | | - | |
1354 | | - | |
| 1352 | + | |
| 1353 | + | |
1355 | 1354 | | |
1356 | 1355 | | |
1357 | | - | |
1358 | | - | |
| 1356 | + | |
| 1357 | + | |
1359 | 1358 | | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | 1361 | | |
1363 | 1362 | | |
1364 | 1363 | | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
| 1364 | + | |
1368 | 1365 | | |
1369 | 1366 | | |
1370 | 1367 | | |
| |||
0 commit comments