Update test (found bug in previous implementation)

This commit is contained in:
Igor Nikonov 2023-05-13 21:43:27 +00:00
parent 268d7d70fc
commit 3355894631
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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;