Lars Volker has posted comments on this change. Change subject: IMPALA-2459: Implement next_day date/time UDF ......................................................................
Patch Set 3: (8 comments) http://gerrit.cloudera.org:8080/#/c/1943/3/be/src/exprs/expr-test.cc File be/src/exprs/expr-test.cc: Line 4300: // invalid input here; nit: capital I, not ; Line 4306: TestIsNull("next_day('t1c7t0c9','sunDAY')", TYPE_TIMESTAMP); can you also add tests with explicit timestamps as input to next_day, such as next_day(to_timestamp($timestamp, $format)), ... http://gerrit.cloudera.org:8080/#/c/1943/3/be/src/exprs/timestamp-functions.cc File be/src/exprs/timestamp-functions.cc: Line 580: ( wrap if it exceeds 90 chars, first argument should be in this line. Line 580: std don't use std:: in cc files. Line 582: transform single line (wrap lines at 90 chars). Line 604: nit: double space Line 605: here, too. Looks like there's several superflous spaces in this line. Line 610: TimestampVal new_date = AddSub<true, IntVal, Days, false>( single line, you could also do this: return AddSub<true, IntVal, Days, false>( context, date, delta); -- To view, visit http://gerrit.cloudera.org:8080/1943 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2721d236c096639a9e7d2df8a45ca888c6b3e83e Gerrit-PatchSet: 3 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Youwei Wang <[email protected]> Gerrit-Reviewer: Henry Robinson <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Reviewer: Youwei Wang <[email protected]> Gerrit-HasComments: Yes
