Additional settings
Test a contract on a sample
When testing a data contract, Soda allows you to run contract validation on a sample of your dataset instead of the full data. This feature helps you quickly and cost-efficiently verify that your contract runs correctly before executing full scans.
Running a test contract on a sample enables you to:
Validate that your contract syntax, checks, and filters work as expected.
Reduce data warehouse compute cost while verifying new or updated contracts.
Iterate faster on contract definitions in development environments.
Results from sampled runs reflect only a subset of your data and may not represent its actual quality. Use full verification once your contract logic is validated.
Enable sampling for test contracts
This feature can be enabled at the data source level, applying to all datasets that use that connection.
To enable this feature:
Go to Data sources.
Click Edit connection for a data source.

Under the Connection Details section, toggle Data Sampling.
Specify your sample size on the Limit field.

Click Connect.
Last updated
Was this helpful?
