dbms: added test [#METR-16700].

This commit is contained in:
Alexey Milovidov 2015-06-18 00:11:03 +03:00
parent b6ccb2f6f5
commit fc9bbaa2c1
2 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,100 @@
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
['abc']
['Hello','World']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
[]
['Hello','','World!']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']
['','']
['']

View File

@ -0,0 +1,12 @@
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;