This query reliably crashes Impala:
SELECT CAST(1312822084003 as timestamp) FROM <table> GROUP BY 1
And this error is logged:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::gregorian::bad_year> >'
what(): Year is out of valid range: 1400..10000
However this query works just fine:
SELECT CAST(1312822084003 as timestamp)