mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #44359 from ClickHouse/add-test-34669
Add a test for #34669
This commit is contained in:
commit
6ace8f13db
@ -0,0 +1,2 @@
|
||||
Hello test
|
||||
World test
|
@ -0,0 +1,19 @@
|
||||
DROP TABLE IF EXISTS x;
|
||||
CREATE TABLE x ( `arr.key` Array(String), `arr.value` Array(String), `n` String ) ENGINE = Memory;
|
||||
INSERT INTO x VALUES (['Hello', 'World'], ['abc', 'def'], 'test');
|
||||
|
||||
SELECT
|
||||
key,
|
||||
any(toString(n))
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
arr.key AS key,
|
||||
n
|
||||
FROM x
|
||||
ARRAY JOIN arr
|
||||
)
|
||||
GROUP BY key
|
||||
ORDER BY key;
|
||||
|
||||
DROP TABLE x;
|
Loading…
Reference in New Issue
Block a user