Repository navigation
Conversation
…warehouse A code location's catalog sync listed relations and columns through information_schema, and every Snowflake connection checked its session schema through information_schema.schemata. Both need a running warehouse, so each sync cycle resumed it and kept it from suspending. The catalog page now uses the schema-scoped SHOW listings the build already uses when the adapter provides them, and schema_exists asks SHOW SCHEMAS, falling back to the information schema for names SHOW LIKE cannot express.
kvlonge
enabled auto-merge (squash)
November 11, 2026 14:04
Contributor
Author
|
Folded into #1419 so the location sync fixes share one CI run. The branch is kept. |
auto-merge was automatically disabled
November 11, 2026 17:03
Pull request was closed
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.
Why
A code location's background metadata sync woke a suspended Snowflake warehouse every cycle, even when nothing had changed. The catalog page listed relations and columns through
information_schema.tablesandinformation_schema.columns, and every Snowflake connection checked its session schema throughinformation_schema.schemata. All three need a running warehouse, so the warehouse never stayed suspended.Changes
SHOW TABLES,SHOW VIEWSandSHOW COLUMNS IN SCHEMA. Columns are matched by stored name. Other adapters read the catalog as before.schema_existsusesSHOW SCHEMAS LIKE … IN DATABASEand matches the name exactly, ignoring case. A missing database means the schema does not exist. With no known database, or a name containing a backslash, it keeps the information-schema query.LIKEwildcard neighbour, a missing database and the backslash fallback.Not covered here:
information_schema, which needs a running warehouse.DuckShop edge case: not applicable. This is adapter metadata reading.
Verification
make check-ci: passes.