Skip to content

Commit 85e7d4e

Browse files
dfa1claude
andcommitted
build(deps): bump vortex-jni from 0.78.0 to 0.79.0
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 <noreply@anthropic.com>
1 parent 09abb9c commit 85e7d4e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

integration/src/test/java/io/github/dfa1/vortex/integration/JavaWritesRustReadsIntegrationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import org.apache.arrow.vector.IntVector;
4747
import org.apache.arrow.vector.TimeMilliVector;
4848
import org.apache.arrow.vector.TimeStampMilliVector;
49-
import org.apache.arrow.vector.VarCharVector;
49+
import org.apache.arrow.vector.ValueVector;
5050
import org.apache.arrow.vector.VectorSchemaRoot;
5151
import org.apache.arrow.vector.complex.ListVector;
5252
import org.apache.arrow.vector.ipc.ArrowReader;
@@ -289,7 +289,7 @@ private static String[] readStringColumn(Path file, String column) throws IOExce
289289
try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) {
290290
while (reader.loadNextBatch()) {
291291
VectorSchemaRoot root = reader.getVectorSchemaRoot();
292-
VarCharVector vec = (VarCharVector) root.getVector(column);
292+
ValueVector vec = root.getVector(column);
293293
for (int i = 0; i < root.getRowCount(); i++) {
294294
strings.add(vec.getObject(i).toString());
295295
}
@@ -1119,7 +1119,7 @@ void javaWriter_rustReader_masked_nullableUtf8(@TempDir Path tmp) throws IOExcep
11191119
try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) {
11201120
while (reader.loadNextBatch()) {
11211121
VectorSchemaRoot root = reader.getVectorSchemaRoot();
1122-
VarCharVector vec = (VarCharVector) root.getVector("s");
1122+
ValueVector vec = root.getVector("s");
11231123
for (int i = 0; i < root.getRowCount(); i++) {
11241124
values.add(vec.isNull(i) ? null : vec.getObject(i).toString());
11251125
}
@@ -1297,7 +1297,7 @@ void javaWriter_rustReader_zstd_nullableUtf8(@TempDir Path tmp) throws IOExcepti
12971297
try (ArrowReader reader = partition.scanArrow(ALLOCATOR)) {
12981298
while (reader.loadNextBatch()) {
12991299
VectorSchemaRoot root = reader.getVectorSchemaRoot();
1300-
VarCharVector vec = (VarCharVector) root.getVector("s");
1300+
ValueVector vec = root.getVector("s");
13011301
for (int i = 0; i < root.getRowCount(); i++) {
13021302
values.add(vec.isNull(i) ? null : vec.getObject(i).toString());
13031303
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<junit.version>6.1.2</junit.version>
7171
<assertj.version>3.27.7</assertj.version>
7272
<mockito.version>5.23.0</mockito.version>
73-
<vortex-jni.version>0.78.0</vortex-jni.version>
73+
<vortex-jni.version>0.79.0</vortex-jni.version>
7474
<arrow.version>19.0.0</arrow.version>
7575
<slf4j.version>2.0.18</slf4j.version>
7676
<!-- coverage -->

0 commit comments

Comments
 (0)