[fixes] pivot group by