Skip to content

MINOR: Bump org.apache.hive:hive-storage-api from 4.0.1 to 4.1.0 - #1281

Open
jbonofre wants to merge 1 commit into
apache:mainfrom
jbonofre:bump-hive-storage-api-4.1.0
Open

MINOR: Bump org.apache.hive:hive-storage-api from 4.0.1 to 4.1.0#1281
jbonofre wants to merge 1 commit into
apache:mainfrom
jbonofre:bump-hive-storage-api-4.1.0

Conversation

@jbonofre

Copy link
Copy Markdown
Member

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.

hive-storage-api 4.2.0 and later are compiled targeting Java 21
(class file major version 65), while this project builds with
maven.compiler.release=17 (major version 61). Using 4.2.x makes the
arrow-orc test compilation fail with:

  bad class file: hive-storage-api-4.2.1.jar(.../BytesColumnVector.class)
    class file has wrong version 65.0, should be 61.0

4.1.0 is the latest release still targeting Java 17, so bump to that
instead.
@github-actions

This comment has been minimized.

@jbonofre jbonofre added the dependencies Pull requests that update a dependency file label Aug 31, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant