blob: 266d9046172d5b02db0975807e5fb023b7d49031 [file] [log] [blame]
====
---- QUERY
select id from complextypestbl
---- RESULTS
1
2
3
4
5
6
7
8
---- TYPES
bigint
====
---- QUERY
select count(*) from complextypestbl
---- RESULTS
8
---- TYPES
bigint
====
---- QUERY
select id from complextypestbl where id > 3
---- RESULTS
4
5
6
7
8
---- TYPES
bigint
====
---- QUERY
select item from complextypestbl.int_array
---- RESULTS
1
2
3
NULL
1
2
NULL
3
NULL
-1
---- TYPES
int
====
---- QUERY
select count(*) from complextypestbl.int_array
---- RESULTS
10
---- TYPES
bigint
====
---- QUERY
select count(item) from complextypestbl.int_array
---- RESULTS
7
---- TYPES
bigint
====
---- QUERY
select item from complextypestbl.int_array_array.item
---- RESULTS
1
2
3
4
NULL
1
2
NULL
3
NULL
4
5
6
-1
-2
---- TYPES
int
====
---- QUERY
select item from complextypestbl.int_array_array.item where item > 3
---- RESULTS
4
4
5
6
---- TYPES
int
====
---- QUERY
select count(*) from complextypestbl.int_array_array.item
---- RESULTS
15
---- TYPES
bigint
====
---- QUERY
select count(item) from complextypestbl.int_array_array.item
---- RESULTS
12
---- TYPES
bigint
====
---- QUERY
select count(*) from complextypestbl.int_array_array
---- RESULTS
11
---- TYPES
bigint
====
---- QUERY
select nested_struct.a from complextypestbl
---- RESULTS
1
NULL
NULL
NULL
NULL
NULL
7
-1
---- TYPES
int
====
---- QUERY
select count(nested_struct.a) from complextypestbl
---- RESULTS
3
---- TYPES
bigint
====
---- QUERY
select item from complextypestbl.nested_struct.b
---- RESULTS
1
NULL
2
3
NULL
-1
---- TYPES
int
====
---- QUERY
select count(*) from complextypestbl.nested_struct.b
---- RESULTS
6
---- TYPES
bigint
====
---- QUERY
select count(item) from complextypestbl.nested_struct.b
---- RESULTS
4
---- TYPES
bigint
====
---- QUERY
select item from complextypestbl.nested_struct.b where item is null;
---- RESULTS
NULL
NULL
---- TYPES
int
====
---- QUERY
select inner_array.item.e from complextypestbl.nested_struct.c.d.item inner_array
---- RESULTS
10
-10
11
NULL
10
NULL
-10
NULL
11
NULL
NULL
-1
---- TYPES
int
====
---- QUERY
select count(inner_array.item.e) from complextypestbl.nested_struct.c.d.item inner_array
---- RESULTS
7
---- TYPES
bigint
====
---- QUERY
select count(*) from complextypestbl.nested_struct.c.d.item inner_array
---- RESULTS
12
---- TYPES
bigint
====
---- QUERY
select count(*) from complextypestbl.nested_struct.c.d.item inner_array
where inner_array.item.f = 'bbb'
---- RESULTS
2
---- TYPES
bigint
====
---- QUERY
select inner_array.item.e, inner_array.item.f
from complextypestbl.nested_struct.c.d.item inner_array
---- RESULTS
10,'aaa'
-10,'bbb'
11,'c'
NULL,'NULL'
10,'aaa'
NULL,'NULL'
-10,'bbb'
NULL,'NULL'
11,'c'
NULL,'NULL'
NULL,'NULL'
-1,'nonnullable'
---- TYPES
int,string
====
---- QUERY
select count(*) from complextypestbl.nested_struct.c.d
---- RESULTS
10
---- TYPES
bigint
====
---- QUERY
# IMPALA-10482: Select-star query on unrelative collection column of transactional
# table hits IllegalStateException
select * from complextypestbl.int_array;
---- RESULTS
1
2
3
NULL
1
2
NULL
3
NULL
-1
---- TYPES
INT
====
---- QUERY
# IMPALA-10482: Select-star query on unrelative collection column of transactional
# table hits IllegalStateException
select * from complextypestbl.int_array_array.item
---- RESULTS
-1
-2
1
2
3
4
NULL
1
2
NULL
3
NULL
4
5
6
---- TYPES
INT
====
---- QUERY
# IMPALA-10482: Select-star query on unrelative collection column of transactional
# table hits IllegalStateException
select * from complextypestbl.nested_struct.c.d.item;
---- RESULTS
-1,'nonnullable'
10,'aaa'
-10,'bbb'
11,'c'
NULL,'NULL'
10,'aaa'
NULL,'NULL'
-10,'bbb'
NULL,'NULL'
11,'c'
NULL,'NULL'
NULL,'NULL'
---- TYPES
INT,STRING
====
---- QUERY
# IMPALA-10482: Select-star query on unrelative collection column of transactional
# table hits IllegalStateException
select * from complextypestbl.int_array a1, complextypestbl.int_array a2
order by 1,2
limit 10;
---- RESULTS
-1,-1
-1,1
-1,1
-1,2
-1,2
-1,3
-1,3
-1,NULL
-1,NULL
-1,NULL
---- TYPES
INT,INT
====
---- QUERY
select *
from complextypestbl.int_array a1, complextypestbl.int_array a2
where a1.item=a2.item and a1.item < 2;
---- RESULTS
1,1
1,1
1,1
1,1
-1,-1
---- TYPES
INT,INT
====
---- QUERY
# IMPALA-10493: Use ON clause to join full ACID collections
select *
from complextypestbl.int_array a1 join complextypestbl.int_array a2
on a1.item=a2.item
where a1.item < 2;
---- RESULTS
1,1
1,1
1,1
1,1
-1,-1
---- TYPES
INT,INT
====
---- QUERY
# IMPALA-10493: Use USING clause to join full ACID collections
select a1.item, a2.item
from complextypestbl.int_array a1 join complextypestbl.int_array a2
using (item) where a1.item != 1;
---- RESULTS
-1,-1
2,2
2,2
3,3
3,3
2,2
2,2
3,3
3,3
---- TYPES
INT,INT
====
---- QUERY
select count(*) from complextypestbl.int_array a1, complextypestbl.int_array a2;
---- RESULTS
100
====
---- QUERY
select count(*) from complextypestbl.int_array a1, complextypestbl.int_array a2
where a1.item=a2.item and a1.item > 1;
---- RESULTS
8
====
---- QUERY
select pos, item from pos_item_key_value_complextypestbl;
---- RESULTS
1,1
2,2
3,3
4,4
5,5
6,6
7,7
8,8
---- TYPES
BIGINT,INT
====
---- QUERY
select pos, item from pos_item_key_value_complextypestbl.int_array;
---- RESULTS
0,-1
0,1
1,2
2,3
0,NULL
1,1
2,2
3,NULL
4,3
5,NULL
---- TYPES
BIGINT,INT
====
---- QUERY
select key, value from pos_item_key_value_complextypestbl;
---- RESULTS
'1',1
'2',2
'3',3
'4',4
'5',5
'6',6
'7',7
'8',8
---- TYPES
STRING,INT
====
---- QUERY
select key, value from pos_item_key_value_complextypestbl.int_map;
---- RESULTS
'k1',-1
'k1',1
'k2',100
'k1',2
'k2',NULL
'k1',NULL
'k3',NULL
---- TYPES
STRING,INT
====