Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.
SQL data tests are built-in checks for the most common data quality rules. You choose a table, a column or expression, and the rule to enforce. Elementary generates the SQL for your warehouse, runs it on a schedule, and reports the rows that break the rule.They are cloud tests: you create and manage them in the Elementary UI, they run outside your dbt pipeline, and they don’t need a pull request or a dbt project. They work on any supported table in the environment, including tables that aren’t part of a dbt project.
SQL-based cloud tests read table data, so they need data access for the environment’s warehouse connection. Data access is enabled in one of two ways:
Elementary enables data access on the warehouse connection. Contact the Elementary team to turn it on.
For a rule that none of these types can express, such as a calculation or a check across several tables, use a custom SQL test.
How it works
The saved configuration is the test. On every run, Elementary generates the query for your warehouse from that configuration, runs it, and counts the failing rows. Improvements to the generated SQL apply to existing tests without editing them.Each run:
Scans the entire table, filtered by the optional where clause.
Counts the failing rows and stores a sample of them with the result.
Sets the result to Pass, Warning, Failure, or Error based on the test’s severity and thresholds.
Stores the exact query that ran with the result, so any past result can be reproduced.
Results appear with your other tests in test results, incidents, alerts, the Catalog, and test coverage.
SQL data tests read table data and use compute in your data warehouse. Every run scans the full table. On large tables, add a where clause to limit the scanned data and pick a schedule that matches how often the data changes. The preview shows the table size each run will scan.
Where the queries run
Elementary runs these queries in one of two ways, depending on how the environment’s warehouse connection is set up:
Elementary Cloud connection
Elementary Runtime
Where the query runs
Elementary Cloud connects to your warehouse
A service you host in your network connects to your warehouse
Warehouse credentials
The connection configured for the environment in Elementary
Stay in your environment, in the runtime configuration
What Elementary Cloud receives
Test status, failing-row count, and a row sample
Test status, failing-row count, and a row sample, within the limits you set locally
Setup
None beyond enabling data access for the connection
With Elementary Runtime, Elementary Cloud still prepares the SQL, schedules the test, and manages results and incidents, but the runtime validates and executes the query inside your network. When a runtime reports a warehouse connection as healthy, Elementary sends all test runs and previews for that connection through the runtime instead of connecting directly.The runtime also enforces its own local limits for query time, concurrency, and result size, and can limit or disable row samples entirely. See Local limits and What leaves your network.
Use a dedicated, read-only warehouse role for these tests, whichever way they run. It only needs to read the tables your tests query. See Database roles for examples per warehouse.
Create a SQL data test
1
Start a new test
Go to Test Configuration, click Add test, and choose Table test or Column test. You can also start from an asset in the Catalog.
2
Choose the table and the test type
Select one table. SQL data tests are added to one table at a time. In the test picker, filter on Elementary cloud and choose Uniqueness, Completeness, Validity, or Relationship.
SQL data tests in the test picker, with the Elementary cloud source filter selected
3
Configure the test
Choose the Tested field, either a column or a SQL expression, and fill in the fields of the test type. Optionally add a where clause.
4
Set severity, sampled rows, and cadence
Choose the severity and optional thresholds, how many failing rows to store with each result, and the test cadence. Add owners, tags, and a description.
5
Run the test
Click Run test in the Preview section to run the test against your warehouse. The preview shows the result status, the number of failed rows, a sample of them, and the size of the table each run will scan. You must run the preview after your last change before you can save the test.
6
Save
Submit the test. No pull request is required. Elementary runs the test right away and then on its schedule.
You can also ask the Elementary AI agent to recommend and create SQL data tests. The agent previews each test before it proposes the plan, and you review the plan before anything is created. The MCP server provides the same create and preview tools.
Configuration
These settings are shared by all SQL data test types. Each test type page lists its own fields.
Setting
Description
Default
Tested field
A Column of the table, or an Expression: a single SQL expression over the table’s columns, such as lower(email) or amount * quantity
—
Where clause
Optional SQL condition, without the WHERE keyword, to limit the scanned data or exclude rows, for example status = 'completed'
None
Severity
Use simple severity (Error or Warning), or Use conditional severity with thresholds on the number of failures. See Results
—
Sampled rows
Number of failing rows stored with each result, from 1 to 1000
Metadata used for alert routing, filtering, and context
—
Expressions and where clauses must be a single expression. They can’t contain subqueries, aggregate or window functions, *, or table-qualified column names such as t.amount.Scheduled runs time out after 5 minutes and return an Error result. Previews time out after 30 seconds.
Scheduling
Set the Test cadence to one of:
Every N hours, from 1 to 23
Daily at a time of day
Weekly on a day and time
Custom, with a cron expression
Times are in your account’s timezone. Tests can’t run more often than every 15 minutes.
Results
Every row the test returns is a failing row. Elementary compares the number of failing rows to the test’s Severity setting:
Severity setting
Result
Use simple severity (default)
Any failing row produces the selected severity: Error or Warning
Use conditional severity, with Return error if the number of failures >X
Failure when the failing-row count is greater than X
Use conditional severity, with Return warn if the number of failures >Y
Warning when the failing-row count is greater than Y
Use conditional severity, with both
Failure above X, otherwise Warning above Y, otherwise Pass. The warning threshold must be lower than the error threshold
A run that can’t complete, for example because the query timed out, a column no longer exists, or the warehouse role lacks permissions, gets the Error status with the reason. The test stays enabled and runs again on its next schedule.Each result shows the failing-row count and, when available, a sample of the failing rows.
Edit or delete a test
Open the test from test results or an incident and go to the Configuration tab to change its settings. The test type can’t be changed. Saving re-runs the test with the new configuration.To delete tests, select them on the Test Configuration page and use the delete option, or open a test result and click ... → Delete test. Every create, edit, and delete is recorded in the audit logs.
Alerts
SQL data test failures map to the Cloud data tests category in alert rules. In environments with data access, the category is selected by default on new rules and included in the default rule. Check existing rules if you want them to include SQL data test failures.
Supported warehouses
SQL data tests run on tables and other materialized assets in:
Snowflake
Databricks
Redshift
Postgres
Ephemeral models and assets without a table in the warehouse can’t be tested.
SQL data tests or dbt tests
Each SQL data test has a dbt equivalent. If your environment has both data access and a dbt project, see Cloud tests or dbt tests to choose where each check should live.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Elementary","colors":{"primary":"#FF20B8","light":"#FF20B8","dark":"#FF20B8"},"logo":{"light":"https://res.cloudinary.com/do5hrgokq/image/upload/v1764079214/Elementary_2025_Full_Color_Logo_mtdixp.png","dark":"https://res.cloudinary.com/do5hrgokq/image/upload/v1764079353/Elementary_2025_White_Logo_Pink_Mark_l85bke.png"},"favicon":"https://res.cloudinary.com/do5hrgokq/image/upload/v1764678729/faviconnew_ckysnt.png","appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#0F0513"}},"navbar":{"links":[],"primary":{"type":"button","label":"Join the Community","href":"https://join.slack.com/t/elementary-community/shared_invite/zt-3s3uv8znb-7eBuG~ApwOa637dpVFo9Yg"}},"footer":{"socials":{"website":"https://www.elementary-data.com","slack":"https://elementary-data.com/community"}},"search":{"prompt":"Search..."},"integrations":{"gtm":{"tagId":"GTM-WCKCG3D4"},"posthog":{"apiKey":"phc_56XBEzZmh02mGkadqLiYW51eECyYKWPyecVwkGdGUfg"},"telemetry":{"enabled":true}},"banner":{"content":"Not using dbt? You can now use Elementary too. Connect directly to your warehouse to monitor data quality. [Learn more →](/cloud/environments)","dismissible":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar-check","href":"https://meetings-eu1.hubspot.com/joost-boonzajer-flaes/intro-call-docs"},{"anchor":"Join Slack","icon":"slack","href":"https://elementary-data.com/community"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"elementary","hasAudioNarration":false,"actualSubdomain":"elementary","customDomains":["docs.elementary-data.com"],"gitSource":{"type":"github","owner":"elementary-data","repo":"elementary","deployBranch":"docs","contentDirectory":"docs","mountPath":"","label":""},"feedback":{"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b071442d5975395d1e7a3fe","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Elementary Cloud","count":143},{"language":"default","tag":"Integrations","count":71},{"language":"default","tag":"dbt Package and Tests","count":60},{"language":"default","tag":"Elementary OSS","count":42},{"language":"default","tag":"Anomaly Detection Tests","count":31},{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Guides","count":23},{"language":"default","tag":"Anomaly tests params","count":21},{"language":"default","tag":"Endpoints","count":20},{"language":"default","tag":"Python SDK","count":15}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiGyp8kv8JHgFVrJJLucXtAKPY.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiGyp8kv8JHgFVrJJLufntAKPY.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiGyp8kv8JHgFVrJJLucHtA.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* devanagari */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2');\n unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Poppins';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n.dark a[style*=\"text-decoration\"],.dark a[style*=\"underline\"]{text-decoration-color:#FF20B8!important}.dark a[href]{text-decoration-color:#FF20B8}.dark *{--mint-light: #FF20B8 !important}.dark [style*=\"#FE9356\"],.dark [style*=\"#fe9356\"],.dark [style*=\"rgb(254, 147, 86)\"],.dark [style*=\"rgb(254,147,86)\"]{color:#FF20B8!important;border-color:#FF20B8!important;background-color:rgba(255, 32, 184, 0.1)!important}.dark [style*=\"text-decoration-color\"][style*=\"#FE9356\"],.dark [style*=\"text-decoration-color\"][style*=\"#fe9356\"]{text-decoration-color:#FF20B8!important}html{scroll-padding-top:150px}body{font-family:'Poppins'!important}h1,h2,h3,h4,h5,h6{font-family:'Poppins'!important}.home__container{max-width:1366px;padding-inline:4rem;padding-block:72px;margin-inline:auto;width:100%}@media (max-width: 1024px){.home__container{padding-inline:3rem;padding-block:56px}}@media (max-width: 768px){.home__container{padding-inline:2rem;padding-block:48px}}@media (max-width: 480px){.home__container{padding-inline:1rem;padding-block:32px}}.home__theme-gray{background-color:#f5f2f3;color:#321200}.dark .home__theme-gray{background-color:#2e2e2e;color:#e0e0e0}.home__theme-purple{background-color:#000000;color:white}.dark .home__theme-purple{background-color:#EBE5E6;color:#000000}.home__theme-purple-dark{background-color:#091114;color:#f0eff3}.home__theme-pink{background-color:#FF20B8;color:white}.home__heading-lg{font-size:36px;line-height:125%;letter-spacing:-2%;font-weight:600}.home__heading-xl{font-size:48px;line-height:125%;letter-spacing:-2%;font-weight:600}.home__paragraph-lg{font-size:18px;line-height:140%}.home__paragraph-xl{font-size:20px;line-height:140%}.home__2col{display:grid;grid-template-columns:1fr 1fr;gap:40px 32px;width:100%;align-items:start}.home__2col.is-uneven{grid-template-columns:1fr 2fr}.home__3col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px 32px;width:100%;align-items:start}@media (max-width: 900px){.home__2col{grid-template-columns:1fr;gap:32px 0}.home__2col.is-uneven{grid-template-columns:1fr}.home__3col{display:grid;grid-template-columns:1fr 1fr}}@media (max-width: 520px){.home__3col{display:grid;grid-template-columns:1fr}}.padding-bottom-none{padding-bottom:0!important}.padding-top-none{padding-top:0!important}.home__button{display:inline-flex;flex-direction:row;align-items:center;gap:4px;font-weight:500;font-size:16px;color:#fff;background:#FF20B8;border:none;outline:none;cursor:pointer;text-decoration:none;border-radius:999px;padding:10px 20px;transition:background 0.2s, color 0.2s, border-color 0.2s}.home__button--white{color:#460064;background:#EBE5E6;border:1px solid #FF20B8}.home__button---tertiary{display:inline-flex;flex-direction:row;align-items:center;gap:4px;font-weight:500;font-size:16px;color:#7e7e7e;background:none;border:none;outline:none;cursor:pointer;text-decoration:none;border-radius:5px;padding:0;transition:background 0.2s;white-space:nowrap}.home__button---tertiary svg{width:24px;height:24px;display:block;background-color:#7e7e7e}.home__button---tertiary:hover,.home__button---tertiary:focus{background:#f3f3f3}.dark .home__button--white{background:#1e1e1e;color:#FF20B8;border-color:#FF20B8}.dark .home__button---tertiary{color:#b0b0b0}.dark .home__button---tertiary svg{background-color:#b0b0b0}.dark .home__button---tertiary:hover,.dark .home__button---tertiary:focus{background:#333}.home__feature-card{position:relative;border-radius:12px;width:100%;height:100%;background:#faf7f8;padding:20px;max-width:480px;transition:box-shadow 0.2s, transform 0.2s, padding 0.2s}.home__feature-card:hover{box-shadow:0 8px 8px rgba(30, 41, 59, 0.15);transform:translateY(-4px)}.home__feature-card__container{display:flex;flex-direction:column;gap:16px;align-items:flex-start;justify-content:flex-start;min-width:0;width:100%;height:100%;padding:0}.home__feature-card__header{width:100%;position:relative;display:flex;flex-direction:column;gap:6px;align-items:flex-start}.home__feature-card__header-content{width:100%;display:flex;flex-direction:row;gap:10px;align-items:flex-start}.home__feature-card__icon{width:24px;height:24px;display:flex;align-items:center;justify-content:flex-start;position:relative}.home__feature-card__svg{width:100%;height:100%;display:block}.home__feature-card__heading{font-weight:500;font-size:18px;color:#000;text-align:left;letter-spacing:-0.36px;justify-content:center;min-height:0;min-width:0;line-height:1.19;text-decoration:none;margin:0;display:flex;flex-direction:column}.home__feature-card__description-block{width:100%;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center}.home__feature-card__description{font-size:14px;color:#616161;text-align:left;line-height:1.4;min-height:0;min-width:0;flex-grow:1;padding-left:33px;margin:0;white-space:pre-wrap}.home__feature-card--coming-soon{cursor:default}.home__feature-card--coming-soon:hover{transform:none;box-shadow:0 8px 24px rgba(30, 41, 59, 0.12), 0 1.5px 6px rgba(30, 41, 59, 0.08)}.home__feature-card__coming-soon-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease;border-radius:12px;z-index:10}.home__feature-card--coming-soon:hover .home__feature-card__coming-soon-overlay{opacity:1;visibility:visible}.home__feature-card__coming-soon-message{background:#000;color:#fff;padding:12px 20px;border-radius:8px;font-size:14px;font-weight:600;letter-spacing:0.5px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.3);transform:translateY(-2px);transition:transform 0.2s ease}.home__feature-card__cloud-feature-tag{position:absolute;top:5px;right:5px;display:flex;align-items:center;gap:0;padding:4px 8px;border-radius:8px;background:rgba(255, 32, 184, 0.1);color:#FF20B8;font-size:12px;font-weight:700;letter-spacing:0.5px;cursor:pointer;transition:width 0.3s, background 0.3s, color 0.3s, border-color 0.3s;overflow:hidden;z-index:2;min-width:32px;width:35px;height:20px;border:1px solid rgba(255, 32, 184, 0.3);box-sizing:border-box;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.home__feature-card__cloud-feature-tag .cloud-feature-text{opacity:0;max-width:0;white-space:nowrap;transition:opacity 0.3s, max-width 0.3s;margin-left:0.5em}.home__feature-card__cloud-feature-tag:hover,.home__feature-card__cloud-feature-tag:focus{background:rgba(255, 32, 184, 0.1);color:#FF20B8;border-color:rgba(255, 32, 184, 0.3);width:130px}.home__feature-card__cloud-feature-tag:hover .cloud-feature-text,.home__feature-card__cloud-feature-tag:focus .cloud-feature-text{opacity:1;max-width:130px}.home__feature-card__cloud-feature-tag .cloud-feature-icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px}.dark .home__feature-card{background:#1e1e1e;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3)}.dark .home__feature-card:hover{box-shadow:0 8px 24px rgba(0, 0, 0, 0.4), 0 1.5px 6px rgba(0, 0, 0, 0.3)}.dark .home__feature-card__heading{color:#fff}.dark .home__feature-card__description{color:#b0b0b0}.dark .home__feature-card__icon svg{background-color:#b0b0b0}.dark .home__feature-card--coming-soon .home__feature-card__coming-soon-overlay{background:rgba(0, 0, 0, 0.8)}.dark .home__feature-card__cloud-feature-tag{background:#2d1b24;color:#FF20B8;border-color:#4a2635}.dark .home__feature-card__cloud-feature-tag:hover,.dark .home__feature-card__cloud-feature-tag:focus{background:#2d1b24;color:#FF20B8;border-color:#4a2635}.home__features-grid{display:grid;grid-template-columns:repeat(3, 1fr);gap:32px 24px;width:100%;margin:0 auto 40px auto;justify-items:stretch;align-items:stretch}@media (max-width: 1024px){.home__features-grid{grid-template-columns:repeat(2, 1fr)}}@media (max-width: 700px){.home__features-grid{grid-template-columns:1fr}}.home__feature-header__container{position:relative;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid #dcdcdc;padding-bottom:12px;margin-bottom:32px;gap:24px}.home__feature-header__heading-block{display:flex;flex-direction:column;justify-content:center}.home__feature-header__heading{font-weight:500;font-size:22.6px;color:#19071f;margin:0;line-height:normal;letter-spacing:-0.2px;white-space:pre-line}.home__feature-header__heading span{color:#FF20B8}.home__feature-header__button{display:flex;flex-direction:row;align-items:center;gap:4px;background:none;border:none;outline:none;cursor:pointer;text-decoration:none;border-radius:5px;padding:0;transition:background 0.2s}.home__feature-header__button-label{font-weight:500;font-size:16px;color:#7e7e7e;white-space:nowrap}.home__feature-header__button-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.home__feature-header__button-icon svg{background-color:#7e7e7e}@media (max-width: 748px){.home__feature-header__button{display:none}}.dark .home__feature-header__container{border-bottom-color:#444}.dark .home__feature-header__heading{color:#fff}.dark .home__feature-header__button-label{color:#b0b0b0}.dark .home__feature-header__button-icon svg{background-color:#b0b0b0}.home__hero-section{width:100%;background:#f5f2f3;color:#1f2129}.dark .home__hero-section{background:linear-gradient(to right, #1c1f26, #321C35, #1c1f26);color:white}.home__hero-layout{display:flex;justify-content:center;align-items:center}.home__hero-content{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;gap:64px}.home__hero-text-block{display:flex;flex-direction:column;align-items:start;text-align:left;gap:24px;max-width:512px}.home__hero-title{font-weight:700;font-size:36px;line-height:1.2;margin:0}.home__hero-subtitle{font-size:18px;margin:0;line-height:1.5}.home__hero-link{font-size:18px;text-decoration:underline;text-underline-position:from-font;text-decoration-thickness:2px;text-decoration-color:#FF20B8;margin-bottom:8px;display:inline-block}.home__hero-buttons{display:flex;flex-direction:row;gap:24px;margin-top:8px;justify-content:center;width:100%}.home__hero-btn{font-size:14px;font-weight:700;border-radius:999px;padding:14px 32px;text-decoration:none;display:inline-block;transition:background 0.2s, color 0.2s, border 0.2s;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center}.home__hero-btn--primary{background:#FF20B8;color:#fff;border:none}.home__hero-btn--primary:hover{background:#E01DA5}.home__hero-btn--secondary{background:transparent;color:#fff;background-color:#3c4051}.home__hero-btn--secondary:hover{background:#2d303d;color:#fff}.dark .home__hero-btn--secondary{background:transparent;color:#fff;border:2px solid #fff}.dark .home__hero-btn--secondary:hover{background:#EBE5E6;color:#000000}.home__hero-image-block{flex:1 1 0;display:flex;align-items:center;justify-content:center;min-width:0}.home__hero-image{max-width:100%;height:auto;max-height:423px;border-radius:12px}@media (max-width: 1024px){.home__hero-content{flex-direction:column;gap:32px;align-items:center}.home__hero-image-block{width:100%;justify-content:center}.home__hero-text-block{justify-content:center;align-items:center;text-align:center}}@media (max-width: 700px){.home__hero-section{padding:32px 0 16px 0}.home__hero_content{padding:0 1rem;align-items:center;justify-content:center}.home__hero-title{font-size:32px;text-align:center}.home__hero-subtitle{font-size:15px;text-align:center}.home__hero-btn{padding:8px 20px;font-size:13px}.home__hero-image-block{display:none}.home__hero-text-block{align-items:center;text-align:center}}.home__info-card{position:relative;border-radius:12px;width:100%;height:100%;padding:24px;display:block;text-decoration:none;transition:box-shadow 0.2s, transform 0.2s;background-color:white}.home__info-card:hover{box-shadow:0 8px 8px rgb(34, 31, 32, .1);transform:translateY(-2px)}.home__info-card__container{display:flex;flex-direction:column;gap:12px;width:100%}.home__info-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;margin-bottom:4px}.home__info-card__label{font-size:14px;font-weight:600;border-radius:6px;padding:2px 12px;display:inline-block;letter-spacing:0.5px;white-space:nowrap}.home__info-card__label--pink{background:#FF20B8;color:#fff}.home__info-card__label--gray{background:#f3f3f3;color:#808080}.home__info-card__arrow{display:flex;align-items:center;margin-left:8px}.home__info-card__title{font-size:16px;font-weight:600;color:#000;margin-bottom:2px}.home__info-card__description{font-size:14px;color:#616161;line-height:1.4}.home__info-card__container--horizontal{gap:0px}.dark .home__info-card{background:#1e1e1e;border:none}.dark .home__info-card:hover{box-shadow:0 8px 8px rgba(0, 0, 0, 0.15)}.dark .home__info-card__title{color:#fff}.dark .home__info-card__description{color:#b0b0b0}.dark .home__info-card__label--gray{background:#333;color:#b0b0b0}.home__integration{position:relative;width:60px;height:60px;background:#EBE5E6;border:1px solid #E8E8E8;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform 0.2s ease, z-index 0s linear 0.2s;z-index:0}.home__integration:hover{transform:translateY(-2px);z-index:100;transition-delay:0s}.home__integration__coming-soon{position:absolute;top:0;left:0;right:0;background-color:transparent;color:rgb(119, 119, 119);padding:0px 4px;border-radius:4px;font-size:8px;text-align:center;font-weight:500;opacity:1;transition:opacity 0.2s ease-in-out;pointer-events:none;z-index:10;white-space:nowrap}.home__integration__image{width:32px;height:32px;object-fit:contain}.home__integration__label{position:absolute;bottom:-35px;left:50%;transform:translateX(-50%);text-align:center;background:#000;color:#fff;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity 0.2s ease, visibility 0.2s ease;z-index:30}.home__integration:hover .home__integration__label{opacity:1;visibility:visible}.home__integration__label::before{content:'';position:absolute;top:-4px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid #000}.home__integrations-grid{display:grid;grid-template-columns:repeat(9, 1fr);gap:16px;justify-items:center;align-items:center;width:100%;max-width:1200px;margin:0 auto;position:relative;z-index:1}@media (max-width: 1024px){.home__integrations-grid{display:flex;flex-wrap:wrap}}.home__integrations-grid .link{z-index:auto!important}.home__integrations-heading{font-weight:500;font-size:16px;color:#7e7e7e;text-align:left;white-space:nowrap;margin:0 0 8px 0;padding-bottom:12px;border-bottom:1px solid #dedede;letter-spacing:0;line-height:normal;margin-bottom:24px;margin-top:32px}.dark .home__integration{background:#1e1e1e;border-color:#333}.dark .home__integration__label{background:#333;color:#fff}.dark .home__integration__label::before{border-bottom-color:#333}.dark .home__integration__image[data-invert-on-dark=\"true\"]{filter:invert(1)}.dark .home__integrations-heading{color:#b0b0b0;border-bottom-color:#444}.home__cta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;max-width:600px;margin:0 auto}.home__guides-header{margin-bottom:24px;display:flex;flex-direction:column;gap:8px;max-width:600px}.home__2col-content{display:flex;flex-direction:column;gap:24px;max-width:500px}.home__2col-content.is-centered{align-self:center}.home__guides-layout{display:flex;flex-direction:column;gap:4rem}.home__jump-navigation{width:100%;display:flex;justify-content:center;align-items:center}.home__jump-navigation-content{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:1472px;width:100%;gap:32px;padding:0 2rem}.home__jump-navigation-heading{font-weight:600;font-size:48px;color:#1f2129;text-align:center;margin:0;line-height:1.25;letter-spacing:-0.02em}.home__jump-navigation-links{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap}.home__jump-navigation-label{font-weight:500;font-size:16px;color:#7e7e7e;white-space:nowrap}.home__jump-navigation-link{font-weight:500;font-size:16px;color:#1f2129;text-decoration:none;padding:8px 16px;border-radius:8px;transition:all 0.2s ease;white-space:nowrap;border:1px solid transparent}.home__jump-navigation-link:hover{background:#1f2129;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(70, 0, 100, 0.2)}@media (max-width: 1024px){.home__jump-navigation{padding:40px 0}.home__jump-navigation-content{gap:24px}.home__jump-navigation-heading{font-size:32px}.home__jump-navigation-links{gap:10px}.home__jump-navigation-link{font-size:14px}}.dark .home__jump-navigation-heading{color:#fff}.dark .home__jump-navigation-label{color:#b0b0b0}.dark .home__jump-navigation-link{color:#FF20B8;border-color:transparent}.dark .home__jump-navigation-link:hover{background:#FF20B8;color:#000;box-shadow:0 4px 12px rgba(255, 32, 184, 0.3)}.home__mcp-image{border:1px;border-radius:0.75rem;overflow:hidden}.home__security{background:#f2eeef;display:flex;padding:1rem 0rem;justify-content:center;align-items:center;gap:2rem}.home__security-info-wrap{display:flex;align-items:center;gap:1rem}.home__security-icon{display:flex;width:3rem;height:3rem;padding:.5rem;justify-content:center;align-items:center;border-radius:.625rem;background:#FFF}.home__security-content-wrap{display:flex;flex-direction:column;align-items:flex-start}.home__security-heading{color:#1F2129;font-size:1rem;font-style:normal;font-weight:600;line-height:normal}.home__security-description{color:#575A74;font-size:.7602rem;font-style:normal;font-weight:500;line-height:normal}.home__security-separator{width:.0625rem;height:2.5rem;background:#EBE5E6}.home__security-link{display:flex;align-items:center;gap:.5rem;color:#FF24B6;font-size:.7602rem;font-weight:500}.dark .home__security{background:#2e2e2e}.dark .home__security-icon{background:#1e1e1e}.dark .home__security-heading{color:#fff}.dark .home__security-description{color:#b0b0b0}.dark .home__security-separator{background:#444}.dark .home__security-link{color:#FF20B8}@media (max-width: 620px){.home__security{flex-direction:column;gap:1.5rem;padding:1.5rem 1rem}.home__security-info-wrap{width:100%;justify-content:center}.home__security-separator{width:100%;height:0.0625rem}}"}]}
{"page":{"pagePath":"cloud/features/data-tests/sql-data-tests","slug":"/cloud/features/data-tests/sql-data-tests","pageMetadata":{"title":"SQL Data Tests","sidebarTitle":"Overview","description":"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.","badge":"Elementary Cloud","href":"/cloud/features/data-tests/sql-data-tests"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Note,OptimizedImage,Step,Steps,Table,Tip,Warning}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`SQL data tests are built-in checks for the most common data quality rules. You choose a table, a column or expression, and the rule to enforce. Elementary generates the SQL for your warehouse, runs it on a schedule, and reports the rows that break the rule.`}),`\n`,_jsxs(_components.p,{children:[`They are `,_jsx(_components.a,{href:`/cloud/features/data-tests/cloud-tests-overview`,children:`cloud tests`}),`: you create and manage them in the Elementary UI, they run outside your dbt pipeline, and they don’t need a pull request or a dbt project. They work on any supported table in the environment, including tables that aren’t part of a dbt project.`]}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[`SQL-based cloud tests read table data, so they need `,_jsx(_components.strong,{children:`data access`}),` for the environment’s warehouse connection. Data access is enabled in one of two ways:`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Elementary enables data access on the warehouse connection. Contact the Elementary team to turn it on.`}),`\n`,_jsxs(_components.li,{children:[`You connect an `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime`,children:`Elementary Runtime`}),` to the warehouse connection.`]}),`\n`]}),_jsx(_components.p,{children:`Until data access is available, these tests are hidden from the test catalog.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`test-types`,children:`Test types`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Test`}),_jsx(_components.th,{children:`What it checks`}),_jsx(_components.th,{children:`Fails on`}),_jsx(_components.th,{children:`Quality dimension`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/cloud/features/data-tests/sql-data-tests/uniqueness`,children:`Uniqueness`})}),_jsx(_components.td,{children:`Values that should not repeat`}),_jsx(_components.td,{children:`Each value that appears more than once`}),_jsx(_components.td,{children:`Uniqueness`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/cloud/features/data-tests/sql-data-tests/completeness`,children:`Completeness`})}),_jsx(_components.td,{children:`Required values are present`}),_jsx(_components.td,{children:`Each row whose value is null, empty, or zero`}),_jsx(_components.td,{children:`Completeness`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/cloud/features/data-tests/sql-data-tests/validity`,children:`Validity`})}),_jsx(_components.td,{children:`Values match an allow list, deny list, range, regex, or length rule`}),_jsx(_components.td,{children:`Each row whose value breaks the rule`}),_jsx(_components.td,{children:`Validity`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`/cloud/features/data-tests/sql-data-tests/relationship`,children:`Relationship`})}),_jsx(_components.td,{children:`Values exist in another table`}),_jsx(_components.td,{children:`Each row whose value has no match in the target table`}),_jsx(_components.td,{children:`Consistency`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Results count toward the `,_jsx(_components.a,{href:`/cloud/features/collaboration-and-communication/data-quality-dimensions`,children:`data quality dimension`}),` shown for each test type.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`For a rule that none of these types can express, such as a calculation or a check across several tables, use a `,_jsx(_components.a,{href:`/cloud/features/data-tests/custom-sql-tests`,children:`custom SQL test`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(_components.p,{children:`The saved configuration is the test. On every run, Elementary generates the query for your warehouse from that configuration, runs it, and counts the failing rows. Improvements to the generated SQL apply to existing tests without editing them.`}),`\n`,_jsx(_components.p,{children:`Each run:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Scans the `,_jsx(_components.strong,{children:`entire table`}),`, filtered by the optional `,_jsx(_components.code,{children:`where`}),` clause.`]}),`\n`,_jsx(_components.li,{children:`Counts the failing rows and stores a sample of them with the result.`}),`\n`,_jsxs(_components.li,{children:[`Sets the result to `,_jsx(_components.strong,{children:`Pass`}),`, `,_jsx(_components.strong,{children:`Warning`}),`, `,_jsx(_components.strong,{children:`Failure`}),`, or `,_jsx(_components.strong,{children:`Error`}),` based on the test’s severity and thresholds.`]}),`\n`,_jsx(_components.li,{children:`Stores the exact query that ran with the result, so any past result can be reproduced.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Results appear with your other tests in test results, incidents, alerts, the Catalog, and `,_jsx(_components.a,{href:`/cloud/features/data-tests/test-coverage-screen`,children:`test coverage`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`SQL data tests read table data and use compute in your data warehouse. Every run scans the full table. On large tables, add a `,_jsx(_components.code,{children:`where`}),` clause to limit the scanned data and pick a schedule that matches how often the data changes. The preview shows the table size each run will scan.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`where-the-queries-run`,children:`Where the queries run`}),`\n`,_jsx(_components.p,{children:`Elementary runs these queries in one of two ways, depending on how the environment’s warehouse connection is set up:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Elementary Cloud connection`}),_jsx(_components.th,{children:`Elementary Runtime`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Where the query runs`}),_jsx(_components.td,{children:`Elementary Cloud connects to your warehouse`}),_jsx(_components.td,{children:`A service you host in your network connects to your warehouse`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Warehouse credentials`}),_jsx(_components.td,{children:`The connection configured for the environment in Elementary`}),_jsx(_components.td,{children:`Stay in your environment, in the runtime configuration`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`What Elementary Cloud receives`}),_jsx(_components.td,{children:`Test status, failing-row count, and a row sample`}),_jsx(_components.td,{children:`Test status, failing-row count, and a row sample, within the limits you set locally`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Setup`}),_jsx(_components.td,{children:`None beyond enabling data access for the connection`}),_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/cloud/features/elementary-runtime/deployment`,children:`Deploy`}),` and `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime/configuration`,children:`configure`}),` the runtime`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime`,children:`Elementary Runtime`}),`, Elementary Cloud still prepares the SQL, schedules the test, and manages results and incidents, but the runtime validates and executes the query inside your network. When a runtime reports a warehouse connection as healthy, Elementary sends all test runs and previews for that connection through the runtime instead of connecting directly.`]}),`\n`,_jsxs(_components.p,{children:[`The runtime also enforces its own local limits for query time, concurrency, and result size, and can limit or disable row samples entirely. See `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime/configuration#local-limits`,children:`Local limits`}),` and `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime/configuration#what-leaves-your-network`,children:`What leaves your network`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use a dedicated, read-only warehouse role for these tests, whichever way they run. It only needs to read the tables your tests query. See `,_jsx(_components.a,{href:`/cloud/features/elementary-runtime/configuration#database-roles`,children:`Database roles`}),` for examples per warehouse.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-sql-data-test`,children:`Create a SQL data test`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Start a new test`,children:_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Test Configuration`}),`, click `,_jsx(_components.strong,{children:`Add test`}),`, and choose `,_jsx(_components.strong,{children:`Table test`}),` or `,_jsx(_components.strong,{children:`Column test`}),`. You can also start from an asset in the Catalog.`]})}),_jsxs(Step,{title:`Choose the table and the test type`,children:[_jsxs(_components.p,{children:[`Select one table. SQL data tests are added to one table at a time. In the test picker, filter on `,_jsx(_components.strong,{children:`Elementary cloud`}),` and choose `,_jsx(_components.strong,{children:`Uniqueness`}),`, `,_jsx(_components.strong,{children:`Completeness`}),`, `,_jsx(_components.strong,{children:`Validity`}),`, or `,_jsx(_components.strong,{children:`Relationship`}),`.`]}),_jsx(Frame,{caption:`SQL data tests in the test picker, with the Elementary cloud source filter selected`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=375ffb45394d8ce3562757ed237148ce`,alt:`Add test page with the Elementary cloud source filter selected, showing the Uniqueness, Completeness, Validity, and Relationship test cards`,\"data-og-width\":`2000`,width:`2000`,\"data-og-height\":`1451`,height:`1451`,\"data-path\":`pics/cloud/data-tests/sql-data-tests-test-picker.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=280\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=46444a065d16e2a6868b297398afc461 280w, https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=560\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=43d8db6f534c12fe265abf568b91c2de 560w, https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=840\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=a4ddc2fde8e02a5b31b90d9bc1fac432 840w, https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=737743d99905a8535961323ae568766b 1100w, https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=8dfbec4f566345950536af7e88541d1e 1650w, https://mintcdn.com/elementary/86_gKcFn8X78K-e-/pics/cloud/data-tests/sql-data-tests-test-picker.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=86_gKcFn8X78K-e-\u0026q=85\u0026s=20a32736a022bbd2bbb9a5a4b73ef8d6 2500w`})})]}),_jsx(Step,{title:`Configure the test`,children:_jsxs(_components.p,{children:[`Choose the `,_jsx(_components.strong,{children:`Tested field`}),`, either a column or a SQL expression, and fill in the fields of the test type. Optionally add a `,_jsx(_components.code,{children:`where`}),` clause.`]})}),_jsx(Step,{title:`Set severity, sampled rows, and cadence`,children:_jsx(_components.p,{children:`Choose the severity and optional thresholds, how many failing rows to store with each result, and the test cadence. Add owners, tags, and a description.`})}),_jsx(Step,{title:`Run the test`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Run test`}),` in the `,_jsx(_components.strong,{children:`Preview`}),` section to run the test against your warehouse. The preview shows the result status, the number of failed rows, a sample of them, and the size of the table each run will scan. You must run the preview after your last change before you can save the test.`]})}),_jsx(Step,{title:`Save`,children:_jsx(_components.p,{children:`Submit the test. No pull request is required. Elementary runs the test right away and then on its schedule.`})})]}),`\n`,_jsxs(_components.p,{children:[`You can also ask the `,_jsx(_components.a,{href:`/cloud/ai-agents/ai-test-coverage`,children:`Elementary AI agent`}),` to recommend and create SQL data tests. The agent previews each test before it proposes the plan, and you review the plan before anything is created. The `,_jsx(_components.a,{href:`/cloud/mcp/intro`,children:`MCP server`}),` provides the same create and preview tools.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsx(_components.p,{children:`These settings are shared by all SQL data test types. Each test type page lists its own fields.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Tested field`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.strong,{children:`Column`}),` of the table, or an `,_jsx(_components.strong,{children:`Expression`}),`: a single SQL expression over the table’s columns, such as `,_jsx(_components.code,{children:`lower(email)`}),` or `,_jsx(_components.code,{children:`amount * quantity`})]}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Where clause`})}),_jsxs(_components.td,{children:[`Optional SQL condition, without the `,_jsx(_components.code,{children:`WHERE`}),` keyword, to limit the scanned data or exclude rows, for example `,_jsx(_components.code,{children:`status = 'completed'`})]}),_jsx(_components.td,{children:`None`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Severity`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Use simple severity`}),` (`,_jsx(_components.strong,{children:`Error`}),` or `,_jsx(_components.strong,{children:`Warning`}),`), or `,_jsx(_components.strong,{children:`Use conditional severity`}),` with thresholds on the number of failures. See `,_jsx(_components.a,{href:`#results`,children:`Results`})]}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Sampled rows`})}),_jsx(_components.td,{children:`Number of failing rows stored with each result, from 1 to 1000`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`5`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Test cadence`})}),_jsxs(_components.td,{children:[`How often the test runs. See `,_jsx(_components.a,{href:`#scheduling`,children:`Scheduling`})]}),_jsx(_components.td,{children:`Daily at 09:00`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Owners, tags, description`})}),_jsx(_components.td,{children:`Metadata used for alert routing, filtering, and context`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Expressions and `,_jsx(_components.code,{children:`where`}),` clauses must be a single expression. They can’t contain subqueries, aggregate or window functions, `,_jsx(_components.code,{children:`*`}),`, or table-qualified column names such as `,_jsx(_components.code,{children:`t.amount`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Scheduled runs time out after 5 minutes and return an `,_jsx(_components.strong,{children:`Error`}),` result. Previews time out after 30 seconds.`]}),`\n`,_jsx(Heading,{level:`2`,id:`scheduling`,children:`Scheduling`}),`\n`,_jsxs(_components.p,{children:[`Set the `,_jsx(_components.strong,{children:`Test cadence`}),` to one of:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Every`}),` N hours, from 1 to 23`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Daily`}),` at a time of day`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Weekly`}),` on a day and time`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Custom`}),`, with a cron expression`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Times are in your account’s timezone. Tests can’t run more often than every 15 minutes.`}),`\n`,_jsx(Heading,{level:`2`,id:`results`,children:`Results`}),`\n`,_jsxs(_components.p,{children:[`Every row the test returns is a failing row. Elementary compares the number of failing rows to the test’s `,_jsx(_components.strong,{children:`Severity`}),` setting:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Severity setting`}),_jsx(_components.th,{children:`Result`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Use simple severity`}),` (default)`]}),_jsxs(_components.td,{children:[`Any failing row produces the selected severity: `,_jsx(_components.strong,{children:`Error`}),` or `,_jsx(_components.strong,{children:`Warning`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Use conditional severity`}),`, with `,_jsx(_components.strong,{children:`Return error if the number of failures >`}),` `,_jsx(_components.code,{children:`X`})]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Failure`}),` when the failing-row count is greater than `,_jsx(_components.code,{children:`X`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Use conditional severity`}),`, with `,_jsx(_components.strong,{children:`Return warn if the number of failures >`}),` `,_jsx(_components.code,{children:`Y`})]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Warning`}),` when the failing-row count is greater than `,_jsx(_components.code,{children:`Y`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Use conditional severity`}),`, with both`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Failure`}),` above `,_jsx(_components.code,{children:`X`}),`, otherwise `,_jsx(_components.strong,{children:`Warning`}),` above `,_jsx(_components.code,{children:`Y`}),`, otherwise `,_jsx(_components.strong,{children:`Pass`}),`. The warning threshold must be lower than the error threshold`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A run that can’t complete, for example because the query timed out, a column no longer exists, or the warehouse role lacks permissions, gets the `,_jsx(_components.strong,{children:`Error`}),` status with the reason. The test stays enabled and runs again on its next schedule.`]}),`\n`,_jsx(_components.p,{children:`Each result shows the failing-row count and, when available, a sample of the failing rows.`}),`\n`,_jsx(Heading,{level:`2`,id:`edit-or-delete-a-test`,children:`Edit or delete a test`}),`\n`,_jsxs(_components.p,{children:[`Open the test from test results or an incident and go to the `,_jsx(_components.strong,{children:`Configuration`}),` tab to change its settings. The test type can’t be changed. Saving re-runs the test with the new configuration.`]}),`\n`,_jsxs(_components.p,{children:[`To delete tests, select them on the `,_jsx(_components.strong,{children:`Test Configuration`}),` page and use the delete option, or open a test result and click `,_jsx(_components.code,{children:`...`}),` → `,_jsx(_components.strong,{children:`Delete test`}),`. Every create, edit, and delete is recorded in the `,_jsx(_components.a,{href:`/cloud/features/collaboration-and-communication/audit_logs/overview`,children:`audit logs`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`alerts`,children:`Alerts`}),`\n`,_jsxs(_components.p,{children:[`SQL data test failures map to the `,_jsx(_components.strong,{children:`Cloud data tests`}),` category in `,_jsx(_components.a,{href:`/cloud/features/alerts-and-incidents/alert-rules`,children:`alert rules`}),`. In environments with data access, the category is selected by default on new rules and included in the default rule. Check existing rules if you want them to include SQL data test failures.`]}),`\n`,_jsx(Heading,{level:`2`,id:`supported-warehouses`,children:`Supported warehouses`}),`\n`,_jsx(_components.p,{children:`SQL data tests run on tables and other materialized assets in:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Snowflake`}),`\n`,_jsx(_components.li,{children:`Databricks`}),`\n`,_jsx(_components.li,{children:`Redshift`}),`\n`,_jsx(_components.li,{children:`Postgres`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Ephemeral models and assets without a table in the warehouse can’t be tested.`}),`\n`,_jsx(Heading,{level:`2`,id:`sql-data-tests-or-dbt-tests`,children:`SQL data tests or dbt tests`}),`\n`,_jsxs(_components.p,{children:[`Each SQL data test has a dbt equivalent. If your environment has both data access and a dbt project, see `,_jsx(_components.a,{href:`/cloud/features/data-tests/cloud-or-dbt-tests`,children:`Cloud tests or dbt tests`}),` to choose where each check should live.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"SQL Data Tests","sidebarTitle":"Overview","description":"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.","badge":"Elementary Cloud","href":"/cloud/features/data-tests/sql-data-tests"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Test types","slug":"test-types","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Where the queries run","slug":"where-the-queries-run","depth":2,"children":[]},{"title":"Create a SQL data test","slug":"create-a-sql-data-test","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[]},{"title":"Scheduling","slug":"scheduling","depth":2,"children":[]},{"title":"Results","slug":"results","depth":2,"children":[]},{"title":"Edit or delete a test","slug":"edit-or-delete-a-test","depth":2,"children":[]},{"title":"Alerts","slug":"alerts","depth":2,"children":[]},{"title":"Supported warehouses","slug":"supported-warehouses","depth":2,"children":[]},{"title":"SQL data tests or dbt tests","slug":"sql-data-tests-or-dbt-tests","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/elementary/f24b65ff5abc50ab/kapa-widget.js"],"subdomain":"elementary","siteName":"Elementary","title":"SQL Data Tests - Elementary","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T17:01:02.917Z","originalFileLocation":"cloud/features/data-tests/sql-data-tests.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Elementary\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://res.cloudinary.com/do5hrgokq/image/upload/v1764678729/faviconnew_ckysnt.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://res.cloudinary.com/do5hrgokq/image/upload/v1764678729/faviconnew_ckysnt.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://res.cloudinary.com/do5hrgokq/image/upload/v1764678729/faviconnew_ckysnt.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://res.cloudinary.com/do5hrgokq/image/upload/v1764678729/faviconnew_ckysnt.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"SQL Data Tests - Elementary\">\u003cmeta data-mint-head property=\"og:description\" content=\"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Elementary\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://elementary.mintlify.site/_mintlify/api/og/v2?division=SQL+data+tests\u0026amp;title=SQL+Data+Tests\u0026amp;description=Built-in+uniqueness%2C+completeness%2C+validity%2C+and+relationship+tests+that+Elementary+Cloud+runs+against+your+warehouse%2C+configured+in+the+UI+without+writing+SQL+\u0026amp;theme=1c9bc164fea8879e318e630d\u0026amp;signature=215c0ab47fa4275a8d9cf61596a6a933db00966e282e29c323263d11f7988385\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"SQL Data Tests - Elementary\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://elementary.mintlify.site/_mintlify/api/og/v2?division=SQL+data+tests\u0026amp;title=SQL+Data+Tests\u0026amp;description=Built-in+uniqueness%2C+completeness%2C+validity%2C+and+relationship+tests+that+Elementary+Cloud+runs+against+your+warehouse%2C+configured+in+the+UI+without+writing+SQL+\u0026amp;theme=1c9bc164fea8879e318e630d\u0026amp;signature=215c0ab47fa4275a8d9cf61596a6a933db00966e282e29c323263d11f7988385\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/elementary/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Elementary\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF20B8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cloud/features/data-tests/sql-data-tests.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.elementary-data.com/#organization\",\"name\":\"Elementary\",\"url\":\"https://docs.elementary-data.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://res.cloudinary.com/do5hrgokq/image/upload/v1764079214/Elementary_2025_Full_Color_Logo_mtdixp.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.elementary-data.com#website\",\"name\":\"Elementary\",\"url\":\"https://docs.elementary-data.com\",\"publisher\":{\"@id\":\"https://docs.elementary-data.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests#webpage\",\"url\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests\",\"name\":\"SQL Data Tests\",\"description\":\"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\",\"dateModified\":\"2026-11-25T17:01:02.917Z\",\"isPartOf\":{\"@id\":\"https://docs.elementary-data.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Tests\",\"item\":\"https://docs.elementary-data.com/cloud/features/data-tests/cloud-or-dbt-tests\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cloud Tests\",\"item\":\"https://docs.elementary-data.com/cloud/features/data-tests/cloud-tests-overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SQL Data Tests\",\"item\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests#article\",\"headline\":\"SQL Data Tests\",\"name\":\"SQL Data Tests\",\"description\":\"Built-in uniqueness, completeness, validity, and relationship tests that Elementary Cloud runs against your warehouse, configured in the UI without writing SQL or opening a pull request.\",\"url\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests\",\"mainEntityOfPage\":{\"@id\":\"https://docs.elementary-data.com/cloud/features/data-tests/sql-data-tests#webpage\"},\"dateModified\":\"2026-11-25T17:01:02.917Z\",\"publisher\":{\"@id\":\"https://docs.elementary-data.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.elementary-data.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Elementary\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Elementary\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cloud/features/data-tests/sql-data-tests.md","siteName":"Elementary","nav":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar-check","href":"https://meetings-eu1.hubspot.com/joost-boonzajer-flaes/intro-call-docs"},{"anchor":"Join Slack","icon":"slack","href":"https://elementary-data.com/community"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Elementary Cloud","groups":[{"group":"Getting Started","pages":[{"title":"Elementary Cloud Platform","sidebarTitle":"Introduction","icon":"cloud","href":"/cloud/introduction"},{"title":"Platform features","icon":"browsers","href":"/cloud/features"},{"title":"Elementary integrations","sidebarTitle":"Integrations","icon":"plug","href":"/cloud/features/integrations"},{"title":"Security and Privacy","sidebarTitle":"Security and privacy","icon":"lock","href":"/cloud/general/security-and-privacy"},{"group":"Elementary Runtime","icon":"server","pages":[{"title":"Elementary Runtime","sidebarTitle":"Overview","href":"/cloud/features/elementary-runtime"},{"title":"Elementary Runtime configuration","sidebarTitle":"Configuration","href":"/cloud/features/elementary-runtime/configuration"},{"title":"Deploying Elementary Runtime","sidebarTitle":"Deployment","href":"/cloud/features/elementary-runtime/deployment"}]},{"title":"AI credits","sidebarTitle":"AI credits","icon":"coins","href":"/cloud/ai-agents/ai-credits"}]},{"group":"Elementary AI Agent","pages":[{"title":"Elementary AI Agent","sidebarTitle":"Overview","icon":"sparkles","href":"/cloud/ai-agents/overview"},{"title":"AI Governance","sidebarTitle":"AI Governance","icon":"tags","href":"/cloud/ai-agents/ai-governance"},{"title":"AI Triage \u0026 Resolution","sidebarTitle":"AI Triage \u0026 Resolution","icon":"toolbox","href":"/cloud/ai-agents/ai-triage-resolution"},{"title":"AI Test Coverage","sidebarTitle":"AI Test Coverage","icon":"vial-circle-check","href":"/cloud/ai-agents/ai-test-coverage"},{"title":"AI Catalog","sidebarTitle":"AI Catalog","icon":"book-open","href":"/cloud/ai-agents/ai-catalog"},{"title":"AI Performance \u0026 Cost","sidebarTitle":"AI Performance \u0026 Cost","icon":"comments-dollar","href":"/cloud/ai-agents/ai-performance-cost"},{"title":"AI Code Review","sidebarTitle":"AI Code Review","icon":"comment-code","href":"/cloud/features/ci"},{"title":"Elementary Agent in Slack","sidebarTitle":"Slack agent","icon":"slack","href":"/cloud/ai-agents/slack-agent"},{"title":"Connect MCP servers to the agent","sidebarTitle":"MCP connections","icon":"plug","href":"/cloud/ai-agents/mcp-connections"},{"title":"Bring your own key (BYOK)","sidebarTitle":"Bring your own key","icon":"key","href":"/cloud/ai-agents/byok"}]},{"group":"MCP Server","pages":[{"title":"Elementary MCP Server","sidebarTitle":"MCP overview","href":"/cloud/mcp/overview"},{"group":"Setup","pages":[{"title":"MCP Setup Guide","sidebarTitle":"MCP setup guide","href":"/cloud/mcp/setup-guide"},{"title":"Recommended Rules","sidebarTitle":"Recommended rules","href":"/cloud/mcp/recommended-rules"}]},{"title":"MCP Tools","sidebarTitle":"MCP tools","href":"/cloud/mcp/mcp-tools"}]},{"group":"Data Tests","pages":[{"title":"Cloud tests or dbt tests","sidebarTitle":"Cloud or dbt tests","href":"/cloud/features/data-tests/cloud-or-dbt-tests"},{"group":"Cloud Tests","pages":[{"title":"Cloud Tests","sidebarTitle":"Cloud tests","href":"/cloud/features/data-tests/cloud-tests-overview"},{"title":"Cloud Freshness Test","sidebarTitle":"Cloud freshness test","href":"/cloud/features/anomaly-detection/automated-freshness"},{"title":"Cloud Volume Test","sidebarTitle":"Cloud volume test","href":"/cloud/features/anomaly-detection/automated-volume"},{"title":"Cloud Pipeline Task Performance","sidebarTitle":"Cloud pipeline task performance","href":"/cloud/features/anomaly-detection/cloud-pipeline-task-performance"},{"title":"Data contract test","sidebarTitle":"Data contract","description":null,"href":"/cloud/features/data-tests/data-contract-test"},{"group":"SQL data tests","pages":[{"title":"SQL Data Tests","sidebarTitle":"Overview","href":"/cloud/features/data-tests/sql-data-tests"},{"title":"Uniqueness test","sidebarTitle":"Uniqueness","description":"Detect values that appear more than once in a column or expression.","href":"/cloud/features/data-tests/sql-data-tests/uniqueness"},{"title":"Completeness test","sidebarTitle":"Completeness","href":"/cloud/features/data-tests/sql-data-tests/completeness"},{"title":"Validity test","sidebarTitle":"Validity","href":"/cloud/features/data-tests/sql-data-tests/validity"},{"title":"Relationship test","sidebarTitle":"Relationship","href":"/cloud/features/data-tests/sql-data-tests/relationship"}]},{"title":"Custom SQL test","sidebarTitle":"Custom SQL","href":"/cloud/features/data-tests/custom-sql-tests"},{"title":"Metrics","sidebarTitle":"Metrics","href":"/cloud/features/anomaly-detection/metrics"}]},{"group":"dbt Tests","pages":[{"title":"dbt, Packages and Elementary Tests","sidebarTitle":"dbt tests","href":"/cloud/features/data-tests/dbt-tests"},{"title":"Singular Tests","sidebarTitle":"Singular Tests","href":"/data-tests/dbt/singular-tests"},{"title":"Schema Validation Tests","sidebarTitle":"Schema validation","href":"/cloud/features/data-tests/schema-validation-test"}]},{"title":"Managing Test Coverage","sidebarTitle":"Test coverage management","href":"/cloud/features/data-tests/test-coverage-screen"}]},{"group":"Data Lineage","pages":[{"title":"End-to-End Data Lineage","sidebarTitle":"Lineage overview","href":"/cloud/features/data-lineage/lineage"},{"title":"Column-Level Lineage","sidebarTitle":"Column level lineage","href":"/cloud/features/data-lineage/column-level-lineage"},{"title":"Lineage to Downstream Dashboards and Tools","sidebarTitle":"Lineage to BI","href":"/cloud/features/data-lineage/exposures-lineage"}]},{"group":"Alerts and Incidents","pages":[{"title":"Alerts and Incidents Overview","sidebarTitle":"Alerts \u0026 incidents overview","href":"/cloud/features/alerts-and-incidents/alerts-and-incidents-overview"},{"group":"Alerts","pages":[{"title":"Alert rules","href":"/cloud/features/alerts-and-incidents/alert-rules"},{"title":"Alerts destinations management","sidebarTitle":"Alerts destinations management","href":"/cloud/features/alerts-and-incidents/alert-destinations"},{"title":"Alert configuration in code","sidebarTitle":"Config in code","href":"/cloud/features/alerts-and-incidents/owners-and-subscribers"}]},{"group":"Incidents","pages":[{"title":"Incidents","sidebarTitle":"Incidents","href":"/cloud/features/alerts-and-incidents/incidents"},{"title":"Incident Management","sidebarTitle":"Incident management","href":"/cloud/features/alerts-and-incidents/incident-management"},{"title":"Incident Merging","sidebarTitle":"Incident merging","href":"/cloud/features/alerts-and-incidents/incident-merging"},{"title":"Incidents Digest","sidebarTitle":"Incidents digest","href":"/cloud/features/alerts-and-incidents/incident-digest"}]}]},{"group":"Performance \u0026 Cost","pages":[{"title":"Performance Monitoring","sidebarTitle":"Performance monitoring","href":"/cloud/features/performance-monitoring/performance-monitoring"},{"title":"Performance Alerts","sidebarTitle":"Performance alerts","href":"/cloud/features/performance-monitoring/performance-alerts"}]},{"group":"Data Catalog \u0026 Governance","pages":[{"title":"Data Catalog","href":"/cloud/features/collaboration-and-communication/catalog"},{"title":"Saved Views","href":"/cloud/features/collaboration-and-communication/saved-views"},{"title":"Table usage","sidebarTitle":"Table usage","href":"/cloud/features/table-usage"},{"title":"Critical Assets","href":"/cloud/features/data-governance/critical_assets"},{"title":"AI-Powered Description Generation","sidebarTitle":"AI descriptions","href":"/cloud/features/data-governance/ai-descriptions"},{"title":"Governance for observability","sidebarTitle":"Governance best practices","href":"/cloud/best-practices/governance-for-observability"}]},{"group":"Data Health","pages":[{"title":"Data Observability Dashboard","href":"/cloud/features/collaboration-and-communication/data-observability-dashboard"},{"group":"Data Health Scores","pages":[{"title":"Data Quality Dimensions","sidebarTitle":"Data Quality Dimensions","href":"/cloud/features/collaboration-and-communication/data-quality-dimensions"},{"title":"Data Health Dashboard","sidebarTitle":"Data Health Dashboard","href":"/cloud/features/collaboration-and-communication/data-health"}]}]},{"group":"Config \u0026 Administration","pages":[{"group":"Environments","pages":[{"title":"Environments","sidebarTitle":"Environments","href":"/cloud/environments"},{"title":"Environment Syncs Schedule","href":"/cloud/guides/sync-scheduling"},{"title":"Elementary for Development and Production","sidebarTitle":"Dev/Prod configuration","href":"/cloud/guides/dev-prod-configuration"}]},{"group":"Config-as-Code","pages":[{"title":"Configuration as Code","href":"/cloud/features/config-as-code"},{"title":"GPG Commit Signing","sidebarTitle":"GPG commit signing","href":"/cloud/features/gpg-signed-commits"}]},{"title":"Roles \u0026 Permissions Management","href":"/cloud/features/roles-and-permissions"},{"title":"Troubleshooting","href":"/cloud/guides/troubleshoot"},{"group":"Audit Logs","pages":[{"title":"Logs","sidebarTitle":"Overview","href":"/cloud/features/collaboration-and-communication/audit_logs/overview"},{"title":"User Activity Logs","sidebarTitle":"User Activity Logs","href":"/cloud/features/collaboration-and-communication/audit_logs/user-activity-logs"},{"title":"System Logs","sidebarTitle":"System Logs","href":"/cloud/features/collaboration-and-communication/audit_logs/system-logs"}]},{"group":"Security \u0026 Privacy","pages":[{"title":"Security and Privacy","sidebarTitle":"Security and privacy","icon":"lock","href":"/cloud/general/security-and-privacy"},{"title":"AI Privacy Policy","icon":"user-lock","href":"/cloud/general/ai-privacy-policy"},{"title":"Subprocessors","sidebarTitle":"Subprocessors","icon":"building-shield","href":"/cloud/general/sub-processors"}]}]},{"group":"Integrations","pages":[{"title":"Elementary integrations","sidebarTitle":"All integrations","href":"/cloud/integrations/elementary-integrations"},{"group":"Data warehouses","pages":[{"title":"Connect to Snowflake","sidebarTitle":"Snowflake","href":"/cloud/integrations/dwh/snowflake"},{"title":"Connect to Bigquery","sidebarTitle":"Bigquery","href":"/cloud/integrations/dwh/bigquery"},{"title":"Connect to Redshift","sidebarTitle":"Redshift","href":"/cloud/integrations/dwh/redshift"},{"title":"Connect to Databricks","sidebarTitle":"Databricks","href":"/cloud/integrations/dwh/databricks"},{"title":"Connect to Postgres","sidebarTitle":"Postgres","href":"/cloud/integrations/dwh/postgres"},{"title":"Connect to Athena","sidebarTitle":"Athena","href":"/cloud/integrations/dwh/athena"},{"title":"Connect to Dremio","sidebarTitle":"Dremio","href":"/cloud/integrations/dwh/dremio"},{"title":"Connect to Clickhouse","sidebarTitle":"Clickhouse","href":"/cloud/integrations/dwh/clickhouse"},{"title":"Connect to Trino","sidebarTitle":"Trino","href":"/cloud/integrations/dwh/trino"},{"title":"Connect to DuckDB","sidebarTitle":"DuckDB","href":"/cloud/integrations/dwh/duckdb"},{"title":"Connect to Spark","sidebarTitle":"Spark","href":"/cloud/integrations/dwh/spark"},{"title":"Connect to Fabric","sidebarTitle":"Fabric","href":"/cloud/integrations/dwh/fabric"},{"title":"Connect to SQL Server","sidebarTitle":"SQL Server","href":"/cloud/integrations/dwh/sqlserver"},{"title":"Connect to Vertica","sidebarTitle":"Vertica","href":"/cloud/integrations/dwh/vertica"}]},{"group":"Transformation","pages":[{"group":"dbt","pages":[{"title":"dbt core","href":"/cloud/integrations/transformation-and-orchestration/dbt-core"},{"title":"dbt cloud","href":"/cloud/integrations/transformation-and-orchestration/dbt-cloud"},{"title":"dbt Fusion (Beta)","href":"/cloud/integrations/transformation-and-orchestration/dbt-fusion"},{"group":"dbt setup guides","pages":[{"title":"Collect Jobs Info From Orchestrator","sidebarTitle":"Collect jobs data","href":"/cloud/guides/collect-job-data"},{"title":"Collect dbt source freshness results","sidebarTitle":"dbt source freshness","href":"/cloud/guides/collect-source-freshness"},{"title":"Control On-Run-End Hooks","sidebarTitle":"Control on-run-end time","href":"/cloud/guides/reduce-on-run-end-time"},{"title":"Capture compiled code for microbatch models","sidebarTitle":"Microbatch compiled code","href":"/cloud/guides/microbatch-compiled-code"}]}]},{"group":"Python SDK","pages":[{"title":"Python SDK Overview","sidebarTitle":"Python SDK","href":"/cloud/python-sdk/overview"},{"title":"Python SDK Setup Guide","sidebarTitle":"Setup Guide","href":"/cloud/python-sdk/setup-guide"},{"title":"Python SDK Usage Examples","sidebarTitle":"Usage Examples","href":"/cloud/python-sdk/usage-examples"}]}]},{"group":"Orchestration","pages":[{"title":"Airflow","href":"/cloud/integrations/transformation-and-orchestration/airflow"},{"title":"Orchestration tools","href":"/cloud/integrations/transformation-and-orchestration/orchestration-tools"},{"title":"Fivetran","href":"/cloud/integrations/pipeline/fivetran"}]},{"group":"Data visualization","pages":[{"title":"Automated lineage to Data Visualization layer","sidebarTitle":"Automated BI lineage","href":"/cloud/integrations/bi/connect-bi-tool"},{"title":"Looker","href":"/cloud/integrations/bi/looker"},{"title":"Tableau","href":"/cloud/integrations/bi/tableau"},{"title":"Power BI","href":"/cloud/integrations/bi/power-bi"},{"title":"Sigma","href":"/cloud/integrations/bi/sigma"},{"title":"Metabase","href":"/cloud/integrations/bi/metabase"},{"title":"Thoughtspot","href":"/cloud/integrations/bi/thoughtspot"},{"title":"Mode","href":"/cloud/integrations/bi/mode"},{"title":"Hex","href":"/cloud/integrations/bi/hex"},{"title":"Lightdash","href":"/cloud/integrations/bi/lightdash"},{"title":"Explo","href":"/cloud/integrations/bi/explo"}]},{"group":"Reverse ETL","pages":[{"title":"Census","href":"/cloud/integrations/reverse-etl/census"},{"title":"Hightouch","href":"/cloud/integrations/reverse-etl/hightouch"}]},{"group":"Code repositories","pages":[{"title":"Connect code repository","sidebarTitle":"Code integration","href":"/cloud/integrations/code-repo/connect-code-repo"},{"title":"Github","href":"/cloud/integrations/code-repo/github"},{"title":"Gitlab","href":"/cloud/integrations/code-repo/gitlab"},{"title":"Bitbucket","href":"/cloud/integrations/code-repo/bitbucket"},{"title":"Azure DevOps Integration","sidebarTitle":"Azure DevOps","href":"/cloud/integrations/code-repo/azure-devops"}]},{"group":"Alerts \u0026 Incidents","pages":[{"title":"Slack","href":"/cloud/integrations/alerts/slack"},{"title":"Microsoft Teams","href":"/cloud/integrations/alerts/ms-teams-app"},{"title":"Microsoft Teams (Legacy webhook)","href":"/cloud/integrations/alerts/ms-teams"},{"title":"PagerDuty","href":"/cloud/integrations/alerts/pagerduty"},{"title":"Opsgenie","href":"/cloud/integrations/alerts/opsgenie"},{"title":"incident.io","href":"/cloud/integrations/alerts/incident-io"},{"title":"Rootly","href":"/cloud/integrations/alerts/rootly"},{"title":"Jira","href":"/cloud/integrations/alerts/jira"},{"title":"Linear","href":"/cloud/integrations/alerts/linear"},{"title":"ServiceNow","href":"/cloud/integrations/alerts/servicenow"},{"title":"Email","href":"/cloud/integrations/alerts/email"}]},{"group":"Log Streaming","pages":[{"title":"Datadog","href":"/cloud/integrations/log-streaming/datadog"},{"title":"Splunk","href":"/cloud/integrations/log-streaming/splunk"},{"title":"Google Cloud Storage (GCS)","href":"/cloud/integrations/log-streaming/gcs"}]},{"group":"Governance","pages":[{"title":"Atlan","href":"/cloud/integrations/governance/atlan"}]},{"group":"Iceberg catalog","pages":[{"title":"AWS Glue","href":"/cloud/integrations/metadata-layer/glue"},{"title":"Google BigLake (Iceberg)","href":"/cloud/integrations/metadata-layer/biglake"}]},{"group":"Semantic Layer","pages":[{"title":"Snowflake Semantic Views","sidebarTitle":"Snowflake","href":"/cloud/integrations/semantic-layer/snowflake"}]},{"group":"Security and Connectivity","pages":[{"title":"AWS PrivateLink","sidebarTitle":"AWS PrivateLink","href":"/cloud/integrations/security-and-connectivity/aws-privatelink-integration"},{"title":"Okta","sidebarTitle":"Okta","href":"/cloud/integrations/security-and-connectivity/okta"},{"title":"Microsoft Entra ID","sidebarTitle":"Microsoft Entra ID","href":"/cloud/integrations/security-and-connectivity/ms-entra"}]}]},{"group":"Resources","pages":[{"group":"Best Practices Guide","pages":[{"title":"Elementary Best Practices","sidebarTitle":"Introduction","href":"/cloud/best-practices/introduction"},{"title":"Detection and coverage","href":"/cloud/best-practices/detection-and-coverage"},{"title":"Triage \u0026 response","href":"/cloud/best-practices/triage-and-response"}]},{"group":"Onboarding guides","pages":[{"title":"Set up Elementary","sidebarTitle":"Technical Setup","href":"/cloud/guides/set-up-elementary"},{"title":"Start Using Elementary","sidebarTitle":"Start using Elementary","href":"/cloud/guides/start-using-elementary"}]},{"title":"Elementary OSS vs. Elementary Cloud","sidebarTitle":"Cloud vs OSS","href":"/cloud/cloud-vs-oss"},{"title":"Frequently asked questions","sidebarTitle":"FAQ","icon":"circle-question","href":"/cloud/resources/faq"},{"title":"Pricing","url":"https://www.elementary-data.com/pricing","href":"/cloud/resources/pricing"},{"title":"Community","url":"https://www.elementary-data.com/community","href":"/cloud/resources/community"}]}]},{"tab":"dbt Package and Tests","pages":[{"title":"dbt Package and Tests","href":"/data-tests/dbt/dbt-package"}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/python-sdk/introduction"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api/introduction"}]},{"tab":"Elementary OSS","pages":[{"title":"Elementary OSS","href":"/oss/oss-introduction"}]}]},"basePath":"","title":"SQL Data Tests - Elementary","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-C6Yt8aJE.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","Frame-C7yGukkT.js","DynamicMarkdown-XsrWkK-b.js","zoom-image-lightbox-C5J5Gw3i.js","lightbox-handle-r17bVUz3.js"]}