Hive NVL does not work with Date type of the column – NullpointerException

I am using MapR Hive distribution over HDFS and facing below issue. If for a table the column type is ‘Date’ type, then the NVL function does not work. The same is working for other datatype. It …