Added test [#CLICKHOUSE-3202].

This commit is contained in:
Alexey Milovidov 2017-08-05 05:24:13 +03:00 committed by alexey-milovidov
parent 49bdf266b0
commit 07b24dd646
2 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,80 @@
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world
world
hello
world
hello
world

View File

@ -0,0 +1,19 @@
SELECT number % 2 ? 'hello' : 'world' FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize('hello') : 'world' FROM system.numbers LIMIT 5;
SELECT number % 2 ? 'hello' : materialize('world') FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize('hello') : materialize('world') FROM system.numbers LIMIT 5;
SELECT number % 2 ? toFixedString('hello', 5) : 'world' FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize(toFixedString('hello', 5)) : 'world' FROM system.numbers LIMIT 5;
SELECT number % 2 ? toFixedString('hello', 5) : materialize('world') FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize(toFixedString('hello', 5)) : materialize('world') FROM system.numbers LIMIT 5;
SELECT number % 2 ? 'hello' : toFixedString('world', 5) FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize('hello') : toFixedString('world', 5) FROM system.numbers LIMIT 5;
SELECT number % 2 ? 'hello' : materialize(toFixedString('world', 5)) FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize('hello') : materialize(toFixedString('world', 5)) FROM system.numbers LIMIT 5;
SELECT number % 2 ? toFixedString('hello', 5) : toFixedString('world', 5) FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize(toFixedString('hello', 5)) : toFixedString('world', 5) FROM system.numbers LIMIT 5;
SELECT number % 2 ? toFixedString('hello', 5) : materialize(toFixedString('world', 5)) FROM system.numbers LIMIT 5;
SELECT number % 2 ? materialize(toFixedString('hello', 5)) : materialize(toFixedString('world', 5)) FROM system.numbers LIMIT 5;