ClickHouse/tests/queries/0_stateless/02725_object_column_alter.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
524 B
MySQL
Raw Normal View History

-- 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;