<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Expectations on </title>
    <link>https://docs.justcat.it/reference/tests/expectations/</link>
    <description>Recent content in Expectations on </description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Wed, 19 Aug 2026 10:00:00 +0200</lastBuildDate><atom:link href="https://docs.justcat.it/reference/tests/expectations/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Introduction</title>
      <link>https://docs.justcat.it/reference/tests/expectations/introduction/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/introduction/</guid>
      <description>Every test definition — wherever it is stored — has an Expectation. CAT runs the test&amp;rsquo;s query (or queries), looks at what came back, and evaluates the expectation: the test is Passed when it holds and Failed when it does not. If something goes wrong before the expectation can be evaluated — a data source that does not exist, a statement the provider refuses, a timeout — the result is Error.</description>
    </item>
    
    <item>
      <title>Overview</title>
      <link>https://docs.justcat.it/reference/tests/expectations/overview/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/overview/</guid>
      <description>This is an overview of all implemented expectations, with a link to the detailed page of each. For what an Expectation is and why a test has one or two queries, see Introduction.
Expectation Queries Passes when Set is empty 1 the query returns no row Set is not empty 1 the query returns at least one row Set row count 1 the query returns exactly the number of rows you specify Sets match 2 the two queries return the same rows Contains — written as contains, first contains second or second contains first 2 one set holds every row of the other; the other may hold more Which one to use for which question, with examples, is on Which expectation when — and My expectation does not exist explains why five are enough.</description>
    </item>
    
    <item>
      <title>Set is empty</title>
      <link>https://docs.justcat.it/reference/tests/expectations/set-is-empty/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/set-is-empty/</guid>
      <description>Example #You expect the provided query does not return anything. For example, if you log errors into a table and you need an automated way to check no errors are being added:
Tests: - Suite: Smoke Tests Name: Table dbo.Errors is empty Data Source: DWH Query: SELECT * FROM dbo.[Errors] Expectation: set is empty Queries #One: Data source and Query (First data source and First query work too). A Second data source or Second query on the test is an error — the test ends with Error before anything runs.</description>
    </item>
    
    <item>
      <title>Set is not empty</title>
      <link>https://docs.justcat.it/reference/tests/expectations/set-is-not-empty/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/set-is-not-empty/</guid>
      <description>Example #A typical smoke test: after a release or a data load, a table must hold at least one row.
Tests: - Suite: Smoke Tests Name: Table Dimension.Customer is loaded Data Source: DWH Query: SELECT * FROM Dimension.Customer Expectation: set is not empty Queries #One: Data source and Query (First data source and First query work too). A Second data source or Second query on the test is an error — the test ends with Error before anything runs.</description>
    </item>
    
    <item>
      <title>Set row count</title>
      <link>https://docs.justcat.it/reference/tests/expectations/set-row-count/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/set-row-count/</guid>
      <description>Example #The table must hold data of all five departments:
Tests: - Name: Data of all departments are present Suite: Data quality checks Data source: HR Query: SELECT DISTINCT department_id FROM work_records Expectation: set row count Expected row count: 5 The expected number can also go into Second query — handy when the definitions live in a database table and you do not want a column that only one expectation reads:</description>
    </item>
    
    <item>
      <title>Sets match</title>
      <link>https://docs.justcat.it/reference/tests/expectations/sets-match/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/sets-match/</guid>
      <description>Sets match compares two sets from the same data source or from two different ones — Azure Databricks against a Power BI workspace, PostgreSQL against Snowflake. It is built for large volumes on modest hardware: CAT steps through both sorted sets row by row and never loads them whole.
Example #You may want to verify that all customers from your CRM system are also present in your analytical system:</description>
    </item>
    
    <item>
      <title>Contains</title>
      <link>https://docs.justcat.it/reference/tests/expectations/contains/</link>
      <pubDate>Tue, 25 Jan 2022 14:40:56 +0100</pubDate>
      
      <guid>https://docs.justcat.it/reference/tests/expectations/contains/</guid>
      <description>Example #In this example we check that all data from a MySQL source system are present in a staging table in SQL Server. The staging table is persistent and is expected to contain more rows than the source (those that were deleted from the source already, but are kept in staging). The goal is to check that every single row from the source is present in the staging and we are not missing any rows.</description>
    </item>
    
  </channel>
</rss>
