ClickHouse/docs/en/sql-reference/statements/alter/reset.md
2021-07-25 14:11:17 +00:00

893 B

RESET SETTING

This query resets table settings to their default values. Several settings may be reset in a single query. If a setting was set previously then it is removed from table's metadata. If a setting has default value already then no action is taken. The query raises an exception if the setting does not exist.

!!! note "Note" RESET statement can be applied only to MergeTree tables.

Syntax

ALTER TABLE [db.]table RESET SETTING setting_name [, ...];

Example

CREATE TABLE example_table (id UInt32, data String) 
    ENGINE=MergeTree() ORDER BY id
    SETTINGS max_part_loading_threads=8;
    
ALTER TABLE example_table RESET SETTING max_part_loading_threads;

See Also