Skip to content

Improve check connection performance for all JDBC-related DBs #12820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 24, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ public static void attemptSQLCreateAndDropTableOperations(final String outputSch
final NamingConventionTransformer namingResolver,
final SqlOperations sqlOps)
throws Exception {
// attempt to get metadata from the database as a cheap way of seeing if we can connect.
database.bufferedResultSetQuery(conn -> conn.getMetaData().getCatalogs(), JdbcUtils.getDefaultSourceOperations()::rowToJson);

// verify we have write permissions on the target schema by creating a table with a random name,
// then dropping that table
final String outputTableName = namingResolver.getIdentifier("_airbyte_connection_test_" + UUID.randomUUID().toString().replaceAll("-", ""));
Expand Down