mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Close #8687
This commit is contained in:
parent
0fecf98042
commit
190703b603
@ -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
|
24
tests/queries/0_stateless/03258_multiple_array_joins.sql
Normal file
24
tests/queries/0_stateless/03258_multiple_array_joins.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user