Lars Volker has posted comments on this change. ( http://gerrit.cloudera.org:8080/8051 )
Change subject: IMPALA-5668: Fix cast(X as timestamp) for negative subsecond Decimals ...................................................................... Patch Set 3: (3 comments) http://gerrit.cloudera.org:8080/#/c/8051/3/be/src/exprs/decimal-operators-ir.cc File be/src/exprs/decimal-operators-ir.cc: http://gerrit.cloudera.org:8080/#/c/8051/3/be/src/exprs/decimal-operators-ir.cc@613 PS3, Line 613: if (seconds < numeric_limits<int64_t>::min() || : seconds > numeric_limits<int64_t>::max()) { : // TimeStampVal() takes int64_t. : return TimestampVal::null(); Is this branch now also evaluated for Decimal[4/8]Values? If so, will it have a perf impact? http://gerrit.cloudera.org:8080/#/c/8051/3/be/src/exprs/decimal-operators.h File be/src/exprs/decimal-operators.h: http://gerrit.cloudera.org:8080/#/c/8051/3/be/src/exprs/decimal-operators.h@166 PS3, Line 166: // nit: Keep comment formatting consistent with the rest of the file. http://gerrit.cloudera.org:8080/#/c/8051/3/be/src/exprs/decimal-operators.h@168 PS3, Line 168: TDecimal This naming convention usually indicates Thrift structures throughout the codebase. Did you follow some other example here? Otherwise "const T& decimal_value" seems more consistent. -- To view, visit http://gerrit.cloudera.org:8080/8051 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I8216f4c0f100c1bd68891cd6048236bfe4c205f0 Gerrit-Change-Number: 8051 Gerrit-PatchSet: 3 Gerrit-Owner: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Comment-Date: Wed, 11 Oct 2017 15:21:21 +0000 Gerrit-HasComments: Yes
