mirror of
https://github.com/apache/impala.git
synced 2026-01-08 03:02:48 -05:00
39 lines
953 B
Plaintext
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
|
|
====
|