impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taras Bobrovytsky (Code Review)" <>
Subject [Impala-ASF-CR] Preview: IMPALA-4363: Add timestamp validation
Date Thu, 10 Nov 2016 23:56:09 GMT
Taras Bobrovytsky has posted comments on this change.

Change subject: Preview: IMPALA-4363: Add timestamp validation

Patch Set 2:

File be/src/exec/

Line 473:     if (NeedsValidation() && !ValidateSlot(val_ptr).ok()) {
> I don't think this will behave quite right with abort_on_error=false. Retur
I rewrote this section, and added a comment.

Line 492:   /// Similar to NeedsCoversion, most column readers never require validation, so
> NeedsConversion()

Line 507:   /// Ensures the data is valid. If it is discovered that data is not valid,
> Sets the slot to NULL if the slot value is invalid, e.g., due to being out 

Line 510:     DCHECK(false);
> If we ever hit this by accident in a release build we might not want to ret
I changed the interface, but False is returned instead of true now.

Line 594:   // Conversion should only happen when this flag is enabled.
> I'll delete this comment.

Line 599:   return Status::OK();
> Setting a slot to NULL means flipping the null bit in the containing tuple.
Fixed. Null is being set properly now.
File be/src/runtime/timestamp-value.h:

Line 146:   bool Validate();
> Can you change this to something like:
File common/thrift/


Line 308:    "File '$0' column '$1' contains invalid timestamp."),
> "Invalid" should be qualified a little more. The value is actually out of r

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I9988449aa0dc0f39fabb91ce6cce0dd8a06e8bcf
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Taras Bobrovytsky <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Taras Bobrovytsky <>
Gerrit-HasComments: Yes

View raw message