(CASE WHEN Trad_Day=0 THEN 0 ELSE CAST(Biz_Income_Amt/Trad_Day AS DECIMAL(18,6)) END) AS Prfm_Sale_Day
这段只是查询sql中的一个栏位,hive里支持case when 和cast,所以这段不用改