add collect_all UDAF