()
| 2279 | |
| 2280 | @pytest.mark.numpy |
| 2281 | def test_cast_time64_to_int(): |
| 2282 | arr = pa.array(np.array([0, 1, 2], dtype='int64'), |
| 2283 | type=pa.time64('us')) |
| 2284 | expected = pa.array([0, 1, 2], type='i8') |
| 2285 | |
| 2286 | result = arr.cast('i8') |
| 2287 | assert result.equals(expected) |
| 2288 | |
| 2289 | |
| 2290 | @pytest.mark.numpy |