mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
19 lines
322 B
MySQL
19 lines
322 B
MySQL
|
DROP TABLE IF EXISTS test;
|
||
|
|
||
|
CREATE TABLE test
|
||
|
(
|
||
|
`Source.C1` Array(UInt64),
|
||
|
`Source.C2` Array(UInt64)
|
||
|
)
|
||
|
ENGINE = MergeTree()
|
||
|
ORDER BY tuple();
|
||
|
|
||
|
SET optimize_move_functions_out_of_any = 1;
|
||
|
|
||
|
SELECT any(arrayFilter((c, d) -> (4 = d), `Source.C1`, `Source.C2`)[1]) AS x
|
||
|
FROM test
|
||
|
WHERE 0
|
||
|
GROUP BY 42;
|
||
|
|
||
|
DROP TABLE test;
|