Commit 708cd4d
fix: guard with_metadata against empty dict and empty keys
Empty `metadata` dict now returns the input expression unchanged
(previously bubbled an opaque DataFusion error about minimum arg
count). Empty keys raise `ValueError` to match the docstring contract.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 398b388 commit 708cd4d
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3058 | 3058 | | |
3059 | 3059 | | |
3060 | 3060 | | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
3061 | 3064 | | |
3062 | 3065 | | |
3063 | 3066 | | |
| |||
3071 | 3074 | | |
3072 | 3075 | | |
3073 | 3076 | | |
3074 | | - | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
3075 | 3080 | | |
3076 | | - | |
3077 | | - | |
3078 | | - | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
3079 | 3087 | | |
3080 | 3088 | | |
3081 | 3089 | | |
| |||
0 commit comments