ClickHouse/tests/queries/0_stateless/02725_object_column_alter.sql
2023-05-05 18:45:00 +00:00

16 lines
524 B
SQL

-- Eventually this ALTER should be fixed
SET allow_experimental_object_type=1;
DROP TABLE IF EXISTS t_to;
DROP TABLE IF EXISTS t_from;
CREATE TABLE t_to (id UInt64, value Nullable(String)) ENGINE MergeTree() ORDER BY id;
CREATE TABLE t_from (id UInt64, value Object('json')) ENGINE MergeTree() ORDER BY id;
ALTER TABLE t_to MODIFY COLUMN value Object('json'); -- { serverError BAD_ARGUMENTS }
ALTER TABLE t_from MODIFY COLUMN value Nullable(String); -- { serverError BAD_ARGUMENTS }
DROP TABLE t_to;
DROP TABLE t_from;