ClickHouse/tests/queries/0_stateless/01716_drop_rename_sign_column.sql
2024-05-30 19:41:08 +00:00

15 lines
417 B
SQL

DROP TABLE IF EXISTS signed_table;
CREATE TABLE signed_table (
k UInt32,
v String,
s Int8
) ENGINE CollapsingMergeTree(s) ORDER BY k;
INSERT INTO signed_table(k, v, s) VALUES (1, 'a', 1);
ALTER TABLE signed_table DROP COLUMN s; --{serverError ALTER_OF_COLUMN_IS_FORBIDDEN}
ALTER TABLE signed_table RENAME COLUMN s TO s1; --{serverError ALTER_OF_COLUMN_IS_FORBIDDEN}
DROP TABLE IF EXISTS signed_table;