ClickHouse/tests/queries/0_stateless/02280_add_query_level_settings.sql

18 lines
638 B
MySQL
Raw Normal View History

2022-04-18 04:15:41 +00:00
DROP TABLE IF EXISTS table_for_alter;
CREATE TABLE table_for_alter (
id UInt64,
Data String
) ENGINE = MergeTree() ORDER BY id SETTINGS parts_to_throw_insert = 1, parts_to_delay_insert = 1;
INSERT INTO table_for_alter VALUES (1, '1');
INSERT INTO table_for_alter VALUES (2, '2'); -- { serverError 252 }
INSERT INTO table_for_alter settings parts_to_throw_insert = 100, parts_to_delay_insert = 100 VALUES (2, '2');
INSERT INTO table_for_alter VALUES (3, '3'); -- { serverError 252 }
ALTER TABLE table_for_alter MODIFY SETTING parts_to_throw_insert = 100, parts_to_delay_insert = 100;
2022-04-18 04:21:48 +00:00
INSERT INTO table_for_alter VALUES (3, '3');