ClickHouse/tests/queries/0_stateless/01379_with_fill_several_columns.sql

22 lines
543 B
MySQL
Raw Normal View History

SELECT
2020-11-24 09:52:35 +00:00
toDate(toDateTime((number * 10) * 86400, 'Europe/Moscow')) AS d1,
toDate(toDateTime(number * 86400, 'Europe/Moscow')) AS d2,
'original' AS source
FROM numbers(10)
WHERE (number % 3) = 1
ORDER BY
d2 WITH FILL,
d1 WITH FILL STEP 5;
SELECT '===============';
SELECT
2020-11-24 09:52:35 +00:00
toDate(toDateTime((number * 10) * 86400, 'Europe/Moscow')) AS d1,
toDate(toDateTime(number * 86400, 'Europe/Moscow')) AS d2,
'original' AS source
FROM numbers(10)
WHERE (number % 3) = 1
ORDER BY
d1 WITH FILL STEP 5,
2020-11-24 09:52:35 +00:00
d2 WITH FILL;