Files
impala/testdata/workloads/functional-query/queries/QueryTest/misc.test
2014-01-08 10:44:40 -08:00

39 lines
953 B
Plaintext

# Test for selecting from table with null and empty strings.
select * from nulltable$TABLE
---- TYPES
string, string, string, int, double
---- RESULTS
'a','','NULL',NULL,NULL
====
select count(*),count(a),count(b),count(c),count(d),count(e) from nulltable$TABLE
---- TYPES
bigint, bigint, bigint, bigint, bigint, bigint
---- RESULTS
1,1,1,0,0,0
====
# Test for selecting from table with '\' escape character with null and empty strings.
select * from nullescapedtable$TABLE
---- TYPES
string, string, string, int, double
---- RESULTS
'a','','NULL',NULL,NULL
====
select count(*),count(a),count(b),count(c), count(d), count(e) from nullescapedtable$TABLE
---- TYPES
bigint, bigint, bigint, bigint, bigint, bigint
---- RESULTS
1,1,1,0,0,0
====
# Test to select from table with additional columns at the end that are not in the
# schema
select * from tblwithcolspastend$TABLE
---- TYPES
string, int
---- RESULTS
'hello',1
'foo',2
'a',3
'b',4
'end',0
====