()
| 2240 | |
| 2241 | |
| 2242 | def test_dictionary_encode_zero_length(): |
| 2243 | # User-facing experience of ARROW-7008 |
| 2244 | arr = pa.array([], type=pa.string()) |
| 2245 | encoded = arr.dictionary_encode() |
| 2246 | assert len(encoded.dictionary) == 0 |
| 2247 | encoded.validate(full=True) |
| 2248 | |
| 2249 | |
| 2250 | def test_dictionary_decode(): |