Re: HIVE 0.12 SUM() returning NULL for decimal values

2014-07-24 Thread 丁桂涛(桂花)
try select sum(sales) from salestemp where sales is not null; On Thu, Jul 24, 2014 at 11:10 PM, Abhishek Gayakwad wrote: > I am trying to aggregate one column of decimal type, which is returning me > null. If I cast this column to double it returns me some value. following > are the steps to re

HIVE 0.12 SUM() returning NULL for decimal values

2014-07-24 Thread Abhishek Gayakwad
I am trying to aggregate one column of decimal type, which is returning me null. If I cast this column to double it returns me some value. following are the steps to recreate this scenario. CREATE TABLE salestemp(sku int, sales decimal); LOAD DATA LOCAL INPATH '0