CGI interview question

explain the difference between partitionbykey and groupbykey