mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
31 lines
1.1 KiB
MySQL
31 lines
1.1 KiB
MySQL
|
SELECT ('1',2) AS t, t.1, t.2;
|
||
|
SELECT materialize(('1',2)) AS t, t.1, t.2;
|
||
|
SELECT (materialize('1'),2) AS t, t.1, t.2;
|
||
|
SELECT ('1',materialize(2)) AS t, t.1, t.2;
|
||
|
SELECT (materialize('1'),materialize(2)) AS t, t.1, t.2;
|
||
|
|
||
|
SELECT [('1',2)] AS t, t[1].1, t[1].2;
|
||
|
SELECT [materialize(('1',2))] AS t, t[1].1, t[1].2;
|
||
|
SELECT [(materialize('1'),2)] AS t, t[1].1, t[1].2;
|
||
|
SELECT [('1',materialize(2))] AS t, t[1].1, t[1].2;
|
||
|
SELECT [(materialize('1'),materialize(2))] AS t, t[1].1, t[1].2;
|
||
|
SELECT materialize([('1',2)]) AS t, t[1].1, t[1].2;
|
||
|
|
||
|
SELECT [((1, materialize('2')), [(3, [4])])] AS thing,
|
||
|
thing[1],
|
||
|
thing[1].1,
|
||
|
thing[1].2,
|
||
|
thing[1].1.1,
|
||
|
thing[1].1.2,
|
||
|
(thing[1].2)[1],
|
||
|
(thing[1].2)[1].1,
|
||
|
(thing[1].2)[1].2,
|
||
|
((thing[1].2)[1].2)[1];
|
||
|
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), [('1',2)]);
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), [materialize(('1',2))]);
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), [(materialize('1'),2)]);
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), [('1',materialize(2))]);
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), [(materialize('1'),materialize(2))]);
|
||
|
select arrayMap(t->tuple(t.1, t.2*2), materialize([('1',2)]));
|