()
| 2346 | |
| 2347 | @pytest.mark.numpy |
| 2348 | def test_cast_date64_to_int(): |
| 2349 | arr = pa.array(np.array([0, 1, 2], dtype='int64'), |
| 2350 | type=pa.date64()) |
| 2351 | expected = pa.array([0, 1, 2], type='i8') |
| 2352 | |
| 2353 | result = arr.cast('i8') |
| 2354 | |
| 2355 | assert result.equals(expected) |
| 2356 | |
| 2357 | |
| 2358 | def test_date64_from_builtin_datetime(): |