|
1 | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | 2 | // SPDX-FileCopyrightText: Copyright the Vortex contributors |
3 | 3 |
|
| 4 | +use vortex_array::ArrayEq; |
| 5 | +use vortex_array::Canonical; |
| 6 | +use vortex_array::EqMode; |
| 7 | +use vortex_array::IntoArray; |
| 8 | +use vortex_array::VortexSessionExecute; |
| 9 | +use vortex_array::arrays::PrimitiveArray; |
| 10 | +use vortex_array::validity::Validity; |
4 | 11 | use vortex_buffer::buffer; |
5 | 12 | use vortex_error::VortexResult; |
6 | 13 |
|
7 | | -use crate::Canonical; |
8 | | -use crate::IntoArray; |
9 | | -use crate::VortexSessionExecute; |
10 | | -use crate::arrays::PrimitiveArray; |
11 | | -use crate::arrays::SharedArray; |
| 14 | +use crate::arrays::shared::Shared; |
12 | 15 | use crate::arrays::shared::SharedArrayExt; |
13 | | -use crate::hash::ArrayEq; |
14 | | -use crate::hash::EqMode; |
15 | | -use crate::validity::Validity; |
16 | 16 |
|
17 | 17 | #[test] |
18 | 18 | fn shared_array_caches_on_canonicalize() -> VortexResult<()> { |
19 | 19 | let array = PrimitiveArray::new(buffer![1i32, 2, 3], Validity::NonNullable).into_array(); |
20 | | - let shared = SharedArray::new(array); |
| 20 | + let shared = Shared::new(array); |
21 | 21 |
|
22 | | - let session = crate::array_session(); |
| 22 | + let session = vortex_array::array_session(); |
23 | 23 | let mut ctx = session.create_execution_ctx(); |
24 | 24 |
|
25 | 25 | let first = shared.get_or_compute(|source| source.clone().execute::<Canonical>(&mut ctx))?; |
|
0 commit comments