mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Update test (found bug in previous implementation)
This commit is contained in:
parent
268d7d70fc
commit
3355894631
@ -1,4 +1,5 @@
|
||||
-- { echoOn }
|
||||
set use_with_fill_by_sorting_prefix=1;
|
||||
-- corner case with constant sort prefix
|
||||
SELECT number
|
||||
FROM numbers(1)
|
||||
@ -72,3 +73,14 @@ select * from ts order by sensor_id, timestamp with fill from 6 to 10 step 1 int
|
||||
5 7 9999
|
||||
5 8 9999
|
||||
5 9 9999
|
||||
select * from ts order by sensor_id, timestamp with fill from 6 to 10 step 1 interpolate (value as 9999) settings use_with_fill_by_sorting_prefix=0;
|
||||
1 6 9999
|
||||
1 7 9999
|
||||
1 8 9999
|
||||
1 9 9999
|
||||
1 10 1
|
||||
1 12 1
|
||||
3 5 1
|
||||
3 7 1
|
||||
5 1 1
|
||||
5 3 1
|
||||
|
@ -1,4 +1,6 @@
|
||||
-- { echoOn }
|
||||
set use_with_fill_by_sorting_prefix=1;
|
||||
|
||||
-- corner case with constant sort prefix
|
||||
SELECT number
|
||||
FROM numbers(1)
|
||||
@ -30,3 +32,4 @@ insert into ts VALUES (5, 1, 1), (5, 3, 1);
|
||||
select * from ts order by sensor_id, timestamp with fill step 1 settings max_block_size=2;
|
||||
|
||||
select * from ts order by sensor_id, timestamp with fill from 6 to 10 step 1 interpolate (value as 9999);
|
||||
select * from ts order by sensor_id, timestamp with fill from 6 to 10 step 1 interpolate (value as 9999) settings use_with_fill_by_sorting_prefix=0;
|
||||
|
Loading…
Reference in New Issue
Block a user