Zoltan Borok-Nagy has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/9005 )

Change subject: IMPALA-6314: Add run time scalar subquery check for 
uncorrelated subqueries
......................................................................


Patch Set 4:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.h
File be/src/exec/cardinality-check-node.h:

http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.h@27
PS4, Line 27: Node that passes along the row pulled from its child unchanged.
            : /// If there is more than one row, it aborts the query.
> sync this with the changes:
updated the comment


http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.cc
File be/src/exec/cardinality-check-node.cc:

http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.cc@61
PS4, Line 61:  > 1
> shouldn't this be max_cardinality_?
oops, yes it should, thanks


http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.cc@65
PS4, Line 65: h.num_rows() == 1
> this is another check that seems to have been carried from the stricter <=
It is a bug, carried from the earlier implementation.
I changed this check, now this BE exec node is aligned with the corresponding 
FE plan node.


http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.cc@69
PS4, Line 69: ted, 1);
> same here
Done


http://gerrit.cloudera.org:8080/#/c/9005/4/be/src/exec/cardinality-check-node.cc@85
PS4, Line 85: == 1
> and here
Done



-- 
To view, visit http://gerrit.cloudera.org:8080/9005
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0f52b93a60eeacedd242a2f17fa6b99c4fc38e06
Gerrit-Change-Number: 9005
Gerrit-PatchSet: 4
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Attila Jeges <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Vuk Ercegovac <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Tue, 16 Jan 2018 13:35:21 +0000
Gerrit-HasComments: Yes

Reply via email to