Skip to content

[SPARK-52822][BUILD] Upgrade Derby to 10.17.1.0 - #60065

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:dongjoon/derby-upgrade-9b7bf2
Closed

dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:dongjoon/derby-upgrade-9b7bf2

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to upgrade Apache Derby from 10.16.1.1 to 10.17.1.0 for Apache Spark 5.0.0.

Why are the changes needed?

Since Apache Spark 5.0.0 requires Java 21 or later (SPARK-60669), we can use Derby 10.17.x, which supports only Java 21 and later. Previously, we stayed on Derby 10.16.1.1 because 10.17.1.0 requires Java 21+.

Derby 10.17.1.0 brings the following fixes.

  • DERBY-7143 HarmonySerialBlob.getBinaryStream(long, long) makes it impossible to retrieve the last character of the Blob
  • DERBY-7144 MERGE INSERT failing when target has GENERATED IDENTITY column
  • DERBY-7147 LDAP injection vulnerability in LDAPAuthenticationImpl (CVE-2022-46337)
  • DERBY-7149 Make it possible to build and test Derby cleanly with JDK 20

In addition, 10.17.1.0 is the final release of Apache Derby because the Derby developers voted to retire the project on 2025-10-10.

Does this PR introduce any user-facing change?

No behavior change is expected. Only the bundled Derby jars (derby, derbyshared, derbytools) are upgraded.

How was this patch tested?

Pass the CIs.

In addition, I manually ran the test suites that use Derby on Java 21.

$ build/sbt -Phive -Phive-thriftserver \
  "core/testOnly *JdbcRDDSuite" \
  "sql/testOnly *DerbyTableCatalogSuite *JDBCSuite" \
  "hive/testOnly *HiveSharedStateSuite *HiveExternalCatalogSuite" \
  "hive-thriftserver/testOnly *SparkSQLEnvSuite *CliSuite"

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 5.5

@dongjoon-hyun
dongjoon-hyun marked this pull request as ready for review November 3, 2026 17:47
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you, @HyukjinKwon !

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

@dongjoon-hyun
dongjoon-hyun deleted the dongjoon/derby-upgrade-9b7bf2 branch November 3, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants