提交 4b0906e9 authored 作者: Thomas Mueller's avatar Thomas Mueller

To fix the problem of the H2SpeedTest: added test case (disabled)

上级 661504d9
......@@ -40,6 +40,7 @@ public class TestOptimizations extends TestBase {
@Override
public void test() throws Exception {
deleteDb("optimizations");
testOrderByExpression();
testGroupSubquery();
testAnalyzeLob();
testLike();
......@@ -74,6 +75,24 @@ public class TestOptimizations extends TestBase {
testConvertOrToIn();
deleteDb("optimizations");
}
private void testOrderByExpression() throws Exception {
Connection conn = getConnection("optimizations");
Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key, name varchar)");
stat.execute("insert into test values(1, 'Hello'), (2, 'Hello'), (3, 'Hello')");
ResultSet rs;
rs = stat.executeQuery(
"explain select name from test where name='Hello' order by name");
rs.next();
String plan = rs.getString(1);
int todoNeedsToBeFixed;
// assertTrue(plan, plan.indexOf("tableScan") >= 0);
stat.execute("drop table test");
conn.close();
}
private void testGroupSubquery() throws Exception {
Connection conn = getConnection("optimizations");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论