Skip to content

Commit 2c21d83

Browse files
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

File tree

‎adapter/orc/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ under the License.
130130
<dependency>
131131
<groupId>org.apache.hive</groupId>
132132
<artifactId>hive-storage-api</artifactId>
133-
<version>4.0.1</version>
133+
<version>4.1.0</version>
134134
<scope>test</scope>
135135
</dependency>
136136
</dependencies>

‎dataset/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ under the License.
216216
<dependency>
217217
<groupId>org.apache.hive</groupId>
218218
<artifactId>hive-storage-api</artifactId>
219-
<version>4.0.1</version>
219+
<version>4.1.0</version>
220220
<scope>test</scope>
221221
</dependency>
222222
<dependency>

0 commit comments

Comments
 (0)