Commit d0a7273
committed
feat: consolidate warning helpers and update temporal function calls
- Collapsed warning helpers into a single function `_warn_if_expr_for_literal_arg` in `python/datafusion/functions/__init__.py`.
- Updated callers of temporal functions `_date_part` and `_date_trunc` in `python/datafusion/functions/__init__.py`.
- Modified the digest behavior test in `python/tests/test_functions.py` to use native method strings.
- Updated the encode/decode behavior test to use native "base64" in `python/tests/test_functions.py`.1 parent 529f05d commit d0a7273
2 files changed
Lines changed: 12 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 67 | | |
77 | 68 | | |
78 | 69 | | |
79 | 70 | | |
80 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
| |||
2733 | 2729 | | |
2734 | 2730 | | |
2735 | 2731 | | |
2736 | | - | |
2737 | | - | |
| 2732 | + | |
2738 | 2733 | | |
2739 | 2734 | | |
2740 | 2735 | | |
| |||
2770 | 2765 | | |
2771 | 2766 | | |
2772 | 2767 | | |
2773 | | - | |
2774 | | - | |
| 2768 | + | |
2775 | 2769 | | |
2776 | 2770 | | |
2777 | 2771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | | - | |
| 1017 | + | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
| 1605 | + | |
1606 | 1606 | | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
| 1607 | + | |
| 1608 | + | |
1611 | 1609 | | |
1612 | 1610 | | |
1613 | 1611 | | |
| |||
0 commit comments