mirror of
https://github.com/apache/impala.git
synced 2026-01-04 18:00:57 -05:00
We do not have exceptions enabled for codegen'd code, so exceptions thrown by functions called by codegen'd functions cannot be caught by the codegen'd functions. TimestampValue::UnixTimeToPtime() has a try/catch around boost::posix_time::ptime_from_tm(), but since it was inlined into the TimestampFunctions::FromUnix() IR the try/catch didn't work. This patch moves the UnixTimeToPtime() implementation to the .cc file so it doesn't get included in the IR. It does the same for TimestampParser::Parse() in case it gets inlined into IR code as well. Change-Id: Ic0af73629e1e3b6bf18cbf5d832973712b068527 Reviewed-on: http://gerrit.cloudera.org:8080/2210 Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com> Tested-by: Internal Jenkins
58 KiB
58 KiB