
What happened
schema-guard, a tool by developer idk-arsh, checks AI-written SQL against a saved snapshot of real table and column names. In tests with Claude Haiku 4.5 and Sonnet 5, 0 of 24 files worked without it; 48 of 48 ran with it.
Why it matters
The snapshot stopped both models from inventing names that do not exist. Every one of the 48 files ran, so the wrong answers that remained were logic errors, not wrong names.
What to watch
The results come from a small, synthetic world with only 3 runs per cell, so the numbers hinge on a setup the author designed. Watch whether the snapshot readers for Snowflake and BigQuery get run against live accounts.
WHO IT HITSData and analytics engineers who let AI coding agents write SQL against a warehouse will see fewer failed runs and fewer broken dashboards from wrong column names. The team still needs one person with warehouse access to take the snapshot.
Summaries like this, every morning.
By signing up you agree to the Terms of Service and Privacy Policy.
The problem schema-guard targets is not that coding agents write bad SQL syntax, but that they write against a schema they assume is real. As the author puts it, an agent bases its query on a README, an old query, or a naming convention, and the failure shows up later in CI, in a dashboard, or at 2am. Snowflake's own developer blog ran a post on this in September 2026, which suggests the vendor sees the same pattern among its users.
The tool's approach is to keep a snapshot of the actual tables and columns, names and types only, inside the repo, and to check the agent's SQL against that snapshot before it runs. The snapshot is taken once by someone with warehouse access, so the agent itself never needs that access. The author reports a Databricks reader run live on a Free Edition workspace on 2026-10-04, returning 9 tables and 277 columns in under 30 seconds on a cold warehouse.
The author is openly cautious about the evidence. The test world is small and synthetic, the stale README was designed in, and there are only 3 runs per cell; two grader references were even added after reading runs. A one-line rule in a project file gets a similar result if the agent follows it, while the hook does not depend on that. Whether this holds in a real warehouse with years of schema drift is the open question, and the readers for Snowflake and BigQuery have not yet been run against live accounts.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
AWS CEO Matt Garman detailed AWS Greenlight ahead of re:Invent 2026, an automated reasoning service that mathe…
Amazon introduced Ergo at re:Invent, priced at $1 per million input tokens and $3 per million output tokens, a…

David Fincher confirmed using AI in postproduction on The Further Mis-Adventures of Cliff Booth to alter wigs…

Amazon released Ergo, an open-weight AI model it says is the most capable open-weight model on day one, and sa…

Meta revealed the Muse Charm costs $299 and can be ordered now by asking your Muse AI agent; it launches in Me…

Gray Swan's new Frontier Hazard Tracker found OpenAI and Anthropic models took the top seven spots on reward h…
