()
| 1960 | |
| 1961 | |
| 1962 | def test_view(): |
| 1963 | # ARROW-5992 |
| 1964 | arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8()) |
| 1965 | expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary()) |
| 1966 | |
| 1967 | assert arr.view(pa.binary()).equals(expected) |
| 1968 | assert arr.view('binary').equals(expected) |
| 1969 | |
| 1970 | |
| 1971 | def test_unique_simple(): |