support auto aggregation for querying detail data of random distributed table: the same key column will return only one row.