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

I'll rebase my code then.