|
5 | 5 |
|
6 | 6 | use std::path::Path; |
7 | 7 |
|
| 8 | +use vortex::VortexSessionDefault; |
8 | 9 | use vortex::array::arrays::StructArray; |
9 | | -use vortex::array::builders::{ArrayBuilder, DecimalBuilder, VarBinViewBuilder}; |
| 10 | +use vortex::array::builders::ArrayBuilder; |
| 11 | +use vortex::array::builders::DecimalBuilder; |
| 12 | +use vortex::array::builders::VarBinViewBuilder; |
10 | 13 | use vortex::array::validity::Validity; |
11 | | -use vortex::dtype::{DType, DecimalDType, Nullability}; |
| 14 | +use vortex::dtype::DType; |
| 15 | +use vortex::dtype::DecimalDType; |
| 16 | +use vortex::dtype::Nullability; |
12 | 17 | use vortex::file::WriteOptionsSessionExt; |
13 | | -use vortex::io::runtime::current::CurrentThreadRuntime; |
14 | 18 | use vortex::io::runtime::BlockingRuntime; |
| 19 | +use vortex::io::runtime::current::CurrentThreadRuntime; |
15 | 20 | use vortex::io::session::RuntimeSessionExt; |
16 | 21 | use vortex::session::VortexSession; |
17 | | -use vortex::VortexSessionDefault; |
18 | 22 |
|
19 | 23 | /// Generate a test dataset with the following small set of rows: |
20 | 24 | /// |
@@ -74,7 +78,8 @@ fn main() { |
74 | 78 | 10, |
75 | 79 | Validity::NonNullable, |
76 | 80 | ) |
77 | | - .expect("Could not create struct array"); |
| 81 | + .expect("Could not create struct array") |
| 82 | + .to_array_ref(); |
78 | 83 |
|
79 | 84 | // Save to file |
80 | 85 | let minimal_path = Path::new(env!("CARGO_MANIFEST_DIR")) |
|
0 commit comments