> ## 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.

# add_minmax_* MergeTree table settings

> ClickHouse MergeTree table settings in the add_minmax_* generated group.

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>Type</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>Default</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          Changeable without restart
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

These settings are available in [system.merge\_tree\_settings](/docs/reference/system-tables/merge_tree_settings) and are autogenerated from ClickHouse source.

<h2 id="add_minmax_index_for_block_number_column">
  add\_minmax\_index\_for\_block\_number\_column
</h2>

<SettingsInfoBlock type="Bool" default_value="0" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.5"},{"label": "0"},{"label": "New setting."}]}]} />

When enabled, an implicit min-max (skipping) index is added for the persistent virtual column `_block_number`.
Requires `enable_block_number_column = 1` to take effect. The index is built only during merges,
not during inserts: at insert time the block number is provisional and would index a constant.

<h2 id="add_minmax_index_for_block_offset_column">
  add\_minmax\_index\_for\_block\_offset\_column
</h2>

<SettingsInfoBlock type="Bool" default_value="0" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.5"},{"label": "0"},{"label": "New setting."}]}]} />

When enabled, an implicit min-max (skipping) index is added for the persistent virtual column `_block_offset`.
Requires `enable_block_offset_column = 1` to take effect. The index is built only during merges,
not during inserts.

<h2 id="add_minmax_index_for_numeric_columns">
  add\_minmax\_index\_for\_numeric\_columns
</h2>

<SettingsInfoBlock type="Bool" default_value="0" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "25.1"},{"label": "0"},{"label": "New setting"}]}]} />

When enabled, min-max (skipping) indices are added for all numeric columns
of the table.

<h2 id="add_minmax_index_for_string_columns">
  add\_minmax\_index\_for\_string\_columns
</h2>

<SettingsInfoBlock type="Bool" default_value="0" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "25.1"},{"label": "0"},{"label": "New setting"}]}]} />

When enabled, min-max (skipping) indices are added for all string columns of the table.

<h2 id="add_minmax_index_for_temporal_columns">
  add\_minmax\_index\_for\_temporal\_columns
</h2>

<SettingsInfoBlock type="Bool" default_value="0" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.2"},{"label": "0"},{"label": "New setting"}]}]} />

When enabled, min-max (skipping) indices are added for all Date, Date32, Time, Time64, DateTime and DateTime64 columns of the table
