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

Can you explain this more?  It seems more expensive to convert to strings and then compare strings instead of just comparing the underlying types.  What does writables have to do with this?