Helper function to check if the result of a Pig Query is in line with expected results. It sorts actual and expected results before comparison @param actualResultsIt Result of the executed Pig query @param expectedResList Expected results to validate against
(Iterator<Tuple> actualResultsIt,
List<Tuple> expectedResList)
| 577 | * @param expectedResList Expected results to validate against |
| 578 | */ |
| 579 | static public void checkQueryOutputsAfterSort(Iterator<Tuple> actualResultsIt, |
| 580 | List<Tuple> expectedResList) { |
| 581 | List<Tuple> actualResList = new ArrayList<Tuple>(); |
| 582 | while(actualResultsIt.hasNext()){ |
| 583 | actualResList.add(actualResultsIt.next()); |
| 584 | } |
| 585 | checkQueryOutputsAfterSort(actualResList, expectedResList); |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * Helper function to check if the result of Pig Query is in line with expected results. |
no test coverage detected