ClickHouse/tests/queries/0_stateless/02834_array_exists_segfault.sql
Nikolay Degterinsky 9918a85e78 Better
2023-09-07 02:35:21 +00:00

5 lines
287 B
SQL

DROP TABLE IF EXISTS 02834_t;
CREATE TABLE 02834_t (id UInt64, arr Array(UInt64)) ENGINE = MergeTree ORDER BY id;
WITH subquery AS (SELECT []) SELECT t.* FROM 02834_t AS t JOIN subquery ON arrayExists(x -> x = 1, t.arr); -- { serverError INVALID_JOIN_ON_EXPRESSION }
DROP TABLE 02834_t;