Updating the tests.

This commit is contained in:
Nikolai Kochetov 2023-12-05 14:20:07 +00:00
parent 0015ec28f9
commit 43a23898e0
3 changed files with 7 additions and 12 deletions

View File

@ -13,9 +13,9 @@ CREATE TABLE default.recompression_table\n(\n `dt` DateTime,\n `key` UInt6
1_1_1 LZ4
2_2_2 ZSTD(12)
3_3_3 ZSTD(12)
1_1_1 ['plus(dt, toIntervalDay(1))']
2_2_2 ['plus(dt, toIntervalDay(1))']
3_3_3 ['plus(dt, toIntervalDay(1))']
1_1_1 ['dt + toIntervalDay(1)']
2_2_2 ['dt + toIntervalDay(1)']
3_3_3 ['dt + toIntervalDay(1)']
1_1_1 LZ4
2_2_2 LZ4
3_3_3 LZ4

View File

@ -1,18 +1,10 @@
create or replace table temp (
a UInt32
)
engine = MergeTree
order by a;
insert into temp select number from system.numbers limit 100_000;
create or replace table t_temp (
a UInt32,
timestamp DateTime
)
engine = MergeTree
order by a
TTL timestamp + INTERVAL 2 SECOND WHERE a in (select a from temp);
TTL timestamp + INTERVAL 2 SECOND WHERE a in (select number from system.numbers limit 100_000);
select sleep(1);
insert into t_temp select rand(), now() from system.numbers limit 1_000_000;