ClickHouse/tests/queries/0_stateless/02834_array_exists_segfault.sql

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

5 lines
287 B
MySQL
Raw Normal View History

2023-09-07 02:35:21 +00:00
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 }
2023-09-07 02:35:21 +00:00
DROP TABLE 02834_t;