Skip to Content
AI assistantsColumn meanings

Column meanings

Column names are abbreviations. amt_c is an integer to a database and “order total in cents, excluding tax” to a person, and an assistant that only sees the first will write plausible SQL that returns a number a hundred times too large.

Thunderduck keeps a description, a role and a unit for each column, serves them alongside the schema, and lets you correct them.

What an annotation holds

FieldWhat it is
descriptionOne sentence on what the column means
roleidentifier, dimension, measure, timestamp, text or unknown
unitcents, usd, seconds, bytes — where a number is meaningless without one
is_piiWhether the column holds personal data
join_candidatesColumns this one probably joins to, as {table, column} pairs
provenanceWhere the meaning came from — see below
staleThe table’s structure changed after the annotation was written

Provenance

The field an assistant should weigh most heavily.

ValueMeaning
inferredA model’s guess from the column names and types. Useful, and wrong often enough to be worth checking.
confirmedA person read the guess and agreed with it.
editedA person wrote the description themselves.

Inference will overwrite its own guesses on any later refresh. It will never overwrite confirmed or edited — once you have been through a column, it is yours.

When a table’s structure changes, annotations a person owns are marked stale rather than re-inferred. A column that gained a sibling has not necessarily changed meaning, and silently replacing your text on a schema tweak is the fastest way to make a semantic layer untrustworthy. The Tables page shows these as needs review, keeping the existing description.

What is sent for inference

Descriptions are inferred by Claude , and what it receives is bounded by an allowlist rather than by redaction:

  • the catalog type, the schema and table name
  • each column’s name and type
  • unique index definitions, as a hint at what identifies a row

No data values are sent — not a sample row, not a minimum or maximum, not a distinct count. The row count is not sent either, and is deliberately excluded from the change fingerprint so that a table merely growing does not trigger re-inference.

Only tables whose structure changed since the last pass are sent, so a refresh on an unchanged catalog costs nothing. Object-storage catalogs (s3, gcs, r2, azure) are skipped: their “tables” are files, with no schema to reason about.

Bring your own Anthropic key

The metadata above runs through Thunderduck’s own Anthropic account by default. Some companies consider their table and column names sensitive in their own right — not customer data, but still their own naming conventions, not something they want flowing through a shared account.

Set ANTHROPIC_API_KEY under Settings → Environment variables and every future inference for your account runs through your own Anthropic account and agreement instead. We verify the key works the moment you save it — a typo or a revoked key is rejected immediately, not discovered later as a quietly empty Tables page.

What’s sent is identical either way (the same allowlist above — schema only, never data values); this only changes whose account processes it. Your inferences also never enter the cross-tenant template cache every other company’s enrichment shares: nothing inferred through your key reaches another company, and nothing cached through another company’s key is ever served to you. If your key stops working later, enrichment is skipped for your account until it’s fixed — it never silently falls back to the shared key.

Reading them

Over MCP, from Claude or ChatGPT:

  • get_catalog_context returns the whole catalog at once: every visible table with its keys, columns and meanings, the declared joins between them (with cardinality), and any measures. It is the cheapest first read, and the brief says when it was capped.
  • describe_table returns the annotations inline with the schema, under each column’s semantics key.
  • get_table_semantics returns the meanings alone, for an assistant that already holds the schema.
  • The resource thunderduck://semantics/{catalog}/{schema}/{table} carries the same data for clients that browse resources instead of calling tools, and thunderduck://context/{catalog} is the catalog brief in the same form.

A column nobody has annotated simply has no semantics key.

In the console, Studio carries the same meanings where you write SQL: hover a table in the catalog tree for its columns, then hover a column for what it means, with its provenance. Tables shows a whole table’s meanings at once, and is where they are corrected.

join_candidates names are unqualified guesses, not resolved references: inference sees one table at a time, so it can suggest that theme_id joins themes.id without ever having been shown a themes table. Treat them as a place to look, and confirm with list_tables.

The catalog brief turns the candidates it can resolve into join_hints on the column, as a {table, column} pair naming a table you can read. Most catalogs declare no foreign keys — Iceberg above all — so without them a brief would show no way to join at all. A hint is always a guess, whatever the column’s provenance says, and carries no cardinality: use it to find the join, then check the rows rather than assuming one to one. A hint naming a table or column you cannot read is omitted, and so is one whose bare name matches more than one visible table.

Declared measures and value domains

Two more facts ride along when a catalog has them, because they change the SQL rather than the prose:

  • A measure is the declared definition of one number: its expression, the grain it is additive over, the filters its author already applied, and its unit. A brief that lists revenue without them invites a re-derivation that produces a different number under the same name — the failure that makes a metric worse than no metric.
  • A value domain is a column’s allowed values, with what any non-obvious one means. values_complete: true means the list is exhaustive, so IN/NOT IN may rely on it; false (or absent) means the list is only what has been observed, and a value missing from it is not impossible. A domain longer than the brief’s cap is reported as truncated, which also clears its completeness — a sample must never be used as an exhaustive filter.

dbt’s accepted_values tests are read as complete domains without being re-declared. A measure declared against one table carries the same fields as a reflected dbt metric; the difference is only where the row came from.

A measure is written with PUT /semantic/models/{catalog}/metrics/{name} and removed with DELETE on the same path. The table must be one you can read, the grain must name its columns, and the expression must be a fragment — a ; is refused. A dbt metric of the same name is replaced (a person outranks an import); a dbt-declared one cannot be deleted here, because the next sync would put it back.

A domain is saved with the column it belongs to, on the semantic schema batch save. That save leaves a stored domain untouched when the request omits it, so a page that has no domain editor cannot wipe one by accident; sending null (or an empty value list) clears it.

Correcting them

Inferred meanings are served as they are — nothing waits on your approval, and a catalog you never visit is still described to an assistant.

Tables in the console shows every column’s meaning with its provenance. Confirm records that the guess was right, Edit replaces the text and records that a person wrote it, and Confirm all signs off on a whole table at once. All three clear needs review.

Confirming is optional, and it is not busywork: it is the difference between an assistant treating a description as a hint and treating it as a fact. Editing matters more — a confirmed guess and a person’s own sentence are different claims, and only the second can say something the schema does not.

Data profiles (optional)

A description says what a column is for; a profile says what is in it. When your company turns on exploratory data analysis, each refresh also computes a small set of statistics per column: row and null counts, distinct count, minimum and maximum, mean and standard deviation, and — for a few safe columns — the most common values with their counts.

Profiles are off by default and turned on per company. They are collected from a bounded sample of the table rather than every row, currently at most 200,000 rows per table and 2,000,000 rows per company per refresh, and each query has a timeout so a large table cannot stall a refresh. BigQuery refreshes also cap bytes billed.

A profile is only ever shown for a column you can already read. It rides the field, so hiding a column removes its statistics with it; no statistic makes a hidden column observable. Profiles follow the catalog lifecycle: they are replaced on each refresh and deleted when their table or catalog is removed.

What is never collected, whatever the data looks like:

  • values for a column flagged as personal data;
  • values for an identifier — a declared key, or a name ending _id, _uuid, _key or _guid;
  • values for free text — unbounded TEXT/CLOB/BigQuery STRING, or a VARCHAR wider than 64 characters;
  • values for a column with more distinct values than the enum threshold.

The statistics themselves are still derived from customer data, so treat them as sensitive. They are never sent to Anthropic or any other model. Inference sees names, types and key definitions only — never a profile, a minimum, or a top value.

An operator can stop collection everywhere with the EDA_PROFILES_ENABLED deployment setting, independently of the per-company opt-in.

The semantic model page

Every catalog with table metadata has a read-only Model page (Catalogs → the catalog’s row → Model). It shows:

  • datasets and fields, with each field’s type, description and provenance;
  • relationships — declared foreign keys, mapped to dataset fields;
  • metrics — those a dbt project declares, and any declared against one table, with their expression and dependencies;
  • EDA badges — sampled, complete and truncated, plus coverage, null percentage, distinct count, range and last-profiled time.

The page renders the caller’s own view: a dataset your role cannot read, a hidden column, and any relationship or metric that depends on one are absent, not greyed out. The same document is available as YAML and JSON from the page’s export buttons.

An empty model is a real answer, not an error: the catalog may never have been refreshed, or your role may grant none of its tables.

Editing

Catalogs → Semantic schema (/semantics) is one page over every catalog’s merged semantic model, for fixing what inference guessed. Search covers names, descriptions, roles, units, provenance, relationships and metrics; filters cover catalog, role, provenance, PII and needs review.

Editing is batch-shaped: changed rows collect as drafts and one Save writes them in a single transaction. The whole batch is validated against your own RBAC-filtered tables before anything is written, so a column you cannot see is a 404 rather than a half-applied save. Each saved row is authoritative for its description, role, unit and PII flag — clearing a unit means the column has no unit, not “leave the old one”.

Saving sets provenance to edited (or confirmed, for a guess you accepted unchanged) and advances the row’s fingerprint to the table’s current shape. That last part matters: without it, every fresh edit would look stale to the next refresh and re-enter the review queue immediately. Join hints and dbt-declared metadata are left untouched by an edit. A value domain is left untouched when the edit omits it and cleared when the edit sends null, so a form without a domain field cannot erase one.

Entity graph and ontology

Catalogs → Entity graph (/relationships) draws one catalog’s tables left to right, referenced tables to the left of the tables that reference them, with pan, zoom, search and click-to-focus.

  • Declared joins — engine foreign keys and dbt relationships — draw solid and are always visible.
  • Inferred join hints draw dashed and stay behind a toggle, off by default. A hint becomes an edge only when exactly one table and column in the catalog match it; everything else is counted, never guessed. The model that inferred it saw one table at a time.
  • Tables no declared join touches are hidden with a count and a toggle.
  • The side panel states keys and columns, joins in both directions, and each join’s cardinality and optionality.

The Ontology tab on the same page states the same catalog as facts rather than suggestions: entity types with their properties (datatype, role, unit, PII, nullable, primary and unique keys), the declared relations that touch them, and the measures that depend on them. Inferred hints are excluded, and the toolbar reports how many were left out. A measure with no readable dataset is still listed — under “Measures without an entity” — rather than silently dropped.

Download JSON-LD writes <catalog>.ontology.jsonld: one @graph with an EntityType node per table, a Measure node per metric, relations typed with an @id target, and measures linked to entities by @id in both directions. It is for a semantic layer, a knowledge graph or an agent that needs the model as data rather than as a page.