ClickHouse/tests/queries/0_stateless/02429_offset_pipeline_stuck_bug.sql

5 lines
205 B
SQL

CREATE TABLE t ENGINE = Log AS SELECT * FROM system.numbers LIMIT 20;
SET enable_optimize_predicate_expression = 0;
SELECT number FROM (select number FROM t ORDER BY number OFFSET 3) WHERE number < NULL;