mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
21 lines
1.5 KiB
SQL
21 lines
1.5 KiB
SQL
select if(number % 2 = 0, map(1,2,3,4), map(3,4,5,6)) from numbers(2);
|
|
select if(number % 2 = 0, materialize(map(1,2,3,4)), map(3,4,5,6)) from numbers(2);
|
|
select if(number % 2 = 0, map(3,4,5,6), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(number % 2 = 0, materialize(map(3,4,5,6)), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(number % 2 = 0, map(1,2,3,4), map(3,4)) from numbers(2);
|
|
select if(number % 2 = 0, materialize(map(1,2,3,4)), map(3,4)) from numbers(2);
|
|
select if(number % 2 = 0, map(3,4,5,6), materialize(map(1,2))) from numbers(2);
|
|
select if(number % 2 = 0, materialize(map(3,4,5,6)), materialize(map(1,2))) from numbers(2);
|
|
select if(1, map(1,2,3,4), map(3,4,5,6)) from numbers(2);
|
|
select if(0, map(1,2,3,4), map(3,4,5,6)) from numbers(2);
|
|
select if(null, map(1,2,3,4), map(3,4,5,6)) from numbers(2);
|
|
select if(1, materialize(map(1,2,3,4)), map(3,4,5,6)) from numbers(2);
|
|
select if(0, materialize(map(1,2,3,4)), map(3,4,5,6)) from numbers(2);
|
|
select if(null, materialize(map(1,2,3,4)), map(3,4,5,6)) from numbers(2);
|
|
select if(1, map(3,4,5,6), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(0, map(3,4,5,6), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(null, map(3,4,5,6), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(1, materialize(map(3,4,5,6)), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(0, materialize(map(3,4,5,6)), materialize(map(1,2,3,4))) from numbers(2);
|
|
select if(null, materialize(map(3,4,5,6)), materialize(map(1,2,3,4))) from numbers(2);
|