[SPARK-47844][BUILD][3.4] Upgrade ORC to 1.8.7
### What changes were proposed in this pull request?
This PR aims to upgrade ORC to 1.8.7.
### Why are the changes needed?
To bring the latest bug fixes.
- https://orc.apache.org/news/2024/04/14/ORC-1.8.7/
- https://github.com/apache/orc/releases/tag/v1.8.7
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #46042 from dongjoon-hyun/orc187.
Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
diff --git a/dev/deps/spark-deps-hadoop-2-hive-2.3 b/dev/deps/spark-deps-hadoop-2-hive-2.3
index 1db8906..2875ee9 100644
--- a/dev/deps/spark-deps-hadoop-2-hive-2.3
+++ b/dev/deps/spark-deps-hadoop-2-hive-2.3
@@ -222,9 +222,9 @@
okhttp/3.12.12//okhttp-3.12.12.jar
okio/1.15.0//okio-1.15.0.jar
opencsv/2.3//opencsv-2.3.jar
-orc-core/1.8.6/shaded-protobuf/orc-core-1.8.6-shaded-protobuf.jar
-orc-mapreduce/1.8.6/shaded-protobuf/orc-mapreduce-1.8.6-shaded-protobuf.jar
-orc-shims/1.8.6//orc-shims-1.8.6.jar
+orc-core/1.8.7/shaded-protobuf/orc-core-1.8.7-shaded-protobuf.jar
+orc-mapreduce/1.8.7/shaded-protobuf/orc-mapreduce-1.8.7-shaded-protobuf.jar
+orc-shims/1.8.7//orc-shims-1.8.7.jar
oro/2.0.8//oro-2.0.8.jar
osgi-resource-locator/1.0.3//osgi-resource-locator-1.0.3.jar
paranamer/2.8//paranamer-2.8.jar
diff --git a/dev/deps/spark-deps-hadoop-3-hive-2.3 b/dev/deps/spark-deps-hadoop-3-hive-2.3
index 1dd10cc..ddabb07 100644
--- a/dev/deps/spark-deps-hadoop-3-hive-2.3
+++ b/dev/deps/spark-deps-hadoop-3-hive-2.3
@@ -209,9 +209,9 @@
opentracing-api/0.33.0//opentracing-api-0.33.0.jar
opentracing-noop/0.33.0//opentracing-noop-0.33.0.jar
opentracing-util/0.33.0//opentracing-util-0.33.0.jar
-orc-core/1.8.6/shaded-protobuf/orc-core-1.8.6-shaded-protobuf.jar
-orc-mapreduce/1.8.6/shaded-protobuf/orc-mapreduce-1.8.6-shaded-protobuf.jar
-orc-shims/1.8.6//orc-shims-1.8.6.jar
+orc-core/1.8.7/shaded-protobuf/orc-core-1.8.7-shaded-protobuf.jar
+orc-mapreduce/1.8.7/shaded-protobuf/orc-mapreduce-1.8.7-shaded-protobuf.jar
+orc-shims/1.8.7//orc-shims-1.8.7.jar
oro/2.0.8//oro-2.0.8.jar
osgi-resource-locator/1.0.3//osgi-resource-locator-1.0.3.jar
paranamer/2.8//paranamer-2.8.jar
diff --git a/pom.xml b/pom.xml
index 2f080db..6a21980 100644
--- a/pom.xml
+++ b/pom.xml
@@ -141,7 +141,7 @@
<!-- After 10.15.1.3, the minimum required version is JDK9 -->
<derby.version>10.14.2.0</derby.version>
<parquet.version>1.12.3</parquet.version>
- <orc.version>1.8.6</orc.version>
+ <orc.version>1.8.7</orc.version>
<orc.classifier>shaded-protobuf</orc.classifier>
<jetty.version>9.4.54.v20240208</jetty.version>
<jakartaservlet.version>4.0.3</jakartaservlet.version>