Hive的一个BUG,to_date()不接受NULL值,可先对NULL转换数据格式: select to_date(cast(null as timestamp)); https://issues.apache.org/jira/browse/HIVE-12502