Sailesh Mukil has posted comments on this change.

Change subject: IMPALA-3905: HdfsScanner::GetNext() for Avro, RC, and Seq scans.
......................................................................


Patch Set 5:

> (1 comment)

Thanks Tim. This example makes things clearer.

@Henry: The reason I said that using an rvalue ref is discouraged can be seen 
in Tim's example code. The caller knows exactly what to expect after calling 
pass_by_value(), i.e. the ownership is predictable.

However, after pass_by_rvalue_ref(), the caller does not know who owns the 'p' 
member anymore, unless through other means; like explicitly checking the 
unique_ptr value, or getting a bool back that says if it was used or not, etc.

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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie18f57b0d3fe0052a8ccd361b6a5fcdf979d0669
Gerrit-PatchSet: 5
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Alex Behm <[email protected]>
Gerrit-Reviewer: Alex Behm <[email protected]>
Gerrit-Reviewer: Henry Robinson <[email protected]>
Gerrit-Reviewer: Marcel Kornacker <[email protected]>
Gerrit-Reviewer: Sailesh Mukil <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: anujphadke <[email protected]>
Gerrit-HasComments: No

Reply via email to