ClickHouse/tests/queries/0_stateless/01710_projection_drop_if_exists.sql
2022-02-04 14:31:58 +03:00

14 lines
421 B
SQL

-- Tags: no-s3-storage
drop table if exists tp;
create table tp (x Int32, y Int32, projection p (select x, y order by x)) engine = MergeTree order by y;
alter table tp drop projection pp; -- { serverError 582 }
alter table tp drop projection if exists pp;
alter table tp drop projection if exists p;
alter table tp drop projection p; -- { serverError 582 }
alter table tp drop projection if exists p;
drop table tp;