> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# validate_* session settings

> ClickHouse session settings in the validate_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## validate\_enum\_literals\_in\_operators

Type

Bool

Default

0

If enabled, validate enum literals in operators like `IN`, `NOT IN`, `==`, `!=` against the enum type and throw an exception if the literal is not a valid enum value.

## validate\_group\_by\_all\_key\_types

Type

Bool

Default

1

Controls whether the grouping keys that `GROUP BY ALL` expands the `SELECT` expressions into are checked against [allow\_suspicious\_types\_in\_group\_by](https://clickhouse.com/docs/reference/settings/session-settings/allow-suspicious.md#allow_suspicious_types_in_group_by). Disable it to restore the behavior of versions before 26.7, which accepted a [Variant](https://clickhouse.com/docs/reference/data-types/variant.md) or [Dynamic](https://clickhouse.com/docs/reference/data-types/dynamic.md) key written as `GROUP BY ALL`, for example a grouping key that is an untyped JSON subpath. Takes effect only when the analyzer is enabled (`enable_analyzer = 1`, the default); with the old analyzer such a key was rejected before 26.7 as well, so there is nothing to restore there. An explicit `GROUP BY` is unaffected and keeps rejecting such a key either way, so this is narrower than setting `allow_suspicious_types_in_group_by`, which also permits them in an explicit `GROUP BY`.

Possible values:

* 0 - The key types `GROUP BY ALL` expands into are not validated.
* 1 - They are validated, as an explicit `GROUP BY` validates its own keys.

## validate\_polygons

Type

Bool

Default

1

Enables or disables throwing an exception in the [pointInPolygon](https://clickhouse.com/docs/reference/functions/regular-functions/geo/coordinates.md#pointinpolygon) function, if the polygon is self-intersecting or self-tangent.

Possible values:

* 0 — Throwing an exception is disabled. `pointInPolygon` accepts invalid polygons and returns possibly incorrect results for them.
* 1 — Throwing an exception is enabled.
