2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: global
|
|
|
|
|
2019-09-13 11:10:41 +00:00
|
|
|
DROP TABLE IF EXISTS test1;
|
|
|
|
DROP TABLE IF EXISTS test2;
|
|
|
|
|
|
|
|
CREATE TABLE test1 (a UInt8, b Array(DateTime)) ENGINE Memory;
|
2019-09-13 14:44:04 +00:00
|
|
|
CREATE TABLE test2 as test1 ENGINE Distributed(test_shard_localhost, currentDatabase(), test1);
|
2019-09-13 11:10:41 +00:00
|
|
|
|
|
|
|
INSERT INTO test1 VALUES (1, [1, 2, 3]);
|
|
|
|
|
|
|
|
SELECT 1
|
2019-09-13 16:07:54 +00:00
|
|
|
FROM test2 AS test2
|
2019-09-13 11:10:41 +00:00
|
|
|
ARRAY JOIN arrayFilter(t -> (t GLOBAL IN
|
|
|
|
(
|
|
|
|
SELECT DISTINCT now() AS `ym:a`
|
|
|
|
WHERE 1
|
2019-09-13 20:00:28 +00:00
|
|
|
)), test2.b) AS test2_b
|
2019-09-13 11:10:41 +00:00
|
|
|
WHERE 1;
|
|
|
|
|
|
|
|
DROP TABLE test1;
|
|
|
|
DROP TABLE test2;
|