()
| 2110 | |
| 2111 | |
| 2112 | def test_view(): |
| 2113 | # ARROW-5992 |
| 2114 | arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8()) |
| 2115 | expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary()) |
| 2116 | |
| 2117 | assert arr.view(pa.binary()).equals(expected) |
| 2118 | assert arr.view('binary').equals(expected) |
| 2119 | |
| 2120 | |
| 2121 | def test_unique_simple(): |