run group by query only on shard if

if query is grouped by cluster column or primary key