From d02a21fb0f8e4198880665eeeb8f470a73322864 Mon Sep 17 00:00:00 2001 From: Wei Guo Date: Mon, 26 Aug 2024 16:58:36 +0800 Subject: [PATCH] [SPARK-49314][BUILD][TESTS] Upgrade `h2` to 2.3.232, `postgresql` to 42.7.4 and `mssql` to 12.8.1.jre11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What changes were proposed in this pull request? This PR aims to upgrade `h2` to 2.3.232, `postgresql` to 42.7.4 and `mssql` to 12.8.1.jre11. ### Why are the changes needed? 1. For `h2`, there are some issues fixed in version 2.3.232(full release notes: https://www.h2database.com/html/changelog.html): - [Issue #3945](https://github.com/h2database/h2database/issues/3945): Column not found in correlated subquery, when referencing outer column from LEFT JOIN .. ON clause - [Issue #4097](https://github.com/h2database/h2database/issues/4097): StackOverflowException when using multiple SELECT statements in one query (2.3.230) - [Issue #3982](https://github.com/h2database/h2database/issues/3982): Potential issue when using ROUND - [Issue #3894](https://github.com/h2database/h2database/issues/3894): Race condition causing stale data in query last result cache - [Issue #4075](https://github.com/h2database/h2database/issues/4075): infinite loop in compact - [Issue #4091](https://github.com/h2database/h2database/issues/4091): Wrong case with linked table to postgresql - [Issue #4088](https://github.com/h2database/h2database/issues/4088): BadGrammarException when the same alias is used within two different CTEs 2. For `postgresql`, there are some issues fixed and improvements in version 42.7.4(full release notes: https://jdbc.postgresql.org/changelogs/2024-08-22-42.7.4-release/): - fix: PgInterval ignores case for represented interval string [PR #3344](https://github.com/pgjdbc/pgjdbc/pull/3344) - perf: Avoid extra copies when receiving int4 and int2 in PGStream [PR #3295](https://github.com/pgjdbc/pgjdbc/pull/3295) - fix: Add support for Infinity::numeric values in ResultSet.getObject [PR #3304](https://github.com/pgjdbc/pgjdbc/pull/3304) - fix: Ensure order of results for getDouble [PR #3301](https://github.com/pgjdbc/pgjdbc/pull/3301) - perf: Replace BufferedOutputStream with unsynchronized PgBufferedOutputStream, allow configuring different Java and SO_SNDBUF buffer sizes [PR #3248](https://github.com/pgjdbc/pgjdbc/pull/3248) - fix: Fix SSL tests [PR #3260](https://github.com/pgjdbc/pgjdbc/pull/3260) - fix: Support bytea in preferQueryMode=simple [PR #3243](https://github.com/pgjdbc/pgjdbc/pull/3243) - fix: Fix [Issue #3234](https://github.com/pgjdbc/pgjdbc/issues/3234) - Return -1 as update count for stored procedure calls [PR #3235](https://github.com/pgjdbc/pgjdbc/pull/3235) - fix: Fix [Issue #3224](https://github.com/pgjdbc/pgjdbc/issues/3224) - conversion for TIME ‘24:00’ to LocalTime breaks in binary-mode [PR #3225](https://github.com/pgjdbc/pgjdbc/pull/3225) 3. For `mssql`, there are some issues fixed in 12.8.1.jre11(full release notes: https://github.com/microsoft/mssql-jdbc/releases/tag/v12.8.1): - Adjusted DESTINATION_COL_METADATA_LOCK, in SQLServerBulkCopy, so that is properly released in all cases [PR #2492](https://github.com/microsoft/mssql-jdbc/pull/2492) - Reverted "Execute Stored Procedures Directly" feature, as well as subsequent changes related to the feature [PR #2493](https://github.com/microsoft/mssql-jdbc/pull/2493) - Changed driver behavior to allow prepared statement objects to be reused, preventing a "multiple queries are not allowed" error [PR #2494](https://github.com/microsoft/mssql-jdbc/pull/2494) ### 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 #47810 from wayneguow/ug_h2. Authored-by: Wei Guo Signed-off-by: Kent Yao --- pom.xml | 4 ++-- sql/connect/server/pom.xml | 2 +- sql/core/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 38311b68ac7b2..4717c44791869 100644 --- a/pom.xml +++ b/pom.xml @@ -325,9 +325,9 @@ 2.7.12 9.0.0 - 42.7.3 + 42.7.4 11.5.9.0 - 12.8.0.jre11 + 12.8.1.jre11 23.5.0.24.07 ${project.version} diff --git a/sql/connect/server/pom.xml b/sql/connect/server/pom.xml index 3afd0f2cbf07f..2e7c3f81aa1dc 100644 --- a/sql/connect/server/pom.xml +++ b/sql/connect/server/pom.xml @@ -243,7 +243,7 @@ com.h2database h2 - 2.3.230 + 2.3.232 test diff --git a/sql/core/pom.xml b/sql/core/pom.xml index 6ecc11745249a..9eb5decb3b515 100644 --- a/sql/core/pom.xml +++ b/sql/core/pom.xml @@ -167,7 +167,7 @@ com.h2database h2 - 2.3.230 + 2.3.232 test