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

So Michael agreed to leave the whole ordering and comparing stuff in a separated PR :)