mirror of
https://github.com/apache/impala.git
synced 2026-01-04 09:00:56 -05:00
Failure due to an issue with NULL tuples (IMPALA-2375) where NULL tuples come from the right side of a left outer join where the right side comes from an inline view which produces 0 slots (e.g. the view selects a constant). The HJ doesn't handle them correctly because the planner inserts an IsTupleNull expr. This isn't an issue for the PHJ because the BufferedTupleStream returns non-NULL Tuple* ptrs even for tuples with no slots. Per IMPALA-2375, we're going to address this after 2.3, so moving this test case into joins-partitioned.test which only runs on the PHJ. Change-Id: I64cb7e8ffd60f3379aa8860135db5af8e66d686f Reviewed-on: http://gerrit.cloudera.org:8080/1231 Reviewed-by: Marcel Kornacker <marcel@cloudera.com> Tested-by: Internal Jenkins
37 lines
994 B
Plaintext
37 lines
994 B
Plaintext
====
|
|
---- QUERY
|
|
# Regression test for IMPALA-1987. Equi-join predicates of outer joins contain
|
|
# TupleIsNullPredicate exprs.
|
|
# TODO: Move back to inline-views.test when this works with the non-partitioned hash
|
|
# join (IMPALA-2375).
|
|
select t1.int_col, t2.int_col, t3.id
|
|
from alltypestiny t1 left outer join
|
|
(select coalesce(int_col, 384) as int_col from alltypestiny) t2
|
|
on t1.int_col = t2.int_col
|
|
left outer join
|
|
(select 0 as id from alltypestiny) t3
|
|
on t1.int_col = t3.id
|
|
order by 1 limit 5
|
|
---- RESULTS
|
|
0,0,0
|
|
0,0,0
|
|
0,0,0
|
|
0,0,0
|
|
0,0,0
|
|
---- TYPES
|
|
INT,INT,TINYINT
|
|
====
|
|
---- QUERY
|
|
# Regression test for IMPALA-2495: Crash: impala::InPredicate::SetLookupPrepare
|
|
# TODO: Move back to exprs.test when this works with the non-partitioned hash join
|
|
# (IMPALA-2375).
|
|
select count(id) from functional.alltypestiny t1
|
|
left join (select coalesce(1, 10) as int_col
|
|
from functional.alltypessmall) t2 on t1.id = t2.int_col
|
|
where t2.int_col in (t2.int_col, 10);
|
|
---- RESULTS
|
|
100
|
|
---- TYPES
|
|
BIGINT
|
|
====
|