Commit b627d30
Support pyarrow DataType in arrow_cast
Allow arrow_cast to accept a pyarrow DataType in addition to str and
Expr. The DataType is converted to its string representation before
being passed to DataFusion. Adds test coverage for the new input type.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a662e18 commit b627d30
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2634 | 2634 | | |
2635 | 2635 | | |
2636 | 2636 | | |
2637 | | - | |
| 2637 | + | |
2638 | 2638 | | |
2639 | 2639 | | |
2640 | | - | |
| 2640 | + | |
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
2650 | 2659 | | |
| 2660 | + | |
| 2661 | + | |
2651 | 2662 | | |
2652 | 2663 | | |
2653 | 2664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1302 | 1302 | | |
1303 | 1303 | | |
1304 | 1304 | | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1305 | 1318 | | |
1306 | 1319 | | |
1307 | 1320 | | |
| |||
0 commit comments