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

5 lines
250 B
MySQL
Raw Normal View History

2018-10-14 08:05:13 +00:00
DROP TABLE IF EXISTS test.prewhere;
CREATE TABLE test.prewhere (x Array(UInt64), y ALIAS x, s String) ENGINE = MergeTree ORDER BY tuple();
SELECT count() FROM test.prewhere PREWHERE (length(s) >= 1) = 0 WHERE NOT ignore(y);
2018-10-14 08:05:13 +00:00
DROP TABLE test.prewhere;