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