---
title: DELTA_CLUSTER_BY_VARIANT_STATS_NOT_ENABLED error condition
description: Documentation for the DELTA\_CLUSTER\_BY\_VARIANT\_STATS\_NOT\_ENABLED error condition on Databricks
canonical_url: https://docs.databricks.com/gcp/en/error-messages/delta-cluster-by-variant-stats-not-enabled-error-class
---

# DELTA\_CLUSTER\_BY\_VARIANT\_STATS\_NOT\_ENABLED error condition

[SQLSTATE: 0A000](https://docs.databricks.com/gcp/en/error-messages/sqlstates.md#class-0a-feature-not-supported)

Clustering by variant\_get expressions requires variant statistics collection to be enabled. Without variant statistics, `OPTIMIZE` cannot cluster newly written files.

## SQL\_CONFS

Set the following SQL configurations: `<unmetConfs>`.

## TABLE\_PROPERTIES

Set the following table properties: `<unmetTableProperties>`.

## TABLE\_PROPERTIES\_AND\_SQL\_CONFS

Set the following table properties: `<unmetTableProperties>`. Set the following SQL configurations: `<unmetConfs>`.
