ClickHouse/tests/queries/0_stateless/00812_prewhere_alias_array.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

5 lines
230 B
SQL

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;