modify partition to rotate
group by source type