mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
13 lines
889 B
MySQL
13 lines
889 B
MySQL
|
SELECT number % 2 ? ['Hello', 'World'] : ['abc'] FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? materialize(['Hello', 'World']) : ['abc'] FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? ['Hello', 'World'] : materialize(['abc']) FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? materialize(['Hello', 'World']) : materialize(['abc']) FROM system.numbers LIMIT 10;
|
||
|
|
||
|
SELECT number % 2 ? ['Hello', '', 'World!'] : emptyArrayString() FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? materialize(['Hello', '', 'World!']) : emptyArrayString() FROM system.numbers LIMIT 10;
|
||
|
|
||
|
SELECT number % 2 ? [''] : ['', ''] FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? materialize(['']) : ['', ''] FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? [''] : materialize(['', '']) FROM system.numbers LIMIT 10;
|
||
|
SELECT number % 2 ? materialize(['']) : materialize(['', '']) FROM system.numbers LIMIT 10;
|