[
https://issues.apache.org/jira/browse/FLINK-25162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17728383#comment-17728383
]
Chesnay Schepler commented on FLINK-25162:
------------------------------------------
The weird thing is that it _should_ fail. The class in question is only
contained in orc-core:nohive:1.5.6, but that dependency isn't on the compile
classpath because we exclude the orc-core dependencies from flink-orc.
So the question isn't really why this fails on Java 17, but why it works on
Java 8/11.
What's more, the hive connector uses orc 1.3.4, for which no nohive version of
the jar exists at all! The sql-connector-hive also doesn't bundle orc 1.5.6, so
I'm wondering if this code path works at all...
> Flink : Connectors : Hive fails with VectorizedRowBatch not found
> ------------------------------------------------------------------
>
> Key: FLINK-25162
> URL: https://issues.apache.org/jira/browse/FLINK-25162
> Project: Flink
> Issue Type: Sub-task
> Reporter: Sergey Nuyanzin
> Priority: Major
>
> While compiling with jdk17
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
> (default-compile) on project flink-connector-hive_2.12: Compilation failure
> [ERROR]
> flink/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/read/HiveInputFormat.java:[168,17]
> cannot access org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch
> [ERROR] class file for
> org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch not found
> [ERROR]
> [ERROR] -> [Help 1]
> [ERROR]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)