ClickHouse/tests/queries/0_stateless/00876_wrong_arraj_join_column.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

10 lines
238 B
SQL

DROP TABLE IF EXISTS visits;
CREATE TABLE visits (str String) ENGINE = MergeTree ORDER BY (str);
SELECT 1
FROM visits
ARRAY JOIN arrayFilter(t -> 1, arrayMap(x -> tuple(x), [42])) AS i
WHERE ((str, i.1) IN ('x', 0));
DROP TABLE visits;