private void assertQuery(@Language("SQL") String actual, @Language("SQL") String expected, boolean ensureOrdering)
throws Exception
{
long start = System.nanoTime();
MaterializedResult actualResults = computeActual(actual);
log.info("FINISHED in %s", Duration.nanosSince(start));
MaterializedResult expectedResults = computeExpected(expected, actualResults.getTupleInfo());
if (ensureOrdering) {
assertEquals(actualResults.getMaterializedTuples(), expectedResults.getMaterializedTuples());
}
else {
assertEqualsIgnoreOrder(actualResults.getMaterializedTuples(), expectedResults.getMaterializedTuples());
}
}