This commit is contained in:
Alexey Milovidov 2024-10-29 05:32:52 +01:00
parent 0fecf98042
commit 190703b603
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,8 @@
1 Michel Foucault alive no
1 Michel Foucault profession philosopher
1 Thomas Aquinas alive no
1 Thomas Aquinas profession philosopher
2 Nicola Tesla alive no
2 Nicola Tesla profession inventor
2 Thomas Edison alive no
2 Thomas Edison profession inventor

View File

@ -0,0 +1,24 @@
DROP TABLE IF EXISTS test_multiple_array_join;
CREATE TABLE test_multiple_array_join (
id UInt64,
person Nested (
name String,
surname String
),
properties Nested (
key String,
value String
)
) Engine=MergeTree ORDER BY id;
INSERT INTO test_multiple_array_join VALUES (1, ['Thomas', 'Michel'], ['Aquinas', 'Foucault'], ['profession', 'alive'], ['philosopher', 'no']);
INSERT INTO test_multiple_array_join VALUES (2, ['Thomas', 'Nicola'], ['Edison', 'Tesla'], ['profession', 'alive'], ['inventor', 'no']);
SELECT *
FROM test_multiple_array_join
ARRAY JOIN person
ARRAY JOIN properties
ORDER BY ALL;
DROP TABLE test_multiple_array_join;