From a2f8805dea9bd25ee6b33ba600c380a3e6fafa9a Mon Sep 17 00:00:00 2001 From: panbingkun Date: Mon, 11 Nov 2024 08:22:55 -0800 Subject: [PATCH] [SPARK-50268][SQL][TESTS] Upgrade oracle jdbc driver to `ojdbc17:23.6.0.24.10` ### What changes were proposed in this pull request? The pr aims to upgrade oracle jdbc driver from `com.oracle.database.jdbc:ojdbc11:23.3.0.23.09` to `com.oracle.database.jdbc:ojdbc17:23.6.0.24.10`. ### Why are the changes needed? - The `oracle jdbc driver` currently used in Spark is `com.oracle.database.jdbc:ojdbc11`, it not for use with `JDK17`. However, currently our spark master is based on `JDK17`, `JDK21`. https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html image - The latest version has fixed some bugs, eg: https://download.oracle.com/otn-pub/otn_software/jdbc/23c/Bugs-fixed-in-23ai.txt?AuthParam=1731026016_7eb0ae07b2f23760042771371f0acc58 Bug 36540636 - MUST USE CHAR TYPE WHEN QUERYING COLLATION,EBCDIC AS VARCHAR2 INCOMPATIBLE WITH DB2 VARCHAR Bug 36113002 - TLS SSLCONTEXT CACHE FOR PERFORMANCE AND SESSION RESUMPTION BUG-36695211 - MAKE JDBC (OJDBC17) AND UCP (UCP17) COMPATIBLE WITH JAKARTA Bug 36967743 - JDBC DRIVER 23.5.0.24.07 - DOUBLE PRECISION ISSUE IN JDBC DRIVER Bug 36956128 - [SHARDING DRIVER]: MEMORY LEAKS OF T4CCONNECTION Bug 36939716 - JSON DV & PERF : MEMORY LEAK IN UPDATE OPERATION ON DUALITY VIEW WITH RETURNING CLAUSE Bug 36784906 - BROKEN BATCHED INSERT AFTER UPGRADE FROM JDBC 21.13 TO 23.4 Bug 36744346 - TRACEEVENTLISTENER.TRACECONTEXT JAVADOC FOR GETDATABASEOPERATION METHOD IS WRONG Bug 36476584 - CLIENT CONTEXT VALUES ARE RETURNED IN WRONG ORDER Bug 36962333 - UCP ConnectionLabelingCallback contract broken for shared pool ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #48798 from panbingkun/SPARK-50268. Authored-by: panbingkun Signed-off-by: Dongjoon Hyun --- connector/docker-integration-tests/pom.xml | 2 +- pom.xml | 4 ++-- sql/core/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/connector/docker-integration-tests/pom.xml b/connector/docker-integration-tests/pom.xml index 9003c2190be22..91d0c68c73158 100644 --- a/connector/docker-integration-tests/pom.xml +++ b/connector/docker-integration-tests/pom.xml @@ -98,7 +98,7 @@ com.oracle.database.jdbc - ojdbc11 + ojdbc17 test diff --git a/pom.xml b/pom.xml index 9009ac9c77481..4f995820540fd 100644 --- a/pom.xml +++ b/pom.xml @@ -331,7 +331,7 @@ 42.7.4 11.5.9.0 12.8.1.jre11 - 23.5.0.24.07 + 23.6.0.24.10 ${project.version} @@ -1344,7 +1344,7 @@ com.oracle.database.jdbc - ojdbc11 + ojdbc17 ${ojdbc11.version} test diff --git a/sql/core/pom.xml b/sql/core/pom.xml index 0a904e3c27465..47c9ca0ea7a1f 100644 --- a/sql/core/pom.xml +++ b/sql/core/pom.xml @@ -209,7 +209,7 @@ com.oracle.database.jdbc - ojdbc11 + ojdbc17 test