Repository navigation
test(jdbc-v2): scope the getTables calls of two tests to one schema - #3511
Merged
Merged
Conversation
DatabaseMetaDataTest.testGetTables passed "system" as the catalog, which jdbc-v2 ignores, and StatementTest.testEmptyFormatConfigurationBehavior passed no schema. With the SHOW statements, getTables then sends one SHOW FULL TABLES per database, so both tests took minutes on the shared Cloud service. Pass the database each test checks as the schema pattern. Refs #3510 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
chernser
approved these changes
Dec 3, 2026
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.
Summary
Two jdbc-v2 tests called
getTableswithout a schema pattern, so with the SHOW statements they sent oneSHOW FULL TABLESper database on the server: about 8 minutes on the shared Cloud service (#3510).DatabaseMetaDataTest.testGetTables:getTables("system", null, "numbers", …)→getTables(null, "system", "numbers", …)."system"was in the catalog position, which jdbc-v2 ignores (it is a v1 leftover: theredatabaseTermdefaulted to catalog).StatementTest.testEmptyFormatConfigurationBehavior: schemanull→conn.getSchema(), the database where the test creates the table.Local server with 1,005 databases:
testGetTables, SHOW-statement variantstestEmptyFormatConfigurationBehaviorCloses #3510
Checklist
*DatabaseMetaData*TestandStatementTestpass locally (399 tests, 0 failures, 21 skipped). No driver change, so no CHANGELOG entry.🤖 Generated with Claude Code
Note
Low Risk
Test-only parameter fixes for JDBC metadata calls; no production driver behavior change.
Overview
Two jdbc-v2 integration tests now pass an explicit schema into
DatabaseMetaData.getTablesso metadata lookups hit one database instead of every database on the server.In
DatabaseMetaDataTest.testGetTables,"system"moves from the catalog argument (ignored in jdbc-v2) toschemaPattern:getTables(null, "system", "numbers", …).In
StatementTest.testEmptyFormatConfigurationBehavior, the schema argument changes fromnulltoconn.getSchema()when checking that the test table is visible via metadata.Same assertions; intended to fix very slow CI on multi-database hosts (#3510). No driver code changes.
Reviewed by Cursor Bugbot for commit 49e819e. Bugbot is set up for automated code reviews on this repo. Configure here.