mirror of
https://github.com/apache/impala.git
synced 2025-12-30 12:02:10 -05:00
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
41 lines
999 B
Plaintext
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
|
|
==== |