提交 ccf8ee20 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting.

上级 7b6102fc
......@@ -998,12 +998,12 @@ public class TestMetaData extends TestBase {
conn.close();
deleteDb("metaData");
}
private void testQueryStatistics() throws SQLException {
Connection conn = getConnection("metaData");
Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key, name varchar) as select x, space(1000) from system_range(1, 2000)");
ResultSet rs = stat.executeQuery("select * from INFORMATION_SCHEMA.QUERY_STATISTICS");
assertFalse(rs.next());
rs.close();
......@@ -1015,7 +1015,7 @@ public class TestMetaData extends TestBase {
// The "order by" makes the result set more stable on windows, where the
// timer resolution is not that great
rs = stat.executeQuery(
"select * from INFORMATION_SCHEMA.QUERY_STATISTICS " +
"select * from INFORMATION_SCHEMA.QUERY_STATISTICS " +
"ORDER BY EXECUTION_COUNT desc");
assertTrue(rs.next());
assertEquals("select * from test limit 10", rs.getString("SQL_STATEMENT"));
......
......@@ -45,7 +45,7 @@ public class TestMVStoreBenchmark extends TestBase {
// java.util.*
return;
}
testPerformanceComparison();
testMemoryUsageComparison();
}
......
......@@ -67,7 +67,7 @@ public class TestMVTableEngine extends TestBase {
testLocking();
testSimple();
}
private void testTransactionLogUsuallyNotStored() throws Exception {
FileUtils.deleteRecursive(getBaseDir(), true);
Connection conn;
......@@ -88,9 +88,9 @@ public class TestMVTableEngine extends TestBase {
}
stat.execute("shutdown immediately");
JdbcUtils.closeSilently(conn);
String file = getBaseDir() + "/mvstore" + Constants.SUFFIX_MV_FILE;
MVStore store = MVStore.open(file);
TransactionStore t = new TransactionStore(store);
assertEquals(0, t.getOpenTransactions().size());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论