From ec53dec286da18450fdba439c5f3731cf7257c21 Mon Sep 17 00:00:00 2001 From: Davide Angelocola Date: Sun, 19 Jul 2026 10:22:56 +0200 Subject: [PATCH] build(deps): bump vortex-jni from 0.78.0 to 0.79.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.79.0 changed the Arrow vector type the JNI reference exports for Utf8 columns from VarCharVector to ViewVarCharVector (Arrow's Utf8View layout). JavaWritesRustReadsIntegrationTest hard-cast to VarCharVector at its three Arrow-read call sites, breaking every string-column interop test with a ClassCastException. Widen those call sites to the common ValueVector interface — getObject and isNull are both declared there, so no per-vector-type branching is needed. Verified full integration module (316 tests, 0 failures) and the specific string-column tests that were failing on ubuntu/macos CI. Co-Authored-By: Claude Sonnet 5 --- .../integration/JavaWritesRustReadsIntegrationTest.java | 8 ++++---- pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/integration/src/test/java/io/github/dfa1/vortex/integration/JavaWritesRustReadsIntegrationTest.java b/integration/src/test/java/io/github/dfa1/vortex/integration/JavaWritesRustReadsIntegrationTest.java index 498c7691..7b62a23d 100644 --- a/integration/src/test/java/io/github/dfa1/vortex/integration/JavaWritesRustReadsIntegrationTest.java +++ b/integration/src/test/java/io/github/dfa1/vortex/integration/JavaWritesRustReadsIntegrationTest.java @@ -46,7 +46,7 @@ import org.apache.arrow.vector.IntVector; import org.apache.arrow.vector.TimeMilliVector; import org.apache.arrow.vector.TimeStampMilliVector; -import org.apache.arrow.vector.VarCharVector; +import org.apache.arrow.vector.ValueVector; import org.apache.arrow.vector.VectorSchemaRoot; import org.apache.arrow.vector.complex.ListVector; import org.apache.arrow.vector.ipc.ArrowReader; @@ -289,7 +289,7 @@ private static String[] readStringColumn(Path file, String column) throws IOExce try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) { while (reader.loadNextBatch()) { VectorSchemaRoot root = reader.getVectorSchemaRoot(); - VarCharVector vec = (VarCharVector) root.getVector(column); + ValueVector vec = root.getVector(column); for (int i = 0; i < root.getRowCount(); i++) { strings.add(vec.getObject(i).toString()); } @@ -1119,7 +1119,7 @@ void javaWriter_rustReader_masked_nullableUtf8(@TempDir Path tmp) throws IOExcep try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) { while (reader.loadNextBatch()) { VectorSchemaRoot root = reader.getVectorSchemaRoot(); - VarCharVector vec = (VarCharVector) root.getVector("s"); + ValueVector vec = root.getVector("s"); for (int i = 0; i < root.getRowCount(); i++) { values.add(vec.isNull(i) ? null : vec.getObject(i).toString()); } @@ -1297,7 +1297,7 @@ void javaWriter_rustReader_zstd_nullableUtf8(@TempDir Path tmp) throws IOExcepti try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) { while (reader.loadNextBatch()) { VectorSchemaRoot root = reader.getVectorSchemaRoot(); - VarCharVector vec = (VarCharVector) root.getVector("s"); + ValueVector vec = root.getVector("s"); for (int i = 0; i < root.getRowCount(); i++) { values.add(vec.isNull(i) ? null : vec.getObject(i).toString()); } diff --git a/pom.xml b/pom.xml index 126c0f0a..dd492199 100644 --- a/pom.xml +++ b/pom.xml @@ -70,7 +70,7 @@ 6.1.2 3.27.7 5.23.0 - 0.78.0 + 0.79.0 19.0.0 2.0.18