mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
31 lines
1.1 KiB
SQL
31 lines
1.1 KiB
SQL
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)]));
|