错误信息:
FAILED: SemanticException Schema of both sides of union should match: Column create_date is of type string on first table and type date on second table. Cannot tell the position of null AST.
出现原因:
使用日期函数进行计算时,结果数据为日期类型,不能与字符串直接进行union
解决办法:
使用格式化函数输出为字符串