Skip to content

Commit 4390970

Browse files
committed
more
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 18c4ebe commit 4390970

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

‎vortex-test/compat-gen/src/adapter.rs‎

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ use vortex::VortexSessionDefault;
1515
use vortex::array::ArrayRef;
1616
use vortex::array::MaskFuture;
1717
use vortex::array::expr::root;
18-
use vortex::editions::CORE_2026_08_2;
19-
use vortex::editions::EditionSessionExt;
2018
use vortex::file::OpenOptionsSessionExt;
2119
use vortex::file::WriteOptionsSessionExt;
2220
use vortex::io::session::RuntimeSessionExt;
@@ -36,18 +34,6 @@ fn runtime() -> VortexResult<Runtime> {
3634
Runtime::new().map_err(|e| vortex_err!("failed to create tokio runtime: {e}"))
3735
}
3836

39-
/// Session used to write fixtures.
40-
///
41-
/// Enables the draft `core2026.08.2` edition on top of the defaults so fixtures may pin
42-
/// `vortex.map` before it is frozen into a core edition.
43-
fn fixture_session() -> VortexResult<VortexSession> {
44-
let session = VortexSession::default();
45-
session
46-
.enable_edition(CORE_2026_08_2)
47-
.map_err(|e| vortex_err!("{e}"))?;
48-
Ok(session)
49-
}
50-
5137
/// Compute all statistics on every node in the array tree.
5238
///
5339
/// The flat layout writer does not compute stats itself — it only serializes stats already
@@ -83,10 +69,9 @@ pub fn write_compressed(
8369
strategy: Arc<dyn LayoutStrategy>,
8470
) -> VortexResult<()> {
8571
let stream = ArrayStreamAdapter::new(chunk.dtype().clone(), stream::iter([Ok(chunk)]));
86-
let session = fixture_session()?;
8772

88-
runtime()?.block_on(async move {
89-
let session = session.with_tokio();
73+
runtime()?.block_on(async {
74+
let session = VortexSession::default().with_tokio();
9075
let mut file = tokio::fs::File::create(path)
9176
.await
9277
.map_err(|e| vortex_err!("failed to create {}: {e}", path.display()))?;
@@ -105,7 +90,7 @@ pub fn write_compressed_to_bytes(
10590
chunk: ArrayRef,
10691
strategy: Arc<dyn LayoutStrategy>,
10792
) -> VortexResult<ByteBuffer> {
108-
write_compressed_to_bytes_with_session(&fixture_session()?, chunk, strategy)
93+
write_compressed_to_bytes_with_session(&VortexSession::default(), chunk, strategy)
10994
}
11095

11196
/// Write a `.vortex` file into memory using a caller-provided session and layout strategy,

0 commit comments

Comments
 (0)