Impala Public Jenkins has submitted this change and it was merged. Change subject: IMPALA-5812: Fix NPE when joining on empty const select ......................................................................
IMPALA-5812: Fix NPE when joining on empty const select A NPE is thrown during the creation of the single node plan of a query consisting of a cross join with a constant select that returns an empty result set. This happens because when an empty-set plan node is created, its tupleIds_ and tblRefIds_ are initialized with the tuple ID of a newly create tuple that does not map to any existing tableRefs. This causes a null pre-check to fail during the creation of the join node when it tries to fetch the tableRef from that new tuple Id in the empty-set node but doesn't find one. Testing: Added a planner test. Change-Id: I6e425dbcb442aeeac687e103774823d3f50e6436 Reviewed-on: http://gerrit.cloudera.org:8080/7971 Reviewed-by: Alex Behm <[email protected]> Tested-by: Impala Public Jenkins --- M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java M testdata/workloads/functional-planner/queries/PlannerTest/empty.test 2 files changed, 19 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Verified Alex Behm: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/7971 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6e425dbcb442aeeac687e103774823d3f50e6436 Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Bikramjeet Vig <[email protected]> Gerrit-Reviewer: Alex Behm <[email protected]> Gerrit-Reviewer: Bikramjeet Vig <[email protected]> Gerrit-Reviewer: Impala Public Jenkins
