impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-5627: fix dropped statuses in HDFS writers
Date Thu, 13 Jul 2017 17:54:07 GMT
Tim Armstrong has posted comments on this change.

Change subject: IMPALA-5627: fix dropped statuses in HDFS writers

Patch Set 4:

File be/src/exec/hdfs-avro-table-writer.h:

Line 71:   virtual Status Init();
> Can we add WARN_UNUSED_RESULT to virtual functions, too?
I intended to add it to the base class but missed doing that. Thanks for catching. Added that
and then added "override" declarations here so it's clearer that they're overridden functions.
File be/src/exec/

Line 194:   // aggregates. Returns true if the value was appended successfully to the current
> Should this also mention that the method updates next_page_encoding_?

Line 260:   Encoding::type next_page_encoding_; // Preferred encoding for the next page.
> Is this ever not used as the encoding of the next page? Otherwise it may be
It always is used. Updated.

I'd prefer not to document where the variable is set in this case since I think it will get
out of sync with the code too easily, so you need to grep the code anyway to verify that the
comment is correct. Instead expanded a little on why it is set.
File be/src/exec/

Line 123:   RETURN_IF_ERROR(buffer->Append(value->ptr, value->len));
> can you add WARN_IF_UNUSED to StringBuffer::Append()?

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I753d352c640faf5eaef650cd743e53de53761431
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message