Alexey Serbin has posted comments on this change.

Change subject: bshuf_block: some code cleanup
......................................................................


Patch Set 3:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/5193/3/src/kudu/cfile/bshuf_block.cc
File src/kudu/cfile/bshuf_block.cc:

PS3, Line 59:     uint32_t value = *cell_ptr(i);
            :     max_value = std::max(max_value, value);
nit: may be, drop the local variable:

max = std::max(max_value, *cell_ptr(i));


PS3, Line 152: int
hopefully, 'n' cannot be too big


PS3, Line 154: implicit_cast
why cast is needed here at all?  This is an unsigned type, so direct assignment 
would be enough, IMO.


PS3, Line 160: implicit_cast
ditto: I don't think cast is needed here.


http://gerrit.cloudera.org:8080/#/c/5193/3/src/kudu/cfile/bshuf_block.h
File src/kudu/cfile/bshuf_block.h:

PS3, Line 155: int
nit: why int, not uint32_t ?


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I6857f8096319072eb09be097adea99c45735e0a6
Gerrit-PatchSet: 3
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Todd Lipcon <t...@apache.org>
Gerrit-Reviewer: Adar Dembo <a...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Tidy Bot
Gerrit-HasComments: Yes

Reply via email to