Every data loader and transformer block has data validation capabilities built-in.
You can define 1 or more test functions in a single block. Each test function
accepts a data object as an argument.Within the body of the function, you can write any type of test you want to
validate the input data.After the block’s main code is executed, the output data is passed into each
test function for validation. If any tests fail, then the block run will also
fail.
Example
Here is an example of a transformer block with 2 tests:
from pandas import DataFrameif 'transformer' not in globals(): from mage_ai.data_preparation.decorators import transformerif 'test' not in globals(): from mage_ai.data_preparation.decorators import testCOLUMNS_TO_USE = ['name']@transformerdef transform_df(df: DataFrame, *args, **kwargs) -> DataFrame: return df.iloc[:1][COLUMNS_TO_USE]@testdef test_number_of_rows(df) -> None: assert len(df.index) >= 2, 'The output has more than 1 row.'@testdef test_columns(df) -> None: assert df.columns[0] != COLUMNS_TO_USE[0], 'The output columns don’t match.'
You can combine all your data validations into 1 test function or you can
split them up into multiple test functions. The benefit of splitting them up
is that they can run in parallel, speeding up the data validation.
Log output
Each test run is recorded and can be viewed in the logs. Here is an example:
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Mage","colors":{"primary":"#7E53F8","light":"#BFA8FF","dark":"#4C22C0"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/mage-staging/F-coujhKYsL8TShc/logo/light.svg?fit=max\u0026auto=format\u0026n=F-coujhKYsL8TShc\u0026q=85\u0026s=771e75dc9069a1ba245e251f78951bcd","dark":"https://mintcdn.com/mage-staging/F-coujhKYsL8TShc/logo/dark.svg?fit=max\u0026auto=format\u0026n=F-coujhKYsL8TShc\u0026q=85\u0026s=8d66f112b5ad4b8007c46ea8cee832da"},"api":{"playground":{"display":"none"}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/mage-staging/background.png","decoration":null,"color":{"light":null,"dark":"#121212"}},"navbar":{"primary":{"type":"github","href":"https://github.com/mage-ai/mage-ai"}},"search":{"prompt":"✨ Make magic..."},"seo":{"metatags":{"og:image":"https://github.com/mage-ai/mage-ai/blob/master/docs/og.png?raw=True","og:description":"Mage is an open-source, hybrid framework for transforming and integrating data. Our docs are the best place to learn about making magical data pipelines.","og:site_name":"Mage Docs","twitter:site":"@mage_ai"},"indexing":"navigable"},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/magetech/","twitter":"https://twitter.com/mage_ai","facebook":"https://www.facebook.com/mageai","instagram":"https://www.instagram.com/mage_ai/","github":"https://www.github.com/mage-ai"}},"integrations":{"amplitude":{"apiKey":"b3c3b09423fea2abaae92c08b44de1c3"}},"navigation":{"global":{"anchors":[{"anchor":"Releases","href":"https://docs.mage.ai/about/releases","icon":"megaphone"},{"anchor":"Roadmap","href":"https://docs.mage.ai/about/roadmap","icon":"map"},{"anchor":"Troubleshooting","href":"https://docs.mage.ai/development/troubleshooting","icon":"question"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mage-staging","hasAudioNarration":false,"actualSubdomain":"mage-staging","customDomains":[],"gitSource":{"type":"github","owner":"mage-ai","repo":"mage-ai","deployBranch":"docs-dev","contentDirectory":"docs","mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae91d067d088452a25a2aa4:success","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Docs","count":142},{"language":"default","tag":"Concepts","count":99},{"language":"default","tag":"Reference","count":58},{"language":"default","tag":"Deploy","count":40},{"language":"default","tag":"Configuration","count":31},{"language":"default","tag":"API","count":30},{"language":"default","tag":"Blocks","count":29},{"language":"default","tag":"Get Started","count":29},{"language":"default","tag":"Streaming","count":27},{"language":"default","tag":"Endpoints","count":26}]},"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":"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}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"_css/main.css","content":"img{max-height:450px;display:block;margin-left:auto;margin-right:auto}"}]}
{"page":{"pagePath":"development/data-validation","slug":"/development/data-validation","pageMetadata":{"title":"Data validation","description":"Every data loader and transformer block has data validation capabilities built-in.","href":"/development/data-validation"},"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: \"Every data loader and transformer block has data validation capabilities built-in.\"\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={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`You can define 1 or more test functions in a single block. Each test function\naccepts a data object as an argument.`}),`\n`,_jsx(_components.p,{children:`Within the body of the function, you can write any type of test you want to\nvalidate the input data.`}),`\n`,_jsx(_components.p,{children:`After the block’s main code is executed, the output data is passed into each\ntest function for validation. If any tests fail, then the block run will also\nfail.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(_components.p,{children:`Here is an example of a transformer block with 2 tests:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pandas `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DataFrame`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'transformer'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` globals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`():`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mage_ai.data_preparation.decorators `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` transformer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'test'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` globals`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`():`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mage_ai.data_preparation.decorators `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` test`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`COLUMNS_TO_USE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@transformer`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` transform_df`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`df`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: DataFrame, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`**`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`kwargs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> DataFrame:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` df.iloc[:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`COLUMNS_TO_USE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@test`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` test_number_of_rows`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`df`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` assert`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(df.index) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'The output has more than 1 row.'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@test`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` test_columns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`df`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` assert`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` df.columns[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` COLUMNS_TO_USE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'The output columns don’t match.'`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`You can combine all your data validations into 1 test function or you can\nsplit them up into multiple test functions. The benefit of splitting them up\nis that they can run in parallel, speeding up the data validation.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`log-output`,children:`Log output`}),`\n`,_jsx(_components.p,{children:`Each test run is recorded and can be viewed in the logs. Here is an example:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Start executing block.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`--------------------------------------------------------------`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2/2 tests passed.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Finish executing block.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}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":"Data validation","description":"Every data loader and transformer block has data validation capabilities built-in.","href":"/development/data-validation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Example","slug":"example","depth":3,"children":[]},{"title":"Log output","slug":"log-output","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"mage-staging","siteName":"Mage","title":"Data validation - Mage","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:44:05.653Z","originalFileLocation":"development/data-validation.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=\"system\"}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=\"Every data loader and transformer block has data validation capabilities built-in.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mage\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data validation - Mage\">\u003cmeta data-mint-head property=\"og:description\" content=\"Mage is an open-source, hybrid framework for transforming and integrating data. Our docs are the best place to learn about making magical data pipelines.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mage Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://mage-staging.mintlify.app/development/data-validation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://github.com/mage-ai/mage-ai/blob/master/docs/og.png?raw=True\">\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=\"Data validation - Mage\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Mage is an open-source, hybrid framework for transforming and integrating data. Our docs are the best place to learn about making magical data pipelines.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://github.com/mage-ai/mage-ai/blob/master/docs/og.png?raw=True\">\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=\"/mintlify-assets/_mintlify/favicons/mage-staging/9hbSRsJaqH6uNa8l/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mage\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7E53F8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://mage-staging.mintlify.app/development/data-validation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/development/data-validation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://mage-staging.mintlify.app/#organization\",\"name\":\"Mage\",\"url\":\"https://mage-staging.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mage-staging/F-coujhKYsL8TShc/logo/light.svg?fit=max\u0026auto=format\u0026n=F-coujhKYsL8TShc\u0026q=85\u0026s=771e75dc9069a1ba245e251f78951bcd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://mage-staging.mintlify.app#website\",\"name\":\"Mage\",\"url\":\"https://mage-staging.mintlify.app\",\"publisher\":{\"@id\":\"https://mage-staging.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://mage-staging.mintlify.app/development/data-validation#webpage\",\"url\":\"https://mage-staging.mintlify.app/development/data-validation\",\"name\":\"Data validation\",\"description\":\"Every data loader and transformer block has data validation capabilities built-in.\",\"dateModified\":\"2026-01-06T23:44:05.653Z\",\"isPartOf\":{\"@id\":\"https://mage-staging.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://mage-staging.mintlify.app/development/data-validation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://mage-staging.mintlify.app/development/data-validation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://mage-staging.mintlify.app/development/variables/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data validation\",\"item\":\"https://mage-staging.mintlify.app/development/data-validation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://mage-staging.mintlify.app/development/data-validation#article\",\"headline\":\"Data validation\",\"name\":\"Data validation\",\"description\":\"Every data loader and transformer block has data validation capabilities built-in.\",\"url\":\"https://mage-staging.mintlify.app/development/data-validation\",\"mainEntityOfPage\":{\"@id\":\"https://mage-staging.mintlify.app/development/data-validation#webpage\"},\"image\":\"https://github.com/mage-ai/mage-ai/blob/master/docs/og.png?raw=True\",\"dateModified\":\"2026-01-06T23:44:05.653Z\",\"publisher\":{\"@id\":\"https://mage-staging.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://mage-staging.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mage\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mage\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/development/data-validation.md","siteName":"Mage","nav":{"global":{"anchors":[{"anchor":"Releases","href":"https://docs.mage.ai/about/releases","icon":"megaphone"},{"anchor":"Roadmap","href":"https://docs.mage.ai/about/roadmap","icon":"map"},{"anchor":"Troubleshooting","href":"https://docs.mage.ai/development/troubleshooting","icon":"question"}]},"tabs":[{"tab":"Docs","groups":[{"group":"Get Started","pages":[{"title":"🧙♀️ Welcome to Mage","sidebarTitle":"Overview","icon":"hat-wizard","href":"/introduction/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","icon":"space-station-moon-construction","href":"/getting-started/setup"},{"title":"Core Design Principles","sidebarTitle":"Design","icon":"pen-nib","href":"/design/core-design-principles"},{"group":"Abstractions","icon":"object-subtract","pages":[{"title":"Abstractions","sidebarTitle":"Core abstractions","href":"/design/core-abstractions"},{"title":"Project Structure","href":"/design/abstractions/project-structure"}]}]},{"group":"Concepts","pages":[{"group":"Backfills","icon":"database","pages":[{"title":"Backfilling pipelines","sidebarTitle":"Overview","href":"/orchestration/backfills/overview"},{"title":"Backfill guide","sidebarTitle":"Guide","href":"/orchestration/backfills/guides"}]},{"group":"Blocks","icon":"block-brick","pages":[{"title":"Overview","href":"/design/blocks"},{"group":"Types","pages":[{"title":"Callback blocks","sidebarTitle":"Callback","href":"/design/blocks/callbacks"},{"title":"Conditional blocks","sidebarTitle":"Conditional","href":"/design/blocks/conditionals"},{"title":"Data exporter","href":"/design/blocks/data-exporter"},{"title":"Data loader","href":"/design/blocks/data-loader"},{"title":"Extension block","sidebarTitle":"Extension","href":"/design/blocks/extension"},{"title":"Scratchpad","href":"/design/blocks/scratchpad"},{"title":"Sensor","href":"/design/blocks/sensor"},{"title":"Transformer","href":"/design/blocks/transformer"}]},{"title":"Dynamic blocks","href":"/design/blocks/dynamic-blocks"},{"group":"Resources","pages":[{"group":"Data loader","pages":[{"title":"Data loader utilities","sidebarTitle":"Utilities","href":"/design/data-loading"},{"title":"Data loader templates","sidebarTitle":"Templates","href":"/development/blocks/data_loaders/templates"}]},{"group":"Transformer","pages":[{"title":"Transformer templates","sidebarTitle":"Templates","href":"/development/blocks/transformers/templates"}]},{"group":"Data exporter","pages":[{"title":"Data exporter templates","sidebarTitle":"Templates","href":"/development/blocks/data_exporters/templates"}]},{"group":"Sensors","pages":[{"title":"Sensor templates","sidebarTitle":"Templates","href":"/development/blocks/sensors/templates"}]},{"group":"Callbacks","pages":[{"title":"Callback templates","sidebarTitle":"Templates","href":"/development/blocks/callbacks/templates"}]},{"group":"Conditionals","pages":[{"title":"Conditional templates","sidebarTitle":"Templates","href":"/development/blocks/conditionals/templates"}]}]}]},{"group":"Data integration","icon":"rotate","pages":[{"title":"Overview","href":"/data-integrations/overview"},{"title":"Configure data integration pipelines","sidebarTitle":"Configuration","href":"/data-integrations/configuration"},{"group":"Sources","pages":[{"title":"Sources technical documentation","sidebarTitle":"Overview","href":"/data-integrations/sources/overview"},{"title":"Add new source","href":"/data-integrations/sources/add-new-source"},{"title":"Change Data Capture (CDC) with PostgreSQL","sidebarTitle":"PostgreSQL","href":"/data-integrations/sources/postgresql"}]},{"group":"Destinations","pages":[{"title":"Destinations technical documentation","sidebarTitle":"Overview","href":"/data-integrations/destinations/overview"},{"title":"Add new destination","href":"/data-integrations/destinations/add-new-destination"}]},{"title":"Using data integrations in batch pipelines","sidebarTitle":"Batch pipelines","href":"/data-integrations/batch-pipelines"}]},{"group":"dbt","icon":"arrow-progress","pages":[{"title":"dbt Integration","sidebarTitle":"Overview","href":"/dbt/overview"},{"group":"Configuration","pages":[{"title":"dbt sources and upstream dependencies","sidebarTitle":"Get data from blocks","href":"/dbt/sources"},{"title":"dbt connection profiles","sidebarTitle":"Connection profiles","href":"/dbt/connection-profiles"},{"title":"dbt variable interpolation","sidebarTitle":"Variable interpolation","href":"/dbt/variable-interpolation"},{"title":"Run dbt-spark against a pySpark session.","sidebarTitle":"Run dbt-spark","href":"/dbt/run-dbt-spark"}]},{"group":"Models","pages":[{"title":"Add an existing dbt project to Mage","sidebarTitle":"Add existing project","href":"/dbt/add-existing-dbt"},{"title":"Incremental models","href":"/dbt/incremental-models"},{"title":"Run a single model","sidebarTitle":"Run a model","href":"/dbt/run-single-model"},{"title":"Run multiple models","sidebarTitle":"Run multiple models","href":"/dbt/run-selected-model"}]},{"group":"Commands","pages":[{"title":"Serve dbt docs in production","sidebarTitle":"Docs","href":"/dbt/docs"},{"title":"Run dbt snapshot","sidebarTitle":"Snapshots","href":"/dbt/snapshots"},{"title":"Running dbt tests","sidebarTitle":"Tests","href":"/dbt/running-dbt-tests"}]}]},{"title":"Global data products","sidebarTitle":"Global data products","icon":"globe","href":"/orchestration/global-data-products/overview"},{"title":"Pipeline Management","sidebarTitle":"Pipelines","icon":"pipe-section","href":"/design/data-pipeline-management"},{"group":"Pipeline runs","icon":"pipe-circle-check","pages":[{"title":"Retrying block runs from a pipeline run","sidebarTitle":"Retrying block runs","href":"/orchestration/pipeline-runs/retrying-block-runs"},{"title":"Saving block output as CSV file","sidebarTitle":"Saving block output as CSV","href":"/orchestration/pipeline-runs/saving-block-output-as-csv"}]},{"group":"Schedules and triggers","icon":"clock","pages":[{"title":"Configure triggers in code","href":"/orchestration/triggers/configure-triggers-in-code"},{"group":"Event triggers","pages":[{"title":"Overview","sidebarTitle":"Event triggers","href":"/orchestration/triggers/events/overview"},{"title":"Trigger from AWS events","sidebarTitle":"AWS","href":"/orchestration/triggers/events/aws"}]},{"title":"Trigger pipeline from a block","sidebarTitle":"Trigger from block","href":"/orchestration/triggers/trigger-pipeline"},{"title":"Triggering pipeline via API request","sidebarTitle":"Webhooks","href":"/orchestration/triggers/trigger-pipeline-api"},{"title":"Schedules","sidebarTitle":"Schedules","href":"/orchestration/triggers/schedule-pipelines"}]},{"group":"Streaming","icon":"water","pages":[{"title":"Overview","href":"/streaming/overview"},{"group":"Sources","pages":[{"title":"ActiveMQ","href":"/streaming/sources/activemq"},{"title":"Amazon SQS","href":"/streaming/sources/amazon-sqs"},{"title":"Azure Event Hub","href":"/streaming/sources/azure-event-hub"},{"title":"Google Cloud PubSub","href":"/streaming/sources/google-cloud-pubsub"},{"title":"InfluxDB","href":"/streaming/sources/influxdb"},{"title":"Kafka","href":"/streaming/sources/kafka"},{"title":"Kinesis","href":"/streaming/sources/kinesis"}]},{"group":"Destinations","pages":[{"title":"Amazon S3","href":"/streaming/destinations/amazon-s3"},{"title":"BigQuery","href":"/streaming/destinations/bigquery"},{"title":"ClickHouse","href":"/streaming/destinations/clickhouse"},{"title":"DuckDB","href":"/streaming/destinations/duckdb"},{"title":"Dummy","href":"/streaming/destinations/dummy"},{"title":"Elasticsearch","href":"/streaming/destinations/elasticsearch"},{"title":"Google Cloud PubSub","href":"/streaming/destinations/google-cloud-pubsub"},{"title":"InfluxDB","href":"/streaming/destinations/influxdb"},{"title":"Kafka","href":"/streaming/destinations/kafka"},{"title":"Kinesis","href":"/streaming/destinations/kinesis"},{"title":"MongoDB","href":"/streaming/destinations/mongodb"},{"title":"Microsoft SQL Server","href":"/streaming/destinations/mssql"},{"title":"MySQL","href":"/streaming/destinations/mysql"},{"title":"Opensearch","href":"/streaming/destinations/opensearch"},{"title":"Postgres","href":"/streaming/destinations/postgres"},{"title":"Redshift","href":"/streaming/destinations/redshift"},{"title":"Snowflake","href":"/streaming/destinations/snowflake"},{"title":"Trino","href":"/streaming/destinations/trino"}]}]},{"group":"User defined permissions","icon":"fingerprint","pages":[{"title":"User defined permissions","sidebarTitle":"Overview","href":"/authentication/permissions/overview"},{"title":"Roles","sidebarTitle":"Roles","href":"/authentication/permissions/roles"},{"title":"Permissions","sidebarTitle":"Permissions","href":"/authentication/permissions/permissions"}]}]},{"group":"Reference","icon":"gear","pages":[{"group":"Configuration","icon":"gear","pages":[{"group":"Variables","pages":[{"title":"Mage variables","sidebarTitle":"Overview","href":"/development/variables/overview"},{"title":"Accessing variables in Mage","sidebarTitle":"Accessing variables","href":"/development/variables/referencing-variables"},{"group":"Variable Types","pages":[{"title":"Mage environment variables","sidebarTitle":"Environment variables","href":"/development/variables/environment-variables"},{"title":"Pipeline variables and keyword arguments","sidebarTitle":"Runtime variables","href":"/getting-started/runtime-variable"},{"title":"Mage block variables","sidebarTitle":"Block variables","href":"/development/variables/block-variables"},{"title":"Secrets","href":"/development/variables/secrets"}]}]},{"title":"Custom templates","sidebarTitle":"Custom templates","href":"/custom-templates/overview"},{"group":"Dependencies","pages":[{"title":"Install Python packages","sidebarTitle":"Requirements.txt","href":"/development/dependencies/requirements"},{"title":"Import your own Python code","sidebarTitle":"Custom files","href":"/development/dependencies/custom-files"}]},{"title":"IO Config","sidebarTitle":"IO Config","href":"/development/io_config"},{"group":"Storage","pages":[{"title":"BigQuery","href":"/integrations/databases/BigQuery"},{"title":"ClickHouse","href":"/integrations/databases/ClickHouse"},{"title":"Druid","href":"/integrations/databases/Druid"},{"title":"DuckDB","sidebarTitle":"DuckDB","href":"/integrations/databases/DuckDB"},{"title":"Google Sheets","href":"/integrations/databases/GoogleSheets"},{"title":"Microsoft SQL Server","href":"/integrations/databases/MicrosoftSQLServer"},{"title":"MongoDB","href":"/integrations/databases/MongoDB"},{"title":"MySQL","href":"/integrations/databases/MySQL"},{"title":"Pinot","href":"/integrations/databases/Pinot"},{"title":"PostgreSQL","href":"/integrations/databases/PostgreSQL"},{"title":"Redshift","href":"/integrations/databases/Redshift"},{"title":"S3","href":"/integrations/databases/S3"},{"title":"Snowflake","href":"/integrations/databases/Snowflake"},{"title":"Trino SQL blocks","sidebarTitle":"Trino","href":"/integrations/databases/trino"}]},{"title":"Kernels","href":"/getting-started/kernels"}]},{"group":"Development","icon":"flask","pages":[{"title":"Project setup","sidebarTitle":"Overview","href":"/development/project/setup"},{"title":"Git in Mage","sidebarTitle":"Get started with Git","href":"/getting-started/setting-up-git"},{"title":"Configure Git","href":"/development/git/configure"},{"title":"File versioning in Mage","sidebarTitle":"File versions","href":"/getting-started/file-versions"},{"title":"Use an IDE","sidebarTitle":"Use an IDE","href":"/development/text-editor"}]},{"group":"External tools","icon":"puzzle","pages":[{"group":"Computation","pages":[{"title":"Spark and PySpark","sidebarTitle":"Spark","href":"/integrations/spark-pyspark"},{"title":"Databricks","href":"/integrations/databricks"}]},{"group":"Orchestration","pages":[{"title":"Run Mage pipelines in Airflow","sidebarTitle":"Airflow","href":"/integrations/airflow"},{"title":"Run Mage pipelines in Prefect","sidebarTitle":"Prefect","href":"/integrations/prefect"}]},{"group":"Data integration","pages":[{"title":"Airbyte in Mage","sidebarTitle":"Airbyte","href":"/integrations/airbyte"},{"title":"Stitch in Mage","sidebarTitle":"Stitch","href":"/integrations/stitch"}]},{"group":"Transformation","pages":[{"title":"dbt Cloud in Mage","sidebarTitle":"dbt Cloud","href":"/integrations/dbt-cloud"},{"title":"Polars","href":"/integrations/polars"}]},{"group":"Observability","pages":[{"group":"Monitoring","pages":[{"title":"Writing metrics to Datadog","sidebarTitle":"Datadog","href":"/integrations/observability/datadog"},{"title":"Great Expectations","href":"/integrations/observability/great-expectations"},{"title":"Metaplane in Mage","sidebarTitle":"Metaplane","href":"/integrations/observability/metaplane"},{"title":"Monitoring with New Relic","sidebarTitle":"New Relic","href":"/integrations/observability/newrelic"},{"title":"Monitoring with Sentry","sidebarTitle":"Sentry","href":"/integrations/observability/sentry"},{"title":"Monitoring with Prometheus","sidebarTitle":"Prometheus","href":"/integrations/observability/prometheus"}]},{"group":"Alerting","pages":[{"title":"Alerting status updates in Email","sidebarTitle":"Email","href":"/integrations/observability/alerting-email"},{"title":"Alerting status updates in Opsgenie","sidebarTitle":"Opsgenie","href":"/integrations/observability/alerting-opsgenie"},{"title":"Alerting status updates in Slack","sidebarTitle":"Slack","href":"/integrations/observability/alerting-slack"},{"title":"Alerting status updates in Teams","sidebarTitle":"Teams","href":"/integrations/observability/alerting-teams"}]}]},{"group":"Reverse ETL","pages":[{"title":"Hightouch in Mage","sidebarTitle":"Hightouch","href":"/integrations/hightouch"}]}]},{"group":"Monitoring","icon":"eye","pages":[{"title":"Monitoring","sidebarTitle":"Overview","href":"/development/observability/monitoring"},{"title":"Logging","description":null,"href":"/development/observability/logging"}]},{"group":"Testing","icon":"vial","pages":[{"title":"Data validation","href":"/development/data-validation"},{"title":"Great Expectations","description":"Test the data produced by pipeline blocks using Great Expectations.","href":"/development/testing/great-expectations"},{"title":"Unit tests","href":"/development/testing/unit-tests"}]},{"title":"AI generated code","sidebarTitle":"AI generated code","icon":"microchip-ai","href":"/development/ai/overview"},{"group":"Visualizations","icon":"chart-line-up-down","pages":[{"title":"Customizable dashboards","sidebarTitle":"Dashboards","icon":"chart-tree-map","href":"/visualizations/dashboards"}]},{"group":"No-code interactions","icon":"universal-access","pages":[{"title":"No-code UI interactions","sidebarTitle":"Interactions","icon":"person-sign","href":"/interactions/overview"}]},{"title":"Updating Mage","icon":"space-station-moon-construction","href":"/development/updating-mage"}]},{"group":"About","icon":"info","pages":[{"title":"Code of Conduct","sidebarTitle":"Code of conduct","icon":"staff","href":"/about/code-of-conduct"},{"title":"Help improve the tool","sidebarTitle":"Usage statistics","icon":"calculator","href":"/about/statistics"},{"title":"Frequently Asked Questions","sidebarTitle":"FAQ","icon":"question","href":"/about/frequently-asked-questions"}]}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/overview"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/overview"}]},{"tab":"Deploy","pages":[{"title":"Deploy","href":"/production/deploying-to-cloud/architecture"}]},{"tab":"Contribute","pages":[{"title":"Contribute","href":"/contributing/overview"}]},{"tab":"Slack","href":"https://www.mage.ai/chat"}]},"basePath":"","title":"Data validation - Mage","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":[],"chunks":[]}