A string literal is casted into Timestamp when the column is Timestamp.
Added test cases for SPARK-3173