# Using table filtering for data warehouses and Spark-based data connectors

Some Tonic Structural data connectors do not support subsetting.

However, for the following connectors that do not support subsetting, to generate a smaller set of data, you instead can add table filters.

* [Databricks](https://docs.tonic.ai/app/setting-up-your-database/databricks)
* [Google BigQuery](https://docs.tonic.ai/app/setting-up-your-database/google-bigquery)

The [Snowflake](https://docs.tonic.ai/app/setting-up-your-database/snowflake) and [Amazon Redshift](https://docs.tonic.ai/app/setting-up-your-database/amazon-redshift) data connectors support both subsetting and table filtering:

You can only filter tables that use De-identify table mode. The filter identifies the rows from the source database to process and include in the destination database.

Note that unlike subsetting, table filters do not guarantee referential integrity.

To add a filter, in the **Table Filter** text area on the table mode panel, provide the `WHERE` clause for the filter, then click **Apply**.

<figure><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FnMWoSqhQDxZux5mhXoV3%2FTableModeConfigBigQuery.png?alt=media&#x26;token=96960b12-fb16-40c9-a886-1a621f50903d" alt=""><figcaption><p>Table mode configuration panel for a <br>Google BigQuery workspace</p></figcaption></figure>

For Databricks workspaces where the source database uses Delta files, the filter `WHERE` clause can only refer to columns that have partitions.

For Google BigQuery, the filter `WHERE` clause can refer to columns without partitions. However, the performance is better when the referenced columns have partitions.

On the workspace configuration for Databricks, the **Enable partition filter validation** toggle determines whether Structural validates the `WHERE` clause when you create it. By default, the toggle is in the on position, and the `WHERE` clause is validated.

For Amazon Redshift, Google BigQuery, and Snowflake, Structural always validates the `WHERE` clause.
