mirror of
https://github.com/apache/impala.git
synced 2026-01-09 06:05:09 -05:00
After this patch we get correct results for nested TPCH Q13. The bug: Since we were not properly handling AtCapacity() of the output batch in SubplanNode, we sometimes passed a row batch that was already at capacity into GetNext() on the second child of the SubplanNode. In this particular case, that batch was passed into the NestedLoopJoinNode which may return incomplete results if the output batch is already at capacity (e.g., ProcessUnmatchedBuildRows() was not called). The fix is to return from SuplanNode::GetNext() if the output batch is at capacity due to resources being tranferred to it from the input batch used to fetch from the first child. Change-Id: Ib97821e8457867dc0d00fd37149a3f0a75872297 Reviewed-on: http://gerrit.cloudera.org:8080/742 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins