In Impala, when I tried to compared the date, it will give wrong result. For example:
select 'Nov 23 2018 3:02AM' > 'Dec 1 2018 12:00AM'
which will return True
when use cast() function select cast('Dec 1 2018 12:00AM' as timestamp)
which will give null
.
Thus, how can we compare the date in the format mm dd yy 00:00AM