ClickHouse/tests/queries/0_stateless/01614_with_fill_with_limit.sql
2020-12-28 13:05:16 +03:00

16 lines
303 B
SQL

SELECT
toFloat32(number % 10) AS n,
'original' AS source
FROM numbers(10)
WHERE (number % 3) = 1
ORDER BY n ASC WITH FILL STEP 1
LIMIT 2;
SELECT
toFloat32(number % 10) AS n,
'original' AS source
FROM numbers(10)
WHERE (number % 3) = 1
ORDER BY n ASC WITH FILL STEP 1
LIMIT 2 WITH TIES;