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

I didn't check this in Hive, but probably it's better to convert the `Date` => `Timestamp`, since `Timestamp` is more precise. The same for the rule `In` .