> For the complete documentation index, see [llms.txt](https://docs.soda.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soda.io/soda-documentation/connect/onboard-data-sources-and-datasets/onboard-datasets-on-soda-cloud/additional-settings.md).

# Additional settings

## Test a contract on a sample

{% hint style="warning" %}
Currently, **this feature is only supported in Snowflake data sources**.
{% endhint %}

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 <a href="#fe3e56b4-c951-4d56-9b18-e7e4a92ce408" id="fe3e56b4-c951-4d56-9b18-e7e4a92ce408"></a>

This feature can be enabled at the **data source level**, applying to **all datasets** that use that connection.

{% hint style="warning" %}
You need the "**Manage data sources**" global permission to add a new data source. Learn more about [Global and Dataset Roles](https://docs.soda.io/soda-documentation/govern/organization-and-admin-settings/global-and-dataset-roles.md).
{% endhint %}

To enable this feature:

1. Go to **Data sources**.
2. Click **Edit connection** for a data source.

<figure><img src="https://1123167021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2PmHkO5cBgeRPdiPPOG%2Fuploads%2FURoxSsfsC9TDB9mJH65D%2Fimage.png?alt=media&amp;token=08eb4560-8ba1-4095-8851-c2f21e466a82" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1123167021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA2PmHkO5cBgeRPdiPPOG%2Fuploads%2Fey6zFYu73Ys12Ut6ivUO%2Fimage.png?alt=media&amp;token=387f86dc-c019-4187-8fac-de12fa0ddef2" alt="" width="375"><figcaption></figcaption></figure>

5. <i class="fa-octagon-check">:octagon-check:</i> Click **Connect**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.soda.io/soda-documentation/connect/onboard-data-sources-and-datasets/onboard-datasets-on-soda-cloud/additional-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
