ClickHouse/tests/queries/0_stateless/00812_prewhere_alias_array.sql

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

5 lines
230 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS prewhere;
CREATE TABLE prewhere (x Array(UInt64), y ALIAS x, s String) ENGINE = MergeTree ORDER BY tuple();
SELECT count() FROM prewhere PREWHERE (length(s) >= 1) = 0 WHERE NOT ignore(y);
DROP TABLE prewhere;