[SPARK-4309][SQL] Date type support for Thrift server

Does this work?  Won't this throw a class cast exception for non-string types?