union all时需要特别注意数据格式,数据出不来很可能是数据格式前后不一致,可考虑把int类型统一转化成string类型 如:cast(round(sum(sale_amount),1) as string) as data2