rs = s.executeQuery("select * from (select i from ts order by i)tt");
rtsp = SQLUtilities.getRuntimeStatisticsParser(s);
// Verify that we use the index scan here and no sorting is incurred
assertTrue(rtsp.usedSpecificIndexForIndexScan("TS","T_I"));
assertFalse(rtsp.whatSortingRequired());
s.execute("call SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)");
rollback();
}