Repository navigation
Make the SQL JDBC JAR Multi-Release, and start beam-sql.sh without an uber JAR - #41872
ahmedabu98 wants to merge 2 commits into
Conversation
12f1acc to
ccc7d48
Compare
There was a problem hiding this comment.
📋 Review Summary
This PR makes beam-sdks-java-extensions-sql-jdbc a Multi-Release JAR (fixing Java 18+ InetAddressResolverProvider loading issues on plain classpaths while excluding conflicting versioned module-info.class descriptors) and updates scripts/beam-sql.sh to run directly from the local Maven repository classpath rather than building an uber JAR on first start. The implementation is well-reasoned, handles backwards compatibility with older non-Multi-Release JDBC JARs cleanly, and includes thorough verification.
🔍 General Feedback
- The approach to handling
dnsjava's versionedInetAddressResolverProviderfor previously released Beam versions via a tiny supplemental Multi-Release JAR at the tail of the classpath is clever and minimally invasive. - Using Java
@argfilesyntax and atomic cache file writes (mv "${CLASSPATH_FILE}.$$" "${CLASSPATH_FILE}") are solid practices for shell script reliability.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41872 +/- ##
============================================
- Coverage 58.88% 58.14% -0.74%
- Complexity 2334 2847 +513
============================================
Files 1136 1211 +75
Lines 171035 173609 +2574
Branches 1552 2330 +778
============================================
+ Hits 100714 100950 +236
- Misses 67769 69949 +2180
- Partials 2552 2710 +158
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Assigning reviewers: R: @damccorm for label java. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
ccc7d48 to
2ecad92
Compare
This PR makes the Beam SQL JDBC JAR Multi-Release, so host lookups work on Java 18+ when you use the JAR directly, for example as a JDBC driver.
beam-sql.shnow starts the shell from the classpath Maven resolves instead of building an uber JAR first, so the first start is much faster.--uber-jarkeeps the old behavior.