Text-to-SQL systems fail most often on schema linking: mapping the words in a question to the right tables and columns. The authors of X-SQL observe that schema information plays a significant or even dominant role in text-to-SQL quality, and that feeding an entire enterprise schema to a model raises token cost and increases hallucination and errors X-SQL: Expert Schema Linking. Practitioners writing about production systems make the same point: without explicit schema linking, a model guesses, and on large schemas those guesses are wrong a large share of the time Text2SQL Accuracy best practices.
A schema card is the countermeasure. It is not the DDL. It is a hand-curated block of text listing the tables, the columns that matter, what each column means in business terms, and the join paths between them. In effect it is a retrieval index written in prose. Google's text-to-SQL engineering write-up gives a concrete example of why this matters: even an expert DBA could not query shoe sales correctly without knowing that cat_id2 = 'Footwear' in a pcat_extension table marks a product as a shoe Techniques for improving text-to-SQL. That fact belongs on the card.
The problem is maintenance. A card written by hand drifts the moment someone renames order_placed_at, drops ship_region, or introduces a second table with a status column. When a schema has many plausible distractors, such as revenue, net_revenue, recognized_revenue and revenue_usd, every irrelevant but believable column is a chance for the agent to pick wrong Schema Pruning for Data Agents. A manual review catches this once. A fixture catches it every time.
The fixture idea is the same one used in data validation generally: systematically check and clean data to prevent incorrect, incomplete or irrelevant data from entering a database, so that later analysis stays reliable Teradata on data validation. Here the "data" is the card text, and the validity check is whether it still answers the questions your users ask.



