Use Google's BigQuery JDBC driver instead of the Simba driver - #2547
Merged
Merged
Conversation
…imba driver The webapi-bigquery profile now pulls com.google.cloud:google-cloud-bigquery-jdbc (Apache-2.0, shaded 'all' jar), so no manual driver download or local install is needed. Existing Simba-style connection strings (ProjectId, OAuthType, OAuthServiceAcctEmail, OAuthPvtKeyPath) are accepted unchanged.
p-hoffmann
added a commit
to OHDSI/trex
that referenced
this pull request
Sep 24, 2026
WebAPI 34cadca0 (OHDSI/WebAPI#2547) swapped the classpath-provided Simba driver for com.google.cloud:google-cloud-bigquery-jdbc, but it declares it in the `webapi-bigquery` profile. A profile is re-evaluated, not baked into the installed pom, so consuming WebAPI as a dependency never carries that driver through however the install was invoked — the wrapper module has to declare it, which is what this does (same coordinates, `all` classifier, runtime scope, transitive deps excluded because the shaded jar carries them). Without a driver on the image's classpath a BigQuery Source cannot connect: DataAccessConfig probes each supported driver with Class.forName and skips the ones that are absent, and a closed-world native image cannot pick one up from disk at runtime the way the servlet deployment could. Registering the driver class for reflection is what makes that Class.forName resolve. The shaded jar ships its own META-INF/native-image metadata for the gRPC/Netty/gax/OpenTelemetry stack it bundles, so native-image picks those hints up on its own; only the driver class needs a hand-written entry. Note this is the JDBC path WebAPI uses for a BigQuery Source. bao's datamart cache is unaffected: BigQuery is a native-scanner dialect there and goes through DuckDB's bigquery extension, not JDBC.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.