While implementing counter support in Tez mode (PIG-3603), I made several changes to PigStats and JobStats classes. To avoid breaking backward compatibility between 0.13 and onwards, I'd like to commit this patch into trunk prior to 0.13 release.
The changes include- * Renamed SimpleFetchPigStats to EmptyPigStats. This dummy PigStats can be used not only when the direct fetch mode is enabled but also when no Hadoop jobs are submitted due to any front-end error. So I renamed it to EmptyPigStats. * Moved getHdfsBytes[Read|Written]() from MRPigStatsUtil to PigStatsUtil since these are not MR specific. * Moved [MAP|REDUCE]_[IN|OUT]PUT_RECORDS from MRPigStatsUtil to PigStatsUtil since Tez MRInput and MROutput also use them. * Fixed a typo in JobStats#getAvgREduceTime(): REduce -> Reduce. * Fixed white spaces. Diffs