()
| 986 | |
| 987 | |
| 988 | def test_map_scalar_with_empty_values(): |
| 989 | map_type = pa.struct( |
| 990 | [ |
| 991 | pa.field('x', pa.map_(pa.string(), pa.string())), |
| 992 | ] |
| 993 | ) |
| 994 | |
| 995 | v = {'x': {}} |
| 996 | s = pa.scalar(v, type=map_type) |
| 997 | |
| 998 | assert s.as_py(maps_as_pydicts="strict") == v |
| 999 | |
| 1000 | |
| 1001 | def test_arithmetic_dunders(): |