add support for bagis aggregation(SUM, AVG, COUNT)