IMPALA-1508: don't JIT TimestampFunctions::DateAddSub

For some reason, the try/catch added to fix IMPALA-1493 doesn't work
when we JIT the function. Fixing this in the JIT'd code will take some
time, so for now just don't JIT the function.

Change-Id: I7b2801027db0a9deb19b477c1a4ca0bdad77a825
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/5383
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
This commit is contained in:
Skye Wanderman-Milne
2014-11-21 17:25:13 -08:00
committed by Nong Li
parent b42e3e8ce9
commit 2bfb69523f
2 changed files with 17 additions and 5 deletions

View File

@@ -1762,3 +1762,12 @@ select abs(cast(1 as int)), abs(cast(1 as smallint)),
---- TYPES
int, smallint, tinyint, bigint, double, float, decimal
====
---- QUERY
# Regression test for IMPALA-1508
select timestamp_col FROM alltypesagg
ORDER BY timestamp_col + INTERVAL bigint_col YEAR ASC limit 1;
---- RESULTS
2010-01-01 08:25:38.550000000
---- TYPES
TIMESTAMP
====