[2/3] impala git commit: IMPALA-6606: date_trunc() misinterprets MILLENNIUM/CENTURY precision

2018-03-07 Thread tarmstrong
IMPALA-6606: date_trunc() misinterprets MILLENNIUM/CENTURY precision This change fixes the following correctness bug: date_trunc() function returns the wrong result when truncating a TIMESTAMP value to 'MILLENNIUM' precision. E.g.: select now(), date_trunc('millennium', now()); +-

[2/3] impala git commit: IMPALA-6606: date_trunc() misinterprets MILLENNIUM/CENTURY precision

2018-03-07 Thread tarmstrong
IMPALA-6606: date_trunc() misinterprets MILLENNIUM/CENTURY precision This change fixes the following correctness bug: date_trunc() function returns the wrong result when truncating a TIMESTAMP value to 'MILLENNIUM' precision. E.g.: select now(), date_trunc('millennium', now()); +-