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

18 lines
426 B
SQL

DROP TABLE IF EXISTS sometable;
CREATE TABLE sometable (
date Date,
time Int64,
value UInt64
) ENGINE=MergeTree()
ORDER BY time;
INSERT INTO sometable (date, time, value) VALUES ('2019-11-08', 1573185600, 100);
SELECT COUNT() from sometable;
INSERT INTO sometable (date, time, value, time) VALUES ('2019-11-08', 1573185600, 100, 1573185600); -- {serverError DUPLICATE_COLUMN}
DROP TABLE IF EXISTS sometable;