Description
It appears that comparisons involving the DATE type are broken. See examples below:
> select DATE '2016-05-10 00:00:00' > DATE '2016-05-11 00:00:00'; +-------+ | true | +-------+ | true | +-------+ 1 row selected (0.001 seconds) > select TIMESTAMP '2016-05-10 00:00:00' > DATE '2016-05-11 00:00:00'; +-------+ | true | +-------+ | true | +-------+ 1 row selected (0.001 seconds) > select DATE '2016-05-10 00:00:00' > TIMESTAMP '2016-05-11 00:00:00'; +-------+ | true | +-------+ | true | +-------+ 1 row selected (0.001 seconds) > select TIMESTAMP '2016-05-10 00:00:00' > TIMESTAMP '2016-05-11 00:00:00'; +--------+ | false | +--------+ | false | +--------+ 1 row selected (0.001 seconds)