You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/01/08 01:27:00 UTC

[jira] [Commented] (IMPALA-8026) Actual row counts for nested loop join are way too high while the query is executing

    [ https://issues.apache.org/jira/browse/IMPALA-8026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736564#comment-16736564 ] 

ASF subversion and git services commented on IMPALA-8026:
---------------------------------------------------------

Commit 78da2b135143ac1faecd9ed1a62e1ce926555de3 in impala's branch refs/heads/master from Tim Armstrong
[ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=78da2b1 ]

IMPALA-8026: Fix #rows accounting for NLJ

Use the same, much simpler, approach used by all other ExecNodes.

Testing:
Manually tested by adding logging to print values of the counter.
Confirmed that the fix led to the counter having the correct
values (instead of values exceeding num_rows_returned_).

Change-Id: I43e2e1d8f85478ff36c8cddc69bac3bdccd2c824
Reviewed-on: http://gerrit.cloudera.org:8080/12164
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Actual row counts for nested loop join are way too high while the query is executing
> ------------------------------------------------------------------------------------
>
>                 Key: IMPALA-8026
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8026
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 3.1.0
>            Reporter: Paul Rogers
>            Assignee: Tim Armstrong
>            Priority: Major
>
> Consider this extract from a query plan:
> {noformat}
> Operator                      #Rows  Est. #Rows
> --------------------------------------------------------------
> …
> |  10:HASH JOIN               9.53M      18.14K 
> |  |--19:EXCHANGE                 1           1
> |  |  00:SCAN HDFS                1           1
> |  06:NESTED LOOP JOIN        4.88B     863.84K 
> |  |--18:EXCHANGE                 1           1
> |  |  04:SCAN HDFS                1           1
> |  05:HASH JOIN               9.53M     863.84K
> {noformat}
> If the above is to be believed, the 06 nested loop join produced 5 billion rows. But, the actual number is far too huge for that: joining 1 row with 10 million rows cannot produce 500 times that number of rows.
> It appears that the nested loop join actually processed and returned the 9.5 million rows, since that is the same number produced by the 10 hash join which joins a single row with the output of the nested loop join.
> Because this same bogus result appears across multiple plans, it is likely that the actual number is completely wrong and bears no relation to the number of rows actually returned.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org