Repository navigation
Commit 2c21d83
authored
MINOR: Bump org.apache.hive:hive-storage-api from 4.0.1 to 4.1.0 (#1281)
Supersedes #1280.
Dependabot proposed bumping `org.apache.hive:hive-storage-api` to 4.2.1
in #1280, but that fails the RC `Binaries` job:
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:testCompile (default-testCompile) on project arrow-orc: Compilation failure
[ERROR] adapter/orc/src/test/java/org/apache/arrow/adapter/orc/OrcReaderTest.java:[34,44] cannot access BytesColumnVector
[ERROR] bad class file: hive-storage-api-4.2.1.jar(/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.class)
[ERROR] class file has wrong version 65.0, should be 61.0
```
Hive moved its compiler target from Java 17 to Java 21 in 4.2.0, so
4.2.x class files (major version 65) cannot be read by `javac --release
17`, which is what this project builds with
(`maven.compiler.release=17`).
| hive-storage-api | `maven.compiler.target` |
| --- | --- |
| 4.0.1 (current) | 17 |
| 4.1.0 (this PR) | 17 |
| 4.2.0 | 21 |
| 4.2.1 | 21 |
4.1.0 is the newest release still targeting Java 17, so bump to that
instead. Once the project raises its baseline to Java 21, 4.2.x becomes
viable.
Note that this only surfaces in the RC `Binaries` job:
`ci/scripts/test.sh` adds `adapter/orc` and `dataset` to the reactor
only when `ARROW_JAVA_JNI=ON`, and the Conda JNI jobs run with
`-DARROW_JAVA_JNI_ENABLE_ORC=OFF`.
### Verification
`mvn -Parrow-jni -pl adapter/orc -am test-compile` and the same for
`dataset` both succeed locally, including `OrcReaderTest`, the class
that fails on #1280.1 parent e0722cb commit 2c21d83
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments