*/
private void processQuery(int queryNumber, boolean isSorted) throws Exception {
String query = QueryTester.readQueryNio(queryNumber);
ITable actualTable = connection.createQueryTable("q" + queryNumber, query);
ITable expectedTable = expectedData.getTable("q" + queryNumber);
DiffCollectingFailureHandler failureHandler = new DiffCollectingFailureHandler();
if (!isSorted) {
actualTable = new SortedTable(actualTable);
expectedTable = new SortedTable(expectedTable);
}
Assertion.assertEquals(expectedTable, actualTable, failureHandler);
List differenceList = failureHandler.getDiffList();
if (!differenceList.isEmpty()) {
log.info("Query {} FAILED!", queryNumber);
for (Object obj : differenceList) {
Difference difference = (Difference) obj;
log.info("Column={}, expected={}, actual={},", difference.getColumnName(),