ClickHouse/tests/queries/0_stateless/02292_nested_not_flattened_detach.sql
2022-04-29 14:53:08 +00:00

18 lines
390 B
SQL

DROP TABLE IF EXISTS t_nested_detach;
SET flatten_nested = 0;
CREATE TABLE t_nested_detach (n Nested(u UInt32, s String)) ENGINE = Log;
SHOW CREATE TABLE t_nested_detach;
DESC TABLE t_nested_detach;
SET flatten_nested = 1;
DETACH TABLE t_nested_detach;
ATTACH TABLE t_nested_detach;
SHOW CREATE TABLE t_nested_detach;
DESC TABLE t_nested_detach;
DROP TABLE IF EXISTS t_nested_detach;