support dimension extraction functions in group by