[SPARK-3407][SQL]Add Date type support

Hive returns NULL when cast from DATE to INT., etc