()
| 1995 | |
| 1996 | |
| 1997 | def test_view(): |
| 1998 | # ARROW-5992 |
| 1999 | arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8()) |
| 2000 | expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary()) |
| 2001 | |
| 2002 | assert arr.view(pa.binary()).equals(expected) |
| 2003 | assert arr.view('binary').equals(expected) |
| 2004 | |
| 2005 | |
| 2006 | def test_unique_simple(): |