Files
impala/testdata/workloads/functional-query/queries/QueryTest/null_data.test
Taras Bobrovytsky b8b7930377 Add nested types support to Create Table Like File
Add support for creating a table based on a parquet file which contains arrays,
structs and/or maps.

Change-Id: I56259d53a3d9b82f318228e864c783b48a03f9ae
Reviewed-on: http://gerrit.cloudera.org:8080/582
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Internal Jenkins
2015-08-22 01:46:26 +00:00

41 lines
999 B
Plaintext

====
---- QUERY
# Test for selecting from table with null and empty strings.
select * from nulltable
---- RESULTS
'a','','NULL',NULL,NULL,'a\x00b','\x00'
---- TYPES
string, string, string, int, double, string, string
====
---- QUERY
select count(*),count(a),count(b),count(c),count(d),count(e),count(f),count(g)
from nulltable
---- RESULTS
1,1,1,0,0,0,1,1
---- TYPES
bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint
====
---- QUERY
select length(f),length(g)
from nulltable
---- RESULTS
3,1
---- TYPES
int, int
====
---- QUERY
# Test for selecting from table with '\' escape character with null and empty strings.
select * from nullescapedtable
---- RESULTS
'a','','NULL',NULL,NULL,'a\x00b','\x00'
---- TYPES
string, string, string, int, double, string, string
====
---- QUERY
select count(*),count(a),count(b),count(c),count(d),count(e),count(f),count(g)
from nullescapedtable
---- RESULTS
1,1,1,0,0,0,1,1
---- TYPES
bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint
====