Taras Bobrovytsky has posted comments on this change. Change subject: IMPALA-4549: consistently treat 9999 as upper bound for timestamp year ......................................................................
Patch Set 1: (5 comments) http://gerrit.cloudera.org:8080/#/c/5665/1//COMMIT_MSG Commit Message: Line 9: Use the patched boost version and update tests accordingly. Maybe briefly describe the behavior of Impala before this patch? http://gerrit.cloudera.org:8080/#/c/5665/1/be/src/exprs/expr-test.cc File be/src/exprs/expr-test.cc: Line 1482: TestIsNull("cast(cast('9999-12-31 23:59:59' as timestamp) + interval 1 year as bigint)", I think this test would be more interesting if we add 1 second instead. (that should give us the smallest timestamp value that's not valid) Line 1484: TestValue("cast(cast('9999-12-31 23:59:59' as timestamp) as bigint)", This seems like the base case, put it above the TestIsNull case. (maybe add a comment saying that we are verifying that the cast works on the largest allowed timestamp value (without nanoseconds)). Line 1486: TestTimestampValue("cast(253402300799 as timestamp) - interval 1 year", Not sure what this is testing. Maybe remove? http://gerrit.cloudera.org:8080/#/c/5665/1/testdata/workloads/functional-query/queries/QueryTest/exprs.test File testdata/workloads/functional-query/queries/QueryTest/exprs.test: PS1, Line 2611: 1400..9999 Is this error message generated by boost? -- To view, visit http://gerrit.cloudera.org:8080/5665 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iaf23b40833017789d879e5da7bb10384129e2d10 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Tim Armstrong <[email protected]> Gerrit-Reviewer: Taras Bobrovytsky <[email protected]> Gerrit-HasComments: Yes
