mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
12 lines
684 B
SQL
12 lines
684 B
SQL
drop table if exists test_qualify;
|
|
create table test_qualify (number Int64) ENGINE = MergeTree ORDER BY (number);
|
|
|
|
insert into test_qualify SELECT * FROM numbers(100);
|
|
|
|
select count() from test_qualify; -- 100
|
|
select * from test_qualify qualify row_number() over (order by number) = 50 SETTINGS allow_experimental_analyzer = 1; -- 49
|
|
select * from test_qualify qualify row_number() over (order by number) = 50 SETTINGS allow_experimental_analyzer = 0; -- { serverError NOT_IMPLEMENTED }
|
|
|
|
delete from test_qualify where number in (select number from test_qualify qualify row_number() over (order by number) = 50); -- { serverError UNFINISHED }
|
|
select count() from test_qualify; -- 100
|