Repository navigation
Warehouse Snowflake
The
snowflakereader crawls a database's schemas fromINFORMATION_SCHEMAand takes keys fromSHOW ... KEYS(catalog = database). Its queries are metadata-only but run on a virtual warehouse, so they cost a little compute; identifiers are kept upper-case as Snowflake stores them. Built from documented view shapes and tested against recorded fixtures; not yet validated against a live account.
Reader: snowflake. Catalog = database, schema = schema. Identifiers are stored exactly as Snowflake returns them: upper-case unless created quoted ("Order Items"). Extra: pip install "schemaguru[snowflake]" (snowflake-connector-python).
<db>.INFORMATION_SCHEMA.SCHEMATA / TABLES / COLUMNS (row count, bytes, LAST_ALTERED, clustering key, comments) and SHOW PRIMARY KEYS, SHOW UNIQUE KEYS, SHOW IMPORTED KEYS IN SCHEMA "<db>"."<schema>" for constraints.
A role with USAGE on the database and schemas and any privilege (SELECT, REFERENCES, ...) on the tables to be described: INFORMATION_SCHEMA and SHOW list only objects the role can see. USAGE on a warehouse for the INFORMATION_SCHEMA queries.
INFORMATION_SCHEMA queries run on the session's warehouse and consume compute credits (a small/XS warehouse is enough; auto-suspend keeps it cheap). SHOW commands run in cloud services and need no running warehouse. No bytes are billed, so bytes_billed stays unknown.
- The driver must use
qmarkbinding (snowflake.connector.paramstyle = "qmark"). - Result column names come back upper-case; the reader lower-cases all keys.
-
SHOW ... KEYSreturns the whole schema; the reader filters to the requested tables. Constraints are declared, never enforced (enforced=False). - A clustering key that is an expression (
LINEAR(TO_DATE(TS))) is left unknown; plain column lists becomeclustering. -
INFORMATION_SCHEMA.TABLESshows only the current database (give the readerdatabase=or set one on the session). Views report no row count. - Live test:
SCHEMAGURU_LIVE_SNOWFLAKE=1withSCHEMAGURU_SF_{ACCOUNT,USER,PASSWORD,WAREHOUSE,DATABASE,SCHEMA}.
- Catalog-and-Crawl
- Scale-and-Cost
- Concepts (names are never case-folded)
- Extending-CatalogReader
SchemaGuru is open source under the MIT License, Copyright (c) 2026 Rupak Chakraborty · Repository · Issues · This wiki is generated from docs/wiki/; edit it there, not here.
Start here
Components
- Catalog and Crawl
- Store
- Measurement
- Sampling
- Join Graph
- Path Search and Hub Guard
- Waypoint Rules
- Drafting
- PII and Sampling Policy
- Overlays
- Scoping
- Rendering
- Refresh and Drift
- Feedback and Guard
- Server
- Agent Integration
Using it
Warehouses
- BigQuery
- Snowflake
- Redshift
- Databricks
- PostgreSQL
- DuckDB
- ClickHouse
- SQL Server / Synapse
- Oracle
- Trino
- MySQL / MariaDB
Extending
- CatalogReader
- Store
- Retriever and Embedder
- TokenCounter
- LLMProvider
- PII Detector
- FailureClassifier
- FactKind
- Profile and Format
- ChangeClassifier
- JoinCandidateSource (planned)
- Authenticator
Project