Getting Started as a Data Architect

Prev Next

As a data architect, you get the most out of Validatar by testing from metadata: connect every system your data passes through, let the catalog describe their tables, then write each check once and apply it to a whole layer. This page is the route, in the order most teams take it, with a link at each stop to the page that does the work.

Your warehouse has hundreds of tables, and any nightly load can drop rows, duplicate a key or change a column type without failing. A test per table doesn't scale, and nobody maintains it when the 50th table arrives. A template test that selects its tables from the catalog does both jobs: it covers the tables you have, and it picks up the next one on its own.

If you haven't run a test yet, start with Run Your First Test in 10 Minutes and Check That Row Counts Match Between Source and Target. Together they take about half an hour and make everything below concrete.

The example throughout is the one in the screenshots: the Wholesale Distribution System, a SQL Server database with 49 tables in schemas such as Sales, Purchasing and Warehouse, loads into the Enterprise Data Warehouse on Snowflake. The Warehouse Reconciliation project tests that load.

1. Connect every system in the path

Create one data source for each system the data passes through. Source-to-target testing needs both ends, so connect the source system as well as the warehouse, and add both to the project that will test them.

2. Ingest the catalog and keep it current

Templates select their tables from the catalog, so the catalog has to match the database before the tests run.

  1. Go to Settings > Data Sources, open the data source and click Schema Metadata.
  2. Click Refresh Now to ingest schemas, tables and columns.
  3. Click Set Refresh Schedule and schedule ingestion ahead of your test jobs, so new and changed tables are in the catalog when the tests run.

Details are in Ingesting Schema Metadata. To find your way around what was ingested, see Catalog Overview and Explore Tables and Columns in the Catalog.

See what changed in the schema

Ingestion records schema changes. Each run is listed under Ingestion History on the Schema Metadata page, and the Schemas / Tables / Columns column counts what changed. Click a run's Date Started to open the Metadata Ingestion History Log, which lists the inserted, updated and deleted schemas, tables and columns. In the Catalog, a table's Event History tab shows the same changes for that table, as events such as Column Added, Column Updated and Column Deleted.

Schema Metadata for the Wholesale Distribution System: Metadata Statistics with 49 tables and 3 views highlighted, and an ingestion run of 11 / 52 / 595

The Metadata Ingestion History Log for that run, on its Tables tab: 52 tables returned, 52 inserted, 0 updated and 0 deleted

3. Profile and describe what you ingested

  • Profile to learn what's in the tables before you decide what to test: row counts, null and distinct counts, value ranges. Run a profile set on a schedule, or, for a one-off run, select a table on a data source's Tables tab in the Catalog (or none, for every table) and click Run Profiles. Profile results can feed tests directly, and the standard profiles are listed in Data Profiles.
  • Record what your templates need on the tables and columns: which tables to reconcile and where their copies live, which columns form the business key. Templates read these values from the catalog, so a change in the catalog changes what the tests do without editing SQL. Primary keys declared in the database come in with ingestion. The Key-Based Reconciliation pack works exactly this way, from custom fields or from tags.
  • Auto-Document (Validatar AI, Validatar Cloud, beta) on a table's or column's Info tab drafts descriptions and custom field values for you to review.

4. Cover a layer with template tests

The usual path is to build and prove a standard test on one table, then click Convert to Template Test on it. When the test is linked to one table in the catalog, the new template starts with that table selected, and wherever the queries name that schema and table, Validatar swaps in {{schema.name}} and {{table.name}}. A target table with a different name, such as the warehouse's SALES_ORDERS for Sales.Orders, isn't swapped, so edit that query by hand. How templates work, with a worked example, is in Template Tests.

What decides the tables is the template's object list:

Source Use it when
Metadata Driven, Use Filters A rule describes the layer: every table in these schemas, every column with this custom field value. New tables that match join at the next materialize. Use this for a layer.
Metadata Driven, Select Objects You want a fixed list of tables or columns. This is also what quick tests use.
Metadata Script The list or extra values per table come from a query, for example a source-to-target mapping table
Import File A person maintains the list in a spreadsheet, with settings per row

On the demo, the template Wholesale Row Counts Match the Warehouse compares one pair of row count queries and creates 49 child tests, one per wholesale table. When the warehouse copy of Sales.Orders falls short, the child test Wholesale Row Counts Match the Warehouse - Sales.Orders fails on its own, with its own result and history, while the other tables report theirs.

The Child Tests tab of Wholesale Row Counts Match the Warehouse, 49 child tests, with the sales.orders child highlighted

Next: Create a Template Test, Select Tables and Columns for a Template Test (Metadata Driven), Generating Child Tests using a Metadata Script, Generating Child Tests from an Import File and Materialize Child Tests. Working examples to copy: Template Test Examples: Metadata Script and Template Test Examples: Import File.

Tip: In the Catalog, select tables on a data source's Tables tab, open the Add Test menu and click Create Template Test. Validatar creates a Metadata Driven template in the project and folder you choose, with those tables selected.

5. Reconcile source to target

Reconciliation works best as a ladder, each rung cheaper than the next and asked in order:

  1. Do the totals match? A row count per table. Check That Row Counts Match Between Source and Target builds one; the template above does all 49.
  2. Where don't they match? Counts per segment, such as per month or per region. On the demo, Wholesale Orders Reach the Warehouse by Month shows every month from May 2024 on missing from the warehouse and April 2024 hundreds of orders short, while earlier months are off by only a few orders each. That one result tells you the load stopped, and when.
  3. Which rows, and what changed? Key-level comparison of the rows themselves. See Compare Source and Target Data.

For the third rung across many tables, use the Key-Based Reconciliation pack. Its templates check that the two sides can be compared at all, then look for missing rows, extra rows and changed values, in that order, for every table you mark in the catalog. Start with Reconciling Source and Target with Key-Based Templates; the template-by-template reference is the Key-Based Reconciliation Test Pack.

6. Run it on a schedule

A job runs its steps in order: standard tests, template tests, whole folders, profile sets or other jobs. Give a template test step Materialize child tests before execution (or a folder step Materialize child tests) and a table added since the last run is tested on this one, with nobody adding a test. Then add a schedule on the job's Schedules tab, timed after the load and after the metadata refresh.

7. Watch trust scores

A trust score tells you how far to trust a table, from 0 to 5 stars. It combines the quality score, which is how well the table's tests pass weighted by each test's severity, and the coverage score, which is how many quality dimensions those tests cover. Schemas and data sources show the average of their tables. Every test whose metadata link to the table has Impacts Trust Score set counts toward it, so the links you accept when saving a test matter, and so do the severity and quality dimension you give it. See Understanding Trust Scores, Quality Dimensions and Severity Levels.

8. Run tests from your pipeline

The nightly schedule is a backstop. For a load you control, start the tests from the pipeline as soon as the load finishes, and fail the pipeline step when they fail. Create an API token on your user profile (User Tokens), call the REST API to run a job, and poll for the result.

9. Work with AI tools

  • Validatar AI (Validatar Cloud, beta; contact sales to enable). The chat in the app can create standard, template and quick tests, create and update data sources, create projects and folders, update custom metadata and run standard tests. It can't create jobs or schedules, and it can't materialize a template test. Every change it makes can be undone from the chat history. See Using the Validatar AI Chat Interface.
  • MCP server (Validatar Cloud and Validatar Server, 2026.1 and later). Outside AI tools such as Claude Code, GitHub Copilot, Cursor and Codex use the same tools as the chat, with an MCP-type token. See Connecting to the Validatar MCP Server and the MCP Tools Reference.
  • Validatar Agent Kits teach a coding agent to explore your catalog, turn a source-to-target mapping into a test plan, build template tests and package test packs from a folder on your machine. See Validatar Agent Kits.