Merge pull request #44359 from ClickHouse/add-test-34669

Add a test for #34669
This commit is contained in:
Han Fei 2022-12-20 11:12:34 +01:00 committed by GitHub
commit 6ace8f13db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Hello test
World test

View File

@ -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;