ClickHouse/tests/queries/0_stateless/02100_limit_push_down_bug.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
267 B
MySQL
Raw Normal View History

drop table if exists tbl_repr;
CREATE TABLE tbl_repr(
ts DateTime,
x String)
ENGINE=MergeTree ORDER BY ts;
SELECT *
FROM
(
SELECT
x,
length(x)
FROM tbl_repr
WHERE ts > now()
LIMIT 1
)
WHERE x != '';
drop table if exists tbl_repr;